viniBaxter-spa-nested_has_many 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e68a41c702bb3313eea6119e6b4d0a4db43402d55fb6e36494bc6491fd3e245
|
4
|
+
data.tar.gz: b19da7170dd83c62554d9dfd99bfb7ce6f9da0530d2e886ef9d73204cfa37f43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49603f18207c06b86a5dfd0ca6ee7ee43aecfae68eb9894e9b0bea53df3e29cf34b44af392f1162e73f2381544c9d4d1ca470e9552e755a13f6744240634ae9d
|
7
|
+
data.tar.gz: 918f92f8768fa4f6843296103d302198ec11cd10b42852d25dea9d3a42b71f96524712e6f8dfc59a27ccf81c7912519b5daeddbe52a4870ef5729487a6817a89
|
@@ -1,104 +1,104 @@
|
|
1
1
|
<% if @page.class == PeriodPack %>
|
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
|
-
|
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
|
-
|
35
|
-
</div>
|
36
|
-
</div>
|
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 %>
|
34
|
+
</div>
|
56
35
|
</div>
|
57
36
|
</div>
|
58
|
-
<% end -%>
|
59
37
|
</div>
|
60
|
-
|
61
|
-
|
62
|
-
|
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>
|
67
69
|
</div>
|
68
70
|
</div>
|
69
|
-
|
70
|
-
</div>
|
71
|
-
<% end %>
|
71
|
+
<% end %>
|
72
72
|
<%else %>
|
73
|
-
<div class="nested-fields nested-fields_<%= field.attribute %> ">
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
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 %>
|
89
|
+
</div>
|
90
|
+
</div>
|
91
|
+
<% end -%>
|
89
92
|
</div>
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
<%end %>
|
94
|
-
<div>
|
95
|
-
<%= link_to_remove_association( t("administrate.fields.nested_has_many.remove.#{field.association_name}").html_safe,
|
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>
|
100
101
|
</div>
|
101
102
|
</div>
|
102
103
|
</div>
|
103
|
-
|
104
|
-
<% end %>
|
104
|
+
<% end %>
|
@@ -2,8 +2,8 @@ $:.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.0.
|
6
|
-
gem.authors = ["
|
5
|
+
gem.version = "5.0.1"
|
6
|
+
gem.authors = ["vini baxter"]
|
7
7
|
gem.email = ["vinybaxter@gmail.com"]
|
8
8
|
# gem.homepage = "https://github.com/nickcharlton/" \
|
9
9
|
# "administrate-field-nested_has_many"
|
metadata
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: viniBaxter-spa-nested_has_many
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
- Grayson Wright
|
7
|
+
- vini baxter
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|