viniBaxter-spa-nested_has_many 300.0.1 → 300.0.6

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
  SHA256:
3
- metadata.gz: 19b86ab829fecc27ce39273720712e6be5d6d60167c5568136a298152a54ae47
4
- data.tar.gz: 538b083e442eba0edbe7b0bdad65a8b5ab78c131d73d4c7150608956012e5058
3
+ metadata.gz: 1cd0e1eec122ee30cd76c2cbcdb1cbf2cee4a9f00b74705254edaa7b3b9db008
4
+ data.tar.gz: 9c0959caf3bf0404e998c64fefb14a4b9653bd01ce3f37038d81d9dd71ccc278
5
5
  SHA512:
6
- metadata.gz: b3409cb60831f00c5ab4220d8b58284276e4695891b74568c5295fd5d35d32e0c569f100f1e99e665ac883c2a41fe0aca947aaa06bd7edaf191c76072adb54e9
7
- data.tar.gz: 30266f7a7254fe108ced568348378338f6941c9f548fcc4a1eb18cf2045f6293b14ee117a0def7b71e3b3f8a20d99070c5e025bcf85e284829959661622509d0
6
+ metadata.gz: a14f451d089ba905ac0a9e699aea67943fe390ff843cc468e005d029cacbaafbd1229557d6be5637a33a6c3414eab44b36b7327ad4fa11a1820ced089294a77e
7
+ data.tar.gz: 6e7b4e40380670c4012ca971d4a5fb10e2396bda4a7a28f8e88593ade796d64b187c6db477712725fa629b0c91159a9b01442020e2b3576e957730ee04c75365
@@ -8,17 +8,20 @@
8
8
  padding-bottom: 0.3em;
9
9
  }
10
10
 
11
- .remove_fields, .add_fields {
11
+ .remove_fields,
12
+ .add_fields {
12
13
  float: right;
13
14
  }
14
15
  }
15
- .row.field-unit--nested.field-unit--nested_period_selected_ranges{
16
+
17
+ .row.field-unit--nested.field-unit--nested_period_selected_ranges {
16
18
  padding-bottom: 1.5rem;
17
19
  position: relative;
18
20
  }
19
- .btn-fixed_period_selected_ranges{
21
+
22
+ .btn-fixed_period_selected_ranges {
20
23
  margin-top: 1.5rem;
21
24
  position: absolute;
22
25
  bottom: 0;
23
26
  right: 0;
24
- }
27
+ }
@@ -1,17 +1,54 @@
1
- <div class="nested-fields nested-fields_<%= field.attribute %> ">
1
+ <div class="nested-fields nested-fields_<%= field.attribute %> w-100">
2
2
  <div class="card light-shadow">
3
3
  <div class="card-body dfsfqsff">
4
- <% if giveArrayOfNonDateForm(field,f).any? %>
5
- <% giveArrayOfNonDateForm(field,f).each do |attribute| -%>
6
- <div class="form-group field-unit field-unit--<%= attribute.html_class %>">
7
- <%= render_field attribute, f: f, page: @page %>
8
- </div>
9
- <% end -%>
4
+ <% if giveArrayOrderedField(field,f)[:non_date_array].any? %>
5
+ <div class="row mt-2">
6
+ <% giveArrayOrderedField(field,f)[:non_date_array].each do |attribute| -%>
7
+ <div class="col-<%= giveArrayOrderedField(field,f)[:non_date_array].count > 1 ? 6 : 12 %>">
8
+ <div class="form-group field-unit field-unit--<%= attribute.html_class %>">
9
+ <%= render_field attribute, f: f, page: @page %>
10
+ </div>
11
+ </div>
12
+ <% end -%>
13
+ </div>
14
+ <%end %>
15
+ <% if giveArrayOrderedField(field,f)[:date_array].any? %>
16
+ <div class="row mt-2">
17
+ <% giveArrayOrderedField(field,f)[:date_array].each do |attribute| -%>
18
+ <div class="col-6">
19
+ <div class="form-group field-unit field-unit--<%= attribute.html_class %>">
20
+ <%= render_field attribute, f: f, page: @page %>
21
+ </div>
22
+ </div>
23
+ <% end -%>
24
+ </div>
25
+ <%end %>
26
+ <% if giveArrayOrderedField(field,f)[:text_form_array].any? %>
27
+ <div class="row mt-2">
28
+ <% giveArrayOrderedField(field,f)[:text_form_array].each do |attribute| -%>
29
+ <div class="col-12">
30
+ <div class="form-group field-unit field-unit--<%= attribute.html_class %>">
31
+ <%= render_field attribute, f: f, page: @page %>
32
+ </div>
33
+ </div>
34
+ <% end -%>
35
+ </div>
36
+ <%end %>
37
+ <% if giveArrayOrderedField(field,f)[:assets_array].any? %>
38
+ <div class="row mt-2">
39
+ <% giveArrayOrderedField(field,f)[:assets_array].each do |attribute| -%>
40
+ <div class="col-12">
41
+ <div class="form-group field-unit field-unit--<%= attribute.html_class %>">
42
+ <%= render_field attribute, f: f, page: @page %>
43
+ </div>
44
+ </div>
45
+ <% end -%>
46
+ </div>
10
47
  <%end %>
11
- <% if giveArrayOfDateForm(field,f).any? %>
12
- <div class="row">
13
- <% giveArrayOfDateForm(field,f).each do |attribute| -%>
14
- <div class="col-12 col-md-6">
48
+ <% if giveArrayOrderedField(field,f)[:boolean_form_array].any? %>
49
+ <div class="row mt-2">
50
+ <% giveArrayOrderedField(field,f)[:boolean_form_array].each do |attribute| -%>
51
+ <div class="col-12">
15
52
  <div class="form-group field-unit field-unit--<%= attribute.html_class %>">
16
53
  <%= render_field attribute, f: f, page: @page %>
17
54
  </div>
@@ -5,7 +5,7 @@ module ViniBaxter
5
5
  module ViniBaxterFieldActiveStorage
6
6
  MAJOR = 300
7
7
  MINOR = 0
8
- TINY = 1
8
+ TINY = 6
9
9
  PRE = "STUDIO"
10
10
 
11
11
  VERSION = [MAJOR, MINOR, TINY].compact.join(".")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viniBaxter-spa-nested_has_many
3
3
  version: !ruby/object:Gem::Version
4
- version: 300.0.1
4
+ version: 300.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - vini baxter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-02 00:00:00.000000000 Z
11
+ date: 2022-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate