viniBaxter-spa-nested_has_many 300.0.2 → 300.0.4

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: 413c7debe232cba975c38bb13b82d300320e22a15c1c32d90b6e27add4bb82ba
4
- data.tar.gz: 00c02b83e0f5410fd94bfc80bd0897553b57fb0f6f71f48fc51e2b0e1f4ccc7b
3
+ metadata.gz: 5f8f90f324f87686fdcee69242d47a220b9d9ea8390151f234595a0dbc9a81d8
4
+ data.tar.gz: b73df336299a0e0992adc5540d99a6bcc48f7eb86d6eb3b7d70f7aeeeb359b90
5
5
  SHA512:
6
- metadata.gz: 606371b6e0ac428d75d437d61dac72fc0af57bf22f1c9245c90d02f85f408956a588397f16b5e6a69e55bc899f534770dbea345717a87776ab0c60f92941e763
7
- data.tar.gz: 80c447c3b516eab6b0a9374446cc3dc374bc863fd5a1ac71757e196097a5b3c7643c0a6aa2805e85ed84de0bec4f3e6986d1ee289c34931df5d2167e5208e3e6
6
+ metadata.gz: e586da0325c5d163a72590960cd177b5838b603d5861fd949018e3f37d3b5e764ecd669f2057e994b7f3fe1ba865469548fe6aaf94bd43c839d2940fb477e69d
7
+ data.tar.gz: 6175681f01d50d920386ce0989c799fbc741d7b6a15dcacb046695544c82c6e6318bdbdce82eb25622b819b112a208da738991d6c08c01e2c72f15e0b7557554
@@ -1,19 +1,54 @@
1
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="col-12">
7
- <div class="form-group field-unit field-unit--<%= attribute.html_class %>">
8
- <%= render_field attribute, f: f, page: @page %>
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>
9
33
  </div>
10
- </div>
11
- <% end -%>
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="offset-3 col-6">
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>
12
47
  <%end %>
13
- <% if giveArrayOfDateForm(field,f).any? %>
14
- <div class="row">
15
- <% giveArrayOfDateForm(field,f).each do |attribute| -%>
16
- <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">
17
52
  <div class="form-group field-unit field-unit--<%= attribute.html_class %>">
18
53
  <%= render_field attribute, f: f, page: @page %>
19
54
  </div>
@@ -5,7 +5,7 @@ module ViniBaxter
5
5
  module ViniBaxterFieldActiveStorage
6
6
  MAJOR = 300
7
7
  MINOR = 0
8
- TINY = 2
8
+ TINY = 4
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.2
4
+ version: 300.0.4
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-03 00:00:00.000000000 Z
11
+ date: 2022-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate