scrivito_crm_form_widget 1.0.0.beta2 → 1.0.0.beta3

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: e48c991510dbb7f2bd41769819ae6395d8628956
4
- data.tar.gz: 57d54427d0a32c779b4b3a503c1a849d6df91462
3
+ metadata.gz: 7e10c7e5dc881380dc2c5c82c3d2fa6a1718a9d6
4
+ data.tar.gz: bd08394ae29d3161ae58906f0f3b3ed2e9e8a5cc
5
5
  SHA512:
6
- metadata.gz: b9062a54e33e98e979734ac7534041e2b06aa950332c868da18f42194b04b97cec69951c77922693cedf505ddb823959f1bfc0c656affef65ecf31351c9d7b2e
7
- data.tar.gz: f4b6b5a1acbf9ae3ea29066b6d877b44307e8b43e2261fe495108edb7040e6d3998bd7ed1814e3cec1443964c6719db23319f66fd8b4299d873bed49358fe6bf
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
- form.form-horizontal.two-column-layout {
18
- margin: 0 -15px;
19
- .form-group {
20
- width: 50%;
21
- float: left;
22
- margin: 0;
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
- .form-submit-button-container {
26
- clear: both;
27
- }
26
+ .form-submit-button-container {
27
+ clear: both;
28
+ }
28
29
 
29
- .btn {
30
- margin-right: 15px;
31
- margin-top: 15px;
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>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoCrmFormWidget
2
- VERSION = "1.0.0.beta2"
2
+ VERSION = "1.0.0.beta3"
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.beta2
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-19 00:00:00.000000000 Z
11
+ date: 2017-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scrivito