Sha256: e4fcf2d747356a4c219b76eb865e62df29218124523596a4c7b63c9a0f5e04a6
Contents?: true
Size: 1.54 KB
Versions: 3
Compression:
Stored size: 1.54 KB
Contents
<tr class='nested-fields campos_persona'> <% if f.object.persona.nil? %> <% f.object.persona = Msip::Persona.new %> <% end %> <%= f.simple_fields_for :persona do |p| %> <td> <%= p.input :id, as: :hidden %> <% ph = 'N' ac = {'data-autocompleta' => 'no' } if (!p.object || !p.object.nombres || p.object.nombres == 'N' || p.object.nombres == '') ph = t('Buscar') ac = { } end %> <%= p.input :nombres, placeholder: ph, value_method: lambda {|t| '' if t.nombres == 'N'}, label: false, :input_html => ac %> </td> <td> <%= p.input :apellidos, label: false %> </td> <td> <%= p.input :sexo, collection: Msip::Persona::sexo_opciones_cortas, label: false, input_html: { style: 'width: 4em' }, include_blank: false %> </td> <td> <%= f.association :perfilorgsocial, collection: Msip::Perfilorgsocial.habilitados.order(:nombre), include_blank: true, label: false, label_method: :nombre, value_method: :id %> </td> <td> <%= f.input :cargo, label: false %> </td> <td> <%= f.input :correo, label: false %> </td> <td> <%= f.input :id, as: :hidden %> <%= render partial: 'msip/orgsociales/orgsocial_persona_campos_mas_acciones', locals: {f: f} %> <%= link_to_remove_association "Eliminar", f, :class => 'btn-danger', "data-existing" => true %> <div><%= f.error_notification %></div> </td> <% end %> </tr>
Version data entries
3 entries across 3 versions & 1 rubygems