polaris_view_helpers 0.0.6 → 0.0.7
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: 33469dde16259e76722932874e586026edb048ff
|
4
|
+
data.tar.gz: dad2ab9dd213a8f2f861bc1fae20d381f396c523
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9adb02354582941d9f5cc4eaf8203b4e3047cadebf2a78f0729a002979a5febf083969d39c76264e2d583cd5aa152230dfcd6bad061ad3cae11f8b1ae566e27
|
7
|
+
data.tar.gz: fc8249947ca95744c2fa7bcf5a7ef2ded0deb45d79ed28faee5e0ebc6375b3c20bd1ebb14200063972d9479ad97d7234fffd643369814e46d0e65c0d943614c8
|
@@ -15,11 +15,11 @@
|
|
15
15
|
<div class="">
|
16
16
|
<div class="Polaris-Labelled__LabelWrapper">
|
17
17
|
<div class="Polaris-Label">
|
18
|
-
<%= form.label att, class: 'Polaris-Label__Text' %>
|
18
|
+
<%= form.label att, options[:label], class: 'Polaris-Label__Text' %>
|
19
19
|
</div>
|
20
20
|
</div>
|
21
21
|
<div class="Polaris-TextField">
|
22
|
-
<%= form.send element_type, att, id: "#{form.object.class.name.tableize.singularize}_#{att}", class: "Polaris-TextField__Input" %>
|
22
|
+
<%= form.send element_type, att, id: "#{form.object.class.name.tableize.singularize}_#{att}", class: "Polaris-TextField__Input", placeholder: options[:placeholder] %>
|
23
23
|
<div class="Polaris-TextField__Backdrop"></div>
|
24
24
|
</div>
|
25
25
|
</div>
|
@@ -121,7 +121,7 @@ module PolarisViewHelpers
|
|
121
121
|
)
|
122
122
|
end
|
123
123
|
|
124
|
-
def polaris_annotated_section_text_field(form, attribute, element_type = :text_field, &block)
|
124
|
+
def polaris_annotated_section_text_field(form, attribute, options = {}, element_type = :text_field, &block)
|
125
125
|
unless attribute.is_a? Array
|
126
126
|
attribute = [attribute]
|
127
127
|
end
|
@@ -132,6 +132,7 @@ module PolarisViewHelpers
|
|
132
132
|
form: form,
|
133
133
|
attribute: attribute,
|
134
134
|
element_type: element_type,
|
135
|
+
options: options,
|
135
136
|
block: block
|
136
137
|
}
|
137
138
|
)
|
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.7
|
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-
|
11
|
+
date: 2017-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|