polaris_view_helpers 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d0c297400e1dac5c15a1c2933a00582fef2e860
|
4
|
+
data.tar.gz: f3375ecc1b7c1983ae8a84bc6862bc80a7d15f42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7401a13373c62b3a857798d48400a152875ab546daf80bf8b36da5bab9dc99e722387e361f1c9e314b473f1b16306f3ec670581626b45447c4a6dfb5ffc42879
|
7
|
+
data.tar.gz: bc0acb2cbd6deec1d6f5008e8d6600c235282add780cb1d0b0bf82bae71a88bdb482eabb25a3d70dd62a756fc5155aacde3d1aa56881701adfbe2e2c362df102
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<div class="Polaris-Layout__AnnotatedSection">
|
2
|
+
<div class="Polaris-Layout__AnnotationWrapper">
|
3
|
+
<div class="Polaris-Layout__Annotation">
|
4
|
+
<div class="Polaris-TextContainer">
|
5
|
+
<%= capture(&block) %>
|
6
|
+
</div>
|
7
|
+
</div>
|
8
|
+
<div class="Polaris-Layout__AnnotationContent">
|
9
|
+
<div class="Polaris-Card">
|
10
|
+
<div class="Polaris-Card__Section">
|
11
|
+
<div class="Polaris-FormLayout">
|
12
|
+
|
13
|
+
<% attribute.each do |att| %>
|
14
|
+
<div class="Polaris-FormLayout__Item">
|
15
|
+
<div class="">
|
16
|
+
<div class="Polaris-Labelled__LabelWrapper">
|
17
|
+
<div class="Polaris-Label">
|
18
|
+
<%= form.label att, class: 'Polaris-Label__Text' %>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<div class="Polaris-TextField">
|
22
|
+
<%= input %>
|
23
|
+
<%#= form.send element_type, att, id: "#{form.object.class.name.tableize.singularize}_#{att}", class: "Polaris-TextField__Input" %>
|
24
|
+
<!--<div class="Polaris-TextField__Backdrop"></div>-->
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
<% end %>
|
29
|
+
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
</div>
|
@@ -81,5 +81,21 @@ module PolarisViewHelpers
|
|
81
81
|
)
|
82
82
|
end
|
83
83
|
|
84
|
+
def polaris_annotated_section_input(form, attribute, input, &block)
|
85
|
+
unless attribute.is_a? Array
|
86
|
+
attribute = [attribute]
|
87
|
+
end
|
88
|
+
|
89
|
+
render(
|
90
|
+
partial: 'polaris/annotated_section_input',
|
91
|
+
locals: {
|
92
|
+
form: form,
|
93
|
+
attribute: attribute,
|
94
|
+
input: input,
|
95
|
+
block: block
|
96
|
+
}
|
97
|
+
)
|
98
|
+
end
|
99
|
+
|
84
100
|
end
|
85
101
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polaris_view_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Green
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -48,6 +48,7 @@ files:
|
|
48
48
|
- MIT-LICENSE
|
49
49
|
- README.rdoc
|
50
50
|
- Rakefile
|
51
|
+
- app/views/polaris/_annotated_section_input.html.erb
|
51
52
|
- app/views/polaris/_annotated_section_text_field.html.erb
|
52
53
|
- app/views/polaris/_banner.html.erb
|
53
54
|
- app/views/polaris/_banner_actions.html.erb
|