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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 871e115854bfe7d7e689764ba83f6c54ee334836
|
4
|
+
data.tar.gz: 93548353151ff87fca1b6456f7e582b4b435b6b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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| %>
|
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.
|
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-
|
11
|
+
date: 2017-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scrivito
|