phantom_nested_forms 0.2.0.alpha1 → 0.2.0.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phantom_nested_forms/helper.rb +11 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22382aa85c1ccd1b41eed6e8c8ad6d952b37f18a
|
4
|
+
data.tar.gz: 195c008bd87cc86dcfa7cbe47feac83f6b283553
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ade2fc4f77e91e76f9bb6e91a67881df4bc47c60b0caf811e1d9aae8af2aa66b7d37cbfec80ac291f4e8f8a3ce1d3c91a18e501917bb1479feb6426e9d46cb5
|
7
|
+
data.tar.gz: cc0fa668b8996e539e95c395b821ff9aae760c8d595943afd7438a457ca569bd1d1991c2c1e6d600bb963ef1e86b303a7921b855e79a02deeba5cdf2ddc2641b
|
@@ -18,7 +18,17 @@ module PhantomNestedForms
|
|
18
18
|
options[:builder] = PhantomNestedForms::FormBuilders::ValidateNestedFormBuilder
|
19
19
|
options[:html] = {:'data-type' => 'script', :class => 'remote-form'}
|
20
20
|
options[:remote] = true
|
21
|
-
|
21
|
+
|
22
|
+
object_name = get_class(extract_object(object))
|
23
|
+
object_class = options[:resource] || object_name
|
24
|
+
label = options[:label] || t("#{object_name.underscore}.singular")
|
25
|
+
|
26
|
+
content_tag :div, class: "col-md-12 alert-dismissable" do
|
27
|
+
content_tag :div, class: "panel panel-primary" do
|
28
|
+
concat(panel_title(label, modal_close_button))
|
29
|
+
concat(content_tag(:div, class: "panel-body") { nested_form_for(object, options, &block) })
|
30
|
+
end
|
31
|
+
end
|
22
32
|
end
|
23
33
|
|
24
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phantom_nested_forms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.
|
4
|
+
version: 0.2.0.alpha2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vassil Kalkov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-11-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: phantom_forms
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.2.0.
|
21
|
+
version: 0.2.0.alpha2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.2.0.
|
28
|
+
version: 0.2.0.alpha2
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: nested_form
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|