para 0.11.3 → 0.11.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e85115947c19d8b42e046fca2d3f6c6fbc4de0c6ec23d7941936508a6b5ef67
|
4
|
+
data.tar.gz: 400dce7d9cc881e1fd4a94efa11eba4f71f8bcc3cb169acb0f5e1a476bc42bd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f83c8f52b7c04547afc074473d5f75ee3c7c1a4acd0b8b32725f0ae5985fca258a3a5a21399763b90c117ecc283d8241ffb15a1271666aa33f850a47044348f
|
7
|
+
data.tar.gz: 8d45c55a0805a8965bb5ea8eae588f7ca43b2f2318ebf0cbb195dffae962f6e15f68bbeb54bb2e40c78c70758bbf4b6783861f873e79270f33fb5320a0db4a29
|
@@ -1,9 +1,15 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
- if subclasses.one?
|
2
|
+
- submodel = subclasses.first
|
3
|
+
|
4
|
+
= link_to_add_association form, attribute_name, wrap_object: proc { with_inverse_association_for(submodel.new, attribute_name, form.object) }, partial: find_partial_for(model, 'nested_many/container', partial_dir: 'inputs'), form_name: 'form', class: "btn btn-shadow add-button nested-many-inset-add-button #{add_button_class}", data: { :'association-insertion-node' => "##{ dom_identifier }", :'association-insertion-method' => 'append' }, render_options: { nested_attribute_name: attribute_name, orderable: orderable, locals: { model: submodel, nested_locals: nested_locals, inset: inset, uncollapsed: uncollapsed, render_partial: render_partial, remote_partial_params: remote_partial_params } } do
|
3
5
|
= add_button_label
|
4
|
-
|
5
|
-
|
6
|
-
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
- else
|
7
|
+
.add-button.nested-many-inset-add-button.dropdown
|
8
|
+
%button.btn.btn-shadow.dropdown-toggle{ class: add_button_class, type: 'button', data: { toggle: 'dropdown' } }
|
9
|
+
= add_button_label
|
10
|
+
%i.fa.fa-angle-down
|
11
|
+
%ul.dropdown-menu
|
12
|
+
- subclasses.each do |submodel|
|
13
|
+
%li
|
14
|
+
= link_to_add_association form, attribute_name, wrap_object: proc { with_inverse_association_for(submodel.new, attribute_name, form.object) }, partial: find_partial_for(submodel, 'nested_many/container', partial_dir: 'inputs'), form_name: 'form', class: 'dropdown-link', data: { :'association-insertion-node' => "##{ dom_identifier }", :'association-insertion-method' => 'append' }, render_options: { nested_attribute_name: attribute_name, orderable: orderable, locals: { model: submodel, nested_locals: nested_locals, inset: inset, uncollapsed: uncollapsed, render_partial: render_partial, remote_partial_params: remote_partial_params } } do
|
15
|
+
= submodel.model_name.human
|
data/lib/para/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: para
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Valentin Ballestrino
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_decorator
|