viniBaxter-spa-nested_has_many 4.0.0 → 5.0.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25163d3240b1871fb838178d609721f4818516ee60641c52c702c42441d30d35
|
4
|
+
data.tar.gz: ea7b3693b1aa4c3c62257062316a45552768ca00109ff4ed8fd424060c337ef3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eca9c5fbaeef185656b20070e336ebe2f0ccc74eeb292400ddb05f04d512a907392710074879d17c0c790207abc741b2275926895398d5d236a436f5a46b033d
|
7
|
+
data.tar.gz: c1dd7d120ef5a4806e688d030250d2fea2cc5a1960e7d2e2a659aa8d0bf088d31a03cb2850dbc737bdfc8dc1d6562e0e8c08542e0031341988ce73b4a3c89418
|
@@ -1,104 +1,104 @@
|
|
1
1
|
<% if @page.class == PeriodPack %>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
2
|
+
<!-- / page is PeriodPack and weekly and period_refunds -->
|
3
|
+
<% if field.attribute == :period_selected_ranges%>
|
4
|
+
<div class="col-12 col-lg-6 col-xl-6">
|
5
|
+
<div class="nested-fields nested-fields_<%= field.attribute %> ">
|
6
|
+
<div class="card light-shadow">
|
7
|
+
<div class="card-body d-flex justify-content-between align-items-center">
|
8
|
+
<% if giveArrayOfNonDateForm(field,f).any? %>
|
9
|
+
<% giveArrayOfNonDateForm(field,f).each do |attribute| -%>
|
10
|
+
<!-- / Date -->
|
11
|
+
<div class="form-group field-unit field-unit--<%= attribute.html_class %> flex-grow-1 mr-5">
|
12
|
+
<%= render_field attribute, f: f, page: @page %>
|
13
|
+
</div>
|
14
|
+
<% end -%>
|
15
|
+
<%end %>
|
16
|
+
<% if giveArrayOfDateForm(field,f).any? %>
|
17
|
+
<div class="row">
|
18
|
+
<% giveArrayOfDateForm(field,f).each do |attribute| -%>
|
19
|
+
<!-- / not a Date -->
|
20
|
+
<div class="col-12 col-lg-6 col-xl-6">
|
21
|
+
<div class="form-group field-unit field-unit--<%= attribute.html_class %>">
|
22
|
+
<%= render_field attribute, f: f, page: @page %>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
<% end -%>
|
26
|
+
</div>
|
27
|
+
<%end %>
|
28
|
+
<div class="">
|
29
|
+
<%= link_to_remove_association( t("administrate.fields.nested_has_many.remove.#{field.association_name}").html_safe,
|
30
30
|
f,
|
31
31
|
# class: 'btn btn-outline-danger mb-2 mt-3',
|
32
32
|
class: 'mb-2 mt-3'
|
33
33
|
)%>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
34
|
</div>
|
37
35
|
</div>
|
38
36
|
</div>
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
<% else %>
|
40
|
+
<div class="nested-fields nested-fields_<%= field.attribute %> w-100">
|
41
|
+
<div class="card light-shadow">
|
42
|
+
<div class="card-body dfsfqsff">
|
43
|
+
<% if giveArrayOfNonDateForm(field,f).any? %>
|
44
|
+
<% giveArrayOfNonDateForm(field,f).each do |attribute| -%>
|
45
|
+
<div class="form-group field-unit field-unit--<%= attribute.html_class %>">
|
46
|
+
<%= render_field attribute, f: f, page: @page %>
|
47
|
+
</div>
|
48
|
+
<% end -%>
|
49
|
+
<%end %>
|
50
|
+
<% if giveArrayOfDateForm(field,f).any? %>
|
51
|
+
<div class="row">
|
52
|
+
<% giveArrayOfDateForm(field,f).each do |attribute| -%>
|
53
|
+
<div class="col-12 col-md-6">
|
54
|
+
<div class="form-group field-unit field-unit--<%= attribute.html_class %>">
|
55
|
+
<%= render_field attribute, f: f, page: @page %>
|
56
|
+
</div>
|
57
|
+
</div>
|
58
|
+
<% end -%>
|
59
|
+
</div>
|
60
|
+
<%end %>
|
61
|
+
<div>
|
62
|
+
<%= link_to_remove_association( t("administrate.fields.nested_has_many.remove.#{field.association_name}").html_safe,
|
63
63
|
f,
|
64
64
|
# class: 'btn btn-outline-danger mb-2 mt-3',
|
65
65
|
class: 'mb-2 mt-3'
|
66
66
|
)%>
|
67
|
-
</div>
|
68
|
-
</div>
|
69
67
|
</div>
|
70
68
|
</div>
|
71
|
-
|
69
|
+
</div>
|
70
|
+
</div>
|
71
|
+
<% end %>
|
72
72
|
<%else %>
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
</div>
|
90
|
-
</div>
|
91
|
-
<% end -%>
|
73
|
+
<div class="nested-fields nested-fields_<%= field.attribute %> ">
|
74
|
+
<div class="card light-shadow">
|
75
|
+
<div class="card-body dfsfqsff">
|
76
|
+
<% if giveArrayOfNonDateForm(field,f).any? %>
|
77
|
+
<% giveArrayOfNonDateForm(field,f).each do |attribute| -%>
|
78
|
+
<div class="form-group field-unit field-unit--<%= attribute.html_class %>">
|
79
|
+
<%= render_field attribute, f: f, page: @page %>
|
80
|
+
</div>
|
81
|
+
<% end -%>
|
82
|
+
<%end %>
|
83
|
+
<% if giveArrayOfDateForm(field,f).any? %>
|
84
|
+
<div class="row">
|
85
|
+
<% giveArrayOfDateForm(field,f).each do |attribute| -%>
|
86
|
+
<div class="col-12 col-md-6">
|
87
|
+
<div class="form-group field-unit field-unit--<%= attribute.html_class %>">
|
88
|
+
<%= render_field attribute, f: f, page: @page %>
|
92
89
|
</div>
|
93
|
-
|
94
|
-
|
95
|
-
|
90
|
+
</div>
|
91
|
+
<% end -%>
|
92
|
+
</div>
|
93
|
+
<%end %>
|
94
|
+
<div>
|
95
|
+
<%= link_to_remove_association( t("administrate.fields.nested_has_many.remove.#{field.association_name}").html_safe,
|
96
96
|
f,
|
97
97
|
# class: 'btn btn-outline-danger mb-2 mt-3',
|
98
98
|
class: 'mb-2 mt-3'
|
99
99
|
)%>
|
100
|
-
</div>
|
101
100
|
</div>
|
102
101
|
</div>
|
103
102
|
</div>
|
104
|
-
|
103
|
+
</div>
|
104
|
+
<% end %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% if @page.class == PeriodPack %>
|
2
|
-
|
2
|
+
<%= render(
|
3
3
|
partial: "fields/nested_has_many/periodPack/logic_if_periodPack_page",
|
4
4
|
locals: {
|
5
5
|
field: field,
|
@@ -8,7 +8,7 @@
|
|
8
8
|
},
|
9
9
|
) %>
|
10
10
|
<% elsif @page.class == Period %>
|
11
|
-
|
11
|
+
<%= render(
|
12
12
|
partial: "fields/nested_has_many/period/logic_if_period_page",
|
13
13
|
locals: {
|
14
14
|
field: field,
|
@@ -17,7 +17,7 @@
|
|
17
17
|
},
|
18
18
|
) %>
|
19
19
|
<%else %>
|
20
|
-
|
20
|
+
<%= render(
|
21
21
|
partial: "fields/nested_has_many/fieldset",
|
22
22
|
locals: {
|
23
23
|
field: field,
|
@@ -25,4 +25,4 @@
|
|
25
25
|
fieldset: "fieldset"
|
26
26
|
},
|
27
27
|
) %>
|
28
|
-
<% end %>
|
28
|
+
<% end %>
|
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = "viniBaxter-spa-nested_has_many"
|
5
|
-
gem.version = "
|
5
|
+
gem.version = "5.0.0"
|
6
6
|
gem.authors = ["Nick Charlton", "Grayson Wright"]
|
7
7
|
gem.email = ["vinybaxter@gmail.com"]
|
8
8
|
# gem.homepage = "https://github.com/nickcharlton/" \
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: viniBaxter-spa-nested_has_many
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Charlton
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: administrate
|