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 +4 -4
- data/app/views/fields/nested_has_many/_fields.html.erb +46 -11
- data/lib/viniBaxter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f8f90f324f87686fdcee69242d47a220b9d9ea8390151f234595a0dbc9a81d8
|
4
|
+
data.tar.gz: b73df336299a0e0992adc5540d99a6bcc48f7eb86d6eb3b7d70f7aeeeb359b90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
5
|
-
|
6
|
-
|
7
|
-
<div class="
|
8
|
-
|
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
|
-
|
11
|
-
|
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
|
14
|
-
<div class="row">
|
15
|
-
<%
|
16
|
-
<div class="col-12
|
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>
|
data/lib/viniBaxter/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: administrate
|