scrivito_crm_form_widget 1.0.0.beta7 → 1.0.0.beta8

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: 9504c87a0beb8c84182f090ad62a7e20150e0bc4
4
- data.tar.gz: 0266612469715c4d507f7dcc7a934008a9d96994
3
+ metadata.gz: 871e115854bfe7d7e689764ba83f6c54ee334836
4
+ data.tar.gz: 93548353151ff87fca1b6456f7e582b4b435b6b2
5
5
  SHA512:
6
- metadata.gz: 72622bebe9dae5ac90e9bceb189fe2a3891f786eb6c1905c7f4158a96f3f4a89b1df7ebe5a44bc05ceb161475ba23e5f9eeea92599fe2a3e404874afc7f36c0f
7
- data.tar.gz: 771ed56c7d7ab1e6f17ff12abf3292276756aa4e688080f5e8e7f5ead4ccfa6c16e4a9a21301ba93c5785abfbda0f85d3f496a7581172c64579b4b7735231849
6
+ metadata.gz: dcf01d92d3a8c19f216e32d1a77a5ff70ee762057f32f12b414e2803f86a9bf45ef24b07d9a81d836db396f5ca89505993340a3409d4cea68e115a0e8a4ed771
7
+ data.tar.gz: 7180fffb82e7db98f14fcbb11cc578bca5135c7773bf1ac6a46313307df92740011f1355cc1dbb65f8faa1fe479520e1486d07d86831048a12839fbbf4ca18e7
@@ -1,10 +1,6 @@
1
1
  <% attributes.each do |name, options| %>
2
2
  <% CrmFormPresenter.send(:attr_accessor, name.to_sym) %>
3
- <% if widget.hidden?(name, options) %>
4
- <% if request.params[name.sub(/^custom_/,'')].present? %>
5
- <%= form.hidden_field(name.to_sym, value: request.params[name.sub(/^custom_/,'')]) %>
6
- <% end %>
7
- <% elsif options && options[:visible_in_form] %>
3
+ <% if options && options[:visible_in_form] && !widget.hidden?(name, options) %>
8
4
  <%= render "crm_form_widget/crm_#{options["attribute_type"]}", form: form, name: name, options: options, label: nil, widget: widget %>
9
5
  <% end %>
10
6
  <% end %>
@@ -14,6 +14,12 @@
14
14
  </div>
15
15
  </div>
16
16
 
17
+ <% ScrivitoCrmFormWidget.configuration.hidden_attributes.each do |a| %>
18
+ <% if request.params[a.sub(/^custom_/,'')].present? %>
19
+ <%= form.hidden_field(a.to_sym, value: request.params[a.sub(/^custom_/,'')]) %>
20
+ <% end %>
21
+ <% end %>
22
+
17
23
  <% if widget.multilevel? %>
18
24
  <div class="crm-form-widget-multilevel">
19
25
  <% widget.levels.each do |level| %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoCrmFormWidget
2
- VERSION = "1.0.0.beta7"
2
+ VERSION = "1.0.0.beta8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_crm_form_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta7
4
+ version: 1.0.0.beta8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-30 00:00:00.000000000 Z
11
+ date: 2017-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scrivito