templus_models 1.5.5 → 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/crud/_form.html.erb +1 -1
- data/app/views/crud/_form_group.html.erb +1 -1
- data/lib/templus_models/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: ca8d10def8df713619d43d33dfa10322e24ca25f
|
4
|
+
data.tar.gz: 4b9cba5f9dbbd67c2db9133ac9b3e8e5ea05c350
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 873713f6d8c582ca2a78cb473ea95d9675f17b202e2c269aa1c8d5ac2cc8435fb765927f49b9e51f8221e6a1b2e72bd2d941bae5e4ba59b9e6651db6e52d2ec2
|
7
|
+
data.tar.gz: 87a27c059b0c992b92021f4fca2483204657db8e87292d46cba8d4fe8426c405a50df6498c72bad7cc500c751010106e54d2772ea73277767a93e78140bff800
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<% if field[:sf].present? && field[:sf][:grupo].present? %>
|
27
27
|
<%= render "/crud/form_group", f: f, key: field[:attribute], groups: field[:sf] %>
|
28
28
|
<% else %>
|
29
|
-
<% if @model.reflect_on_association(field[:attribute]).
|
29
|
+
<% if @model.reflect_on_association(field[:attribute]).macro == :belongs_to && is_raro_crud(@model.reflect_on_association(field[:attribute]).class_name) && field[:sf][:add_registro].nil?%>
|
30
30
|
<%= render_plus_button(field,f,@model,@record) %>
|
31
31
|
<%else%>
|
32
32
|
<%= render_field(field,f,@model,@record) %>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<% if field[:sf].present? && field[:sf][:grupo].present? %>
|
15
15
|
<%= render "/crud/form_group", f: g, key: field[:attribute], groups: field[:sf] %>
|
16
16
|
<% else %>
|
17
|
-
<% if modelo.reflect_on_association(field[:attribute]).
|
17
|
+
<% if modelo.reflect_on_association(field[:attribute]).macro == :belongs_to && is_raro_crud(modelo.reflect_on_association(field[:attribute]).class_name) && field[:sf][:add_registro].nil?%>
|
18
18
|
<%= render_plus_button(field,g,modelo,f.object) %>
|
19
19
|
<%else%>
|
20
20
|
<%= render_field(field,g,modelo,f.object) %>
|