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: b6732f56e6d1b7c94672051a46ac947cb5ecc32c
4
- data.tar.gz: b1cf9eaa54881cdb49aafef1b922a71a7b6c7394
3
+ metadata.gz: 33469dde16259e76722932874e586026edb048ff
4
+ data.tar.gz: dad2ab9dd213a8f2f861bc1fae20d381f396c523
5
5
  SHA512:
6
- metadata.gz: c2cd9f7834297106118e4e66ce7dd33af23c1e809674043fdefd732ec78d9a10d19338b791eb01153e91bd8fbd70b04f0fa2eff8aa8fb84805421cfec78a5095
7
- data.tar.gz: 9001c7815b0737807d9c5b21f2930987008bc9085b696cbd4545514e39429641e292e2d996425115760da865a38237443242de6865899a4285f973ee89c9d168
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
  )
@@ -1,3 +1,3 @@
1
1
  module PolarisViewHelpers
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  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.6
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-08-16 00:00:00.000000000 Z
11
+ date: 2017-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails