scrivito_crm_form_widget 1.0.0.beta2 → 1.0.0.beta3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/styles/scrivito_crm_form_widget.scss +15 -13
- data/app/views/crm_form_widget/_crm_enum.html.erb +2 -2
- data/app/views/crm_form_widget/_crm_multienum.html.erb +1 -1
- data/app/views/crm_form_widget/_crm_string.html.erb +1 -1
- data/app/views/crm_form_widget/_crm_text.html.erb +1 -1
- data/lib/scrivito_crm_form_widget/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7e10c7e5dc881380dc2c5c82c3d2fa6a1718a9d6
|
|
4
|
+
data.tar.gz: bd08394ae29d3161ae58906f0f3b3ed2e9e8a5cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ad8c63bf236b9f72c83d9d3581990d3a2a6226d49e94ce794bdbcd319e7ad2a35679d1b84aeec1cf424a2e2b0b5ed9234a3b5cfbf7446a57517b0d786847102c
|
|
7
|
+
data.tar.gz: 90e532041e9e0df416d654aed27ef658023451e4c67a9d7e666e34d8b69a497e5557fbb8f18b0806f2d5aabe98e465e97e3908855b53d47a1c256080310ffb84
|
|
@@ -14,20 +14,22 @@ form.form-horizontal.label-position-top {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
@media(min-width: 991px) {
|
|
18
|
+
form.form-horizontal.two-column-layout {
|
|
19
|
+
margin: 0 -15px;
|
|
20
|
+
.form-group {
|
|
21
|
+
width: 50%;
|
|
22
|
+
float: left;
|
|
23
|
+
margin: 0;
|
|
24
|
+
}
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
.form-submit-button-container {
|
|
27
|
+
clear: both;
|
|
28
|
+
}
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
.btn {
|
|
31
|
+
margin-right: 15px;
|
|
32
|
+
margin-top: 15px;
|
|
33
|
+
}
|
|
32
34
|
}
|
|
33
35
|
}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
<%= form.label name.to_sym, label, class: "control-label col-sm-3 #{options[:mandatory] ? 'mandatory' : ''}" %>
|
|
3
3
|
<div class="col-sm-9">
|
|
4
4
|
<% if widget.field_as_select?(options) %>
|
|
5
|
-
<%= form.select(name.to_sym, options_for_select(options['valid_values'].map { |u| [t("helpers.label.crm_form_presenter.#{name}_option.#{u.parameterize}"), u] }), {}, class: 'form-control') %>
|
|
5
|
+
<%= form.select(name.to_sym, options_for_select(options['valid_values'].map { |u| [t("helpers.label.crm_form_presenter.#{name}_option.#{u.parameterize}"), u] }), {}, class: 'form-control', required: options[:mandatory] ) %>
|
|
6
6
|
<% else %>
|
|
7
7
|
<% options['valid_values'].each do |value| %>
|
|
8
8
|
<div class="radio">
|
|
9
9
|
<%= form.label "#{name}_#{value.parameterize}" do %>
|
|
10
|
-
<%= form.radio_button name.to_sym, value %>
|
|
10
|
+
<%= form.radio_button name.to_sym, value, required: options[:mandatory] %>
|
|
11
11
|
<%= t("helpers.label.crm_form_presenter.#{name}_option.#{value.parameterize}") %>
|
|
12
12
|
<% end %>
|
|
13
13
|
</div>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<% options['valid_values'].each do |value| %>
|
|
5
5
|
<div class="checkbox">
|
|
6
6
|
<%= form.label "#{name}_#{value.parameterize}" do %>
|
|
7
|
-
<%= form.check_box name.to_sym, {:multiple => true, id: "crm_form_presenter_#{name}_#{value.parameterize}"}, value, nil %>
|
|
7
|
+
<%= form.check_box name.to_sym, {:multiple => true, id: "crm_form_presenter_#{name}_#{value.parameterize}", required: options[:mandatory] }, value, nil %>
|
|
8
8
|
<%= t("helpers.label.crm_form_presenter.#{name}_option.#{value.parameterize}", default: value) %>
|
|
9
9
|
<% end %>
|
|
10
10
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div class="form-group form-field-<%= name %>">
|
|
2
2
|
<%= form.label name.to_sym, label, class: "control-label col-sm-3 #{options[:mandatory] ? 'mandatory' : ''}" %>
|
|
3
3
|
<div class="col-sm-9">
|
|
4
|
-
<%= form.text_field name.to_sym, class: "form-control", maxlength: options[:maxlength], placeholder: widget.placeholder(name.parameterize) %>
|
|
4
|
+
<%= form.text_field name.to_sym, class: "form-control", maxlength: options[:maxlength], placeholder: widget.placeholder(name.parameterize), required: options[:mandatory] %>
|
|
5
5
|
</div>
|
|
6
6
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div class="form-group form-field-<%= name %>">
|
|
2
2
|
<%= form.label name.to_sym, label, class: "control-label col-sm-3 #{options[:mandatory] ? 'mandatory' : ''}" %>
|
|
3
3
|
<div class="col-sm-9">
|
|
4
|
-
<%= form.text_area name.to_sym, class: "form-control", maxlength: options[:maxlength], placeholder: widget.placeholder(name.parameterize) %>
|
|
4
|
+
<%= form.text_area name.to_sym, class: "form-control", maxlength: options[:maxlength], placeholder: widget.placeholder(name.parameterize), required: options[:mandatory] %>
|
|
5
5
|
</div>
|
|
6
6
|
</div>
|
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.beta3
|
|
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-
|
|
11
|
+
date: 2017-06-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: scrivito
|