app/views/msip/modelos/_form.html.erb in msip-2.2.0.alfa3 vs app/views/msip/modelos/_form.html.erb in msip-2.2.0.beta1
- old
+ new
@@ -1,11 +1,12 @@
<% if @registro.nil? %>
<% return %>
<% end %>
-<%= simple_form_for @registro,
+<% atributos_html = controller.atributos_html_encabezado_formulario() %>
+<%= simple_form_for(
+ @registro,
url: modelo_path(@registro),
- html: @encform_html.nil? ? {} : @encform_html,
- defaults: { input_html: { class: 'span10' } } do |f|
+ html: atributos_html) do |f|
%>
<%= render partial: 'msip/hogar/errores', locals: { f: f } %>
<% atributos_form.each do |atr| %>
<% vatr = atr.to_s.gsub(/[^a-z_A-Z0-9]/, '') %>