active_admin_nested_forms 1.6.3.pre.beta

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9e4433ca581ccf32281e7ea5d4cda6a0f3c8338843c06458d109c57b18b12290
4
+ data.tar.gz: e96bb3b4db7a4a5b0466db75ef953ad74cc2bd35cc840635c27841a6f97eeef5
5
+ SHA512:
6
+ metadata.gz: cd8a415e42f558c45feea06ed506afb0a7f2ddb3ad14b8089568d37b2184dc5aa93460c5380a5307dcab479d732d42e204a1a908c6f32af7008319353910ef83
7
+ data.tar.gz: a92c2b292f3e74c343ea699fd75e68e2246e02444e1e7bca9f92726fa1c01279fd425cb2d1d58454674900206d3ac942e6ea45efdd8e8b2be51e05eed94f8d6a
data/CHANGELOG.md ADDED
File without changes
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at stjepan_vrljicak@yahoo.co.uk. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in active_admin_nested_forms.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,200 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ active_admin_nested_forms (1.6.2)
5
+ activeadmin
6
+ rails
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (5.2.8.1)
12
+ actionpack (= 5.2.8.1)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailer (5.2.8.1)
16
+ actionpack (= 5.2.8.1)
17
+ actionview (= 5.2.8.1)
18
+ activejob (= 5.2.8.1)
19
+ mail (~> 2.5, >= 2.5.4)
20
+ rails-dom-testing (~> 2.0)
21
+ actionpack (5.2.8.1)
22
+ actionview (= 5.2.8.1)
23
+ activesupport (= 5.2.8.1)
24
+ rack (~> 2.0, >= 2.0.8)
25
+ rack-test (>= 0.6.3)
26
+ rails-dom-testing (~> 2.0)
27
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
+ actionview (5.2.8.1)
29
+ activesupport (= 5.2.8.1)
30
+ builder (~> 3.1)
31
+ erubi (~> 1.4)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
+ activeadmin (2.7.0)
35
+ arbre (~> 1.2, >= 1.2.1)
36
+ formtastic (~> 3.1)
37
+ formtastic_i18n (~> 0.4)
38
+ inherited_resources (~> 1.7)
39
+ jquery-rails (~> 4.2)
40
+ kaminari (~> 1.0, >= 1.0.1)
41
+ railties (>= 5.2, < 6.1)
42
+ ransack (~> 2.1, >= 2.1.1)
43
+ sassc-rails (~> 2.1)
44
+ sprockets (>= 3.0, < 4.1)
45
+ activejob (5.2.8.1)
46
+ activesupport (= 5.2.8.1)
47
+ globalid (>= 0.3.6)
48
+ activemodel (5.2.8.1)
49
+ activesupport (= 5.2.8.1)
50
+ activerecord (5.2.8.1)
51
+ activemodel (= 5.2.8.1)
52
+ activesupport (= 5.2.8.1)
53
+ arel (>= 9.0)
54
+ activestorage (5.2.8.1)
55
+ actionpack (= 5.2.8.1)
56
+ activerecord (= 5.2.8.1)
57
+ marcel (~> 1.0.0)
58
+ activesupport (5.2.8.1)
59
+ concurrent-ruby (~> 1.0, >= 1.0.2)
60
+ i18n (>= 0.7, < 2)
61
+ minitest (~> 5.1)
62
+ tzinfo (~> 1.1)
63
+ arbre (1.2.1)
64
+ activesupport (>= 3.0.0)
65
+ arel (9.0.0)
66
+ base64 (0.2.0)
67
+ builder (3.2.4)
68
+ concurrent-ruby (1.2.3)
69
+ crass (1.0.6)
70
+ diff-lcs (1.5.1)
71
+ erubi (1.12.0)
72
+ ffi (1.15.5)
73
+ formtastic (3.1.5)
74
+ actionpack (>= 3.2.13)
75
+ formtastic_i18n (0.7.0)
76
+ globalid (0.4.2)
77
+ activesupport (>= 4.2.0)
78
+ has_scope (0.7.2)
79
+ actionpack (>= 4.1)
80
+ activesupport (>= 4.1)
81
+ i18n (1.14.5)
82
+ concurrent-ruby (~> 1.0)
83
+ inherited_resources (1.12.0)
84
+ actionpack (>= 5.2, < 6.2)
85
+ has_scope (~> 0.6)
86
+ railties (>= 5.2, < 6.2)
87
+ responders (>= 2, < 4)
88
+ jquery-rails (4.6.0)
89
+ rails-dom-testing (>= 1, < 3)
90
+ railties (>= 4.2.0)
91
+ thor (>= 0.14, < 2.0)
92
+ kaminari (1.2.2)
93
+ activesupport (>= 4.1.0)
94
+ kaminari-actionview (= 1.2.2)
95
+ kaminari-activerecord (= 1.2.2)
96
+ kaminari-core (= 1.2.2)
97
+ kaminari-actionview (1.2.2)
98
+ actionview
99
+ kaminari-core (= 1.2.2)
100
+ kaminari-activerecord (1.2.2)
101
+ activerecord
102
+ kaminari-core (= 1.2.2)
103
+ kaminari-core (1.2.2)
104
+ loofah (2.21.1)
105
+ crass (~> 1.0.2)
106
+ nokogiri (>= 1.5.9)
107
+ mail (2.7.1)
108
+ mini_mime (>= 0.1.1)
109
+ marcel (1.0.4)
110
+ method_source (1.1.0)
111
+ mini_mime (1.1.2)
112
+ mini_portile2 (2.4.0)
113
+ minitest (5.15.0)
114
+ nio4r (2.7.3)
115
+ nokogiri (1.10.10)
116
+ mini_portile2 (~> 2.4.0)
117
+ rack (2.2.9)
118
+ rack-test (2.1.0)
119
+ rack (>= 1.3)
120
+ rails (5.2.8.1)
121
+ actioncable (= 5.2.8.1)
122
+ actionmailer (= 5.2.8.1)
123
+ actionpack (= 5.2.8.1)
124
+ actionview (= 5.2.8.1)
125
+ activejob (= 5.2.8.1)
126
+ activemodel (= 5.2.8.1)
127
+ activerecord (= 5.2.8.1)
128
+ activestorage (= 5.2.8.1)
129
+ activesupport (= 5.2.8.1)
130
+ bundler (>= 1.3.0)
131
+ railties (= 5.2.8.1)
132
+ sprockets-rails (>= 2.0.0)
133
+ rails-dom-testing (2.1.1)
134
+ activesupport (>= 5.0.0)
135
+ minitest
136
+ nokogiri (>= 1.6)
137
+ rails-html-sanitizer (1.5.0)
138
+ loofah (~> 2.19, >= 2.19.1)
139
+ railties (5.2.8.1)
140
+ actionpack (= 5.2.8.1)
141
+ activesupport (= 5.2.8.1)
142
+ method_source
143
+ rake (>= 0.8.7)
144
+ thor (>= 0.19.0, < 2.0)
145
+ rake (13.2.1)
146
+ ransack (2.4.1)
147
+ activerecord (>= 5.2.4)
148
+ activesupport (>= 5.2.4)
149
+ i18n
150
+ responders (3.0.1)
151
+ actionpack (>= 5.0)
152
+ railties (>= 5.0)
153
+ rspec (3.13.0)
154
+ rspec-core (~> 3.13.0)
155
+ rspec-expectations (~> 3.13.0)
156
+ rspec-mocks (~> 3.13.0)
157
+ rspec-core (3.13.0)
158
+ rspec-support (~> 3.13.0)
159
+ rspec-expectations (3.13.0)
160
+ diff-lcs (>= 1.2.0, < 2.0)
161
+ rspec-support (~> 3.13.0)
162
+ rspec-mocks (3.13.1)
163
+ diff-lcs (>= 1.2.0, < 2.0)
164
+ rspec-support (~> 3.13.0)
165
+ rspec-support (3.13.1)
166
+ sassc (2.4.0)
167
+ ffi (~> 1.9)
168
+ sassc-rails (2.1.2)
169
+ railties (>= 4.0.0)
170
+ sassc (>= 2.0)
171
+ sprockets (> 3.0)
172
+ sprockets-rails
173
+ tilt
174
+ sprockets (3.7.3)
175
+ base64
176
+ concurrent-ruby (~> 1.0)
177
+ rack (> 1, < 3)
178
+ sprockets-rails (3.2.2)
179
+ actionpack (>= 4.0)
180
+ activesupport (>= 4.0)
181
+ sprockets (>= 3.0.0)
182
+ thor (1.2.2)
183
+ thread_safe (0.3.6)
184
+ tilt (2.3.0)
185
+ tzinfo (1.2.11)
186
+ thread_safe (~> 0.1)
187
+ websocket-driver (0.7.6)
188
+ websocket-extensions (>= 0.1.0)
189
+ websocket-extensions (0.1.5)
190
+
191
+ PLATFORMS
192
+ x86_64-linux
193
+
194
+ DEPENDENCIES
195
+ active_admin_nested_forms!
196
+ rake (~> 13.0)
197
+ rspec
198
+
199
+ BUNDLED WITH
200
+ 2.3.18
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 TODO: Write your name
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # IMPORTANT
2
+
3
+ This gem is still under heavy development and testing. It is not recommended to use it until we relase a stable version.
4
+
5
+ # ActiveAdminNestedForms
6
+
7
+ This gem reorganizes nested resources and forms in [ActiveAdmin](https://activeadmin.info/) gem. It creates collapsible forms and shows dialogs on creation of new resources.
8
+
9
+ ## Installation
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ $ bundle add active_admin_nested_forms
14
+
15
+ If bundler is not being used to manage dependencies, install the gem by executing:
16
+
17
+ $ gem install active_admin_nested_forms
18
+
19
+ ## Usage
20
+
21
+ Add javascript to your application.js file:
22
+
23
+ $ //= require activeadmin_nested_forms
24
+
25
+ and add the following css to your application.css file:
26
+
27
+ $ *= require activeadmin_nested_forms
28
+
29
+ If you're using selectize.js, you will need to use `select-beast` class on the selectize input in order for it to be initialized in the dialog.
30
+
31
+ This gem has datetime picker support while using input fields with class `datetimepicker`. The following example shows how to use it:
32
+
33
+ $ f.input :field, type: string, input_html: { class: "datetimepicker"}
34
+
35
+ You need to have jQuery for both selectize and datetimepicker support.
36
+
37
+ ## Contributing
38
+
39
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/active_admin_nested_forms. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/active_admin_nested_forms/blob/master/CODE_OF_CONDUCT.md).
40
+
41
+ ## License
42
+
43
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
44
+
45
+ ## Code of Conduct
46
+
47
+ Everyone interacting in the ActiveAdminNestedForms project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/active_admin_nested_forms/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
@@ -0,0 +1,11 @@
1
+ module NestedForms
2
+ class Forms
3
+ def self.portray(food)
4
+ if food.downcase == "broccoli"
5
+ "Gross!"
6
+ else
7
+ "Delicious!"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveAdminNestedForms
4
+ VERSION = "1.6.3-beta"
5
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_admin_nested_forms/forms'
4
+ require 'rails'
5
+ require_relative "active_admin_nested_forms/version"
6
+
7
+ module ActiveAdminNestedForms
8
+ module Rails
9
+ class Engine < ::Rails::Engine
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,4 @@
1
+ module ActiveAdminNestedForms
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
@@ -0,0 +1,122 @@
1
+ $(document).ready(function () {
2
+ (function (original) {
3
+ jQuery.fn.clone = function () {
4
+ var result = original.apply(this, arguments),
5
+ my_textareas = this.find('textarea').add(this.filter('textarea')),
6
+ result_textareas = result.find('textarea').add(result.filter('textarea')),
7
+ my_selects = this.find('select').add(this.filter('select')),
8
+ result_selects = result.find('select').add(result.filter('select'));
9
+
10
+ for (var i = 0, l = my_textareas.length; i < l; ++i) $(result_textareas[i]).val($(my_textareas[i]).val());
11
+ for (var i = 0, l = my_selects.length; i < l; ++i) {
12
+ for (var j = 0, m = my_selects[i].options.length; j < m; ++j) {
13
+ if (my_selects[i].options[j].selected === true) {
14
+ result_selects[i].options[j].selected = true;
15
+ }
16
+ }
17
+ }
18
+ return result;
19
+ };
20
+ })(jQuery.fn.clone);
21
+
22
+
23
+ $(".has_many_container").children("fieldset").each(function (i) {
24
+ var form = $(this).clone(true)
25
+ var model = $(this).parent()[0].className.split(/\s+/)[1]
26
+ var index = i
27
+ var name = ""
28
+ var collapse = '<button type="button" class="collapsible-element">' + name + '</button><div id="div_' + model + '_' + index + '" class="' + model + ' collapsible-content">';
29
+ $($(this).parent().parent().parent()).after(collapse)
30
+ $(`#div_${model}_${index}`).append(form)
31
+ $(`#div_${model}_${index}`).append("</div>")
32
+ $(this).remove()
33
+
34
+
35
+ });
36
+
37
+ initCollapse()
38
+ $(".has_many_container a.button.has_many_add").on("click", (e) => {
39
+ var dialog, form;
40
+ $(document).off("click", "a.button.has_many_add")
41
+ var model = $(e.target).parent("li")[0].className.split(/\s+/)[1]
42
+ var inputData = e.target.getAttribute("data-html")
43
+ const parent = e.target.parentElement
44
+
45
+ let index = parseInt(parent.dataset.has_many_index || (document.querySelectorAll(`div.${model}`).length - 1), 10)
46
+ parent.dataset.has_many_index = ++index
47
+ const regex = new RegExp(e.target.dataset.placeholder, 'g')
48
+ const html = inputData.replace(regex, index)
49
+
50
+ $("body").append("<div style='display:none' id='dialog-form' title='Napravi novi'> \
51
+ <form id="+ model + "_" + index + ">" + html + "\
52
+ <input type='hidden' name='model' value="+ model + "\
53
+ </form>\
54
+ </div>")
55
+ $("#dialog-form a.has_many_remove").remove()
56
+ dialog = $("#dialog-form").dialog({
57
+ autoOpen: false,
58
+ modal: true,
59
+ width: "fit-content",
60
+ buttons: {
61
+ "Spremi": function () {
62
+ var form = $(`#${model}_${index} fieldset`).clone(true)
63
+ var name = ""
64
+ var collapse = '<button type="button" class="collapsible-element">' + name + '</button><div id="div_' + model + '_' + index + '" class="collapsible-content">';
65
+ $(parent.parentElement.parentElement).after(collapse)
66
+ $(`#div_${model}_${index}`).append(form)
67
+ $(`#div_${model}_${index}`).append("</div>")
68
+ dialog.dialog("close")
69
+ },
70
+ Cancel: function () {
71
+ dialog.dialog("close");
72
+ }
73
+ },
74
+ close: function () {
75
+ $("#dialog-form").remove()
76
+ initCollapse()
77
+ },
78
+ open: function () {
79
+ $(`#${model}_${index} fieldset ol li .select-beast`).selectize();
80
+ var options = {
81
+ formatDate: 'd.m.Y',
82
+ format: 'd.m.Y H:i',
83
+ allowBlank: true,
84
+ defaultSelect: false,
85
+ validateOnBlur: false
86
+ }
87
+ $(`#${model}_${index} fieldset ol li .datetimepicker`).datetimepicker(options);
88
+ }
89
+ });
90
+
91
+ dialog.dialog("open");
92
+ })
93
+
94
+ });
95
+
96
+
97
+
98
+ function initCollapse() {
99
+ var coll = document.getElementsByClassName("collapsible-element");
100
+ var i;
101
+
102
+ for (i = 0; i < coll.length; i++) {
103
+ coll[i].addEventListener("click", function () {
104
+ this.classList.toggle("active");
105
+ var content = this.nextElementSibling;
106
+ if (content.style.maxHeight) {
107
+ content.style.maxHeight = null;
108
+ } else {
109
+ content.style.maxHeight = content.scrollHeight + "px";
110
+ }
111
+ $('.select-beast').selectize();
112
+ var options = {
113
+ formatDate: 'd.m.Y',
114
+ format: 'd.m.Y H:i',
115
+ allowBlank: true,
116
+ defaultSelect: false,
117
+ validateOnBlur: false
118
+ }
119
+ $(".datetimepicker").datetimepicker(options);
120
+ });
121
+ }
122
+ }
@@ -0,0 +1,48 @@
1
+ .collapsible-element {
2
+ background-color: #777;
3
+ color: white;
4
+ cursor: pointer;
5
+ padding: 18px;
6
+ width: 100%;
7
+ border: none;
8
+ text-align: left;
9
+ outline: none;
10
+ font-size: 15px;
11
+ }
12
+
13
+ .active, .collapsible-element:hover {
14
+ background-color: #555;
15
+ }
16
+
17
+ .collapsible-element:after {
18
+ content: '\002B';
19
+ color: white;
20
+ font-weight: bold;
21
+ float: right;
22
+ margin-left: 5px;
23
+ }
24
+
25
+ .active:after {
26
+ content: "\2212";
27
+ }
28
+
29
+ .collapsible-content {
30
+ padding: 0 18px;
31
+ max-height: 0;
32
+ overflow: hidden;
33
+ transition: max-height 0.2s ease-out;
34
+ background-color: #f1f1f1;
35
+ margin-bottom: 30px;
36
+ }
37
+
38
+
39
+ div.ui-dialog form ol li label {
40
+ width: fit-content;
41
+ }
42
+
43
+ div.ui-dialog-titlebar {
44
+ display: flex;
45
+ flex-direction: row;
46
+ justify-content: space-between;
47
+ align-items: center;
48
+ }
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: active_admin_nested_forms
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.6.3.pre.beta
5
+ platform: ruby
6
+ authors:
7
+ - Slobodna Domena Zadruga za otvoreni kod i dizajn
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-05-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activeadmin
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description:
56
+ email:
57
+ - stjepan_vrljicak@yahoo.co.uk
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - CHANGELOG.md
63
+ - CODE_OF_CONDUCT.md
64
+ - Gemfile
65
+ - Gemfile.lock
66
+ - LICENSE.txt
67
+ - README.md
68
+ - Rakefile
69
+ - lib/active_admin_nested_forms.rb
70
+ - lib/active_admin_nested_forms/forms.rb
71
+ - lib/active_admin_nested_forms/version.rb
72
+ - sig/active_admin_nested_forms.rbs
73
+ - vendor/assets/javascripts/activeadmin_nested_forms.js
74
+ - vendor/assets/stylesheets/activeadmin_nested_forms.css
75
+ homepage: https://github.com/StjepanSD/activeadmin_nested_forms
76
+ licenses:
77
+ - MIT
78
+ metadata:
79
+ homepage_uri: https://github.com/StjepanSD/activeadmin_nested_forms
80
+ source_code_uri: https://github.com/StjepanSD/activeadmin_nested_forms
81
+ changelog_uri: https://github.com/StjepanSD/activeadmin_nested_forms
82
+ post_install_message:
83
+ rdoc_options: []
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 2.4.0
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">"
94
+ - !ruby/object:Gem::Version
95
+ version: 1.3.1
96
+ requirements: []
97
+ rubygems_version: 3.0.8
98
+ signing_key:
99
+ specification_version: 4
100
+ summary: Gem that overrides normal active admin nested forms behaviour.
101
+ test_files: []