apiotics 0.1.136 → 0.1.137
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apiotics/version.rb +1 -1
- data/lib/generators/apiotics/view/templates/form.html.erb +11 -19
- 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: 492edaf4f10ea5c9dcb04eb1ca3db509d1de0c70
|
4
|
+
data.tar.gz: 4527a559cb22d08774661570f08216273088c09e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4668e46e6f0e3932bd4d551c511538d76d8fc3f8861cd7ca0cd883014d1b91580efb79b258ba5362ba6717e1444de064ecfbb53aab1bac61e3209ba21accfaa7
|
7
|
+
data.tar.gz: 4bb36491213379f7235249be4dacbff6d719be0f68a85c746f4d58e2da02ae8f0b2d66d8b44894850135b07991d73288f232033a20ef7a3383b8a8c205a9e044
|
data/lib/apiotics/version.rb
CHANGED
@@ -18,28 +18,20 @@
|
|
18
18
|
</tr>
|
19
19
|
<% Apiotics.configuration.targets[module_name].keys.each do |key| %>
|
20
20
|
<tr>
|
21
|
-
<th
|
21
|
+
<th>
|
22
22
|
<%= key %>
|
23
23
|
</th>
|
24
24
|
<%%= form.simple_fields_for :<%= key.underscore.downcase %> do |fields| %>
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
<%%= fields.input :<%= interface %> %>
|
36
|
-
<% end %>
|
37
|
-
</td>
|
38
|
-
<% if n != 0 %>
|
39
|
-
</tr>
|
40
|
-
<% end %>
|
41
|
-
<% n += 1 %>
|
42
|
-
<% end %>
|
25
|
+
<td>
|
26
|
+
<% Apiotics.configuration.targets[module_name][key].each do |interface| %>
|
27
|
+
<% a = Apiotics.get_attributes(module_name,key) %>
|
28
|
+
<% if a[:attributes][interface][:type] == "enum" %>
|
29
|
+
<%%= fields.input :<%= interface %>, collection: <%= a[:attributes][interface][:values] %> %>
|
30
|
+
<% else %>
|
31
|
+
<%%= fields.input :<%= interface %> %>
|
32
|
+
<% end %>
|
33
|
+
<% end %>
|
34
|
+
</td>
|
43
35
|
<%% end %>
|
44
36
|
</tr>
|
45
37
|
<% end %>
|