alchemy-ajax-form 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/alchemy/admin/ajax_forms/show.html.erb +10 -10
- data/lib/alchemy/ajax/form/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3887f4486e2db4477b08d50e2e4abf5dbd7007de
|
4
|
+
data.tar.gz: 227be55b2539a66a34cd7754a56b5f836a24fe60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b268670c280ee6f5aab25d5b0915a7bee26c26fccc7cfd45f14b935011c05c4bc242792ec2119ac9529c219c0cb1153a0497f75ef61fd9b161d45e5413c39565
|
7
|
+
data.tar.gz: 30cd28c9352154610c0295cac22628814b6e5b903d4cb945afb0cbcaa1307ac081263cb47fd5da6245c6fa5cc04dbd3784920e0806192286383e6a5feadb1548
|
@@ -1,12 +1,12 @@
|
|
1
|
-
|
2
1
|
<% resource_handler.attributes.each do |attribute| %>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
</div>
|
11
|
-
|
2
|
+
<% if not @resource.send(attribute[:name]).blank? %>
|
3
|
+
<div class="attribute_row">
|
4
|
+
<div class="labelfield">
|
5
|
+
<%= @resource.class.human_attribute_name(attribute[:name].to_sym) %>
|
6
|
+
</div>
|
7
|
+
<div class="valuefield">
|
8
|
+
<%= render_attribute(@resource, attribute) %>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
<% end %>
|
12
12
|
<% end %>
|