Sha256: 057543c96711b79e7f147baaf758ffbefa4fa0702f3feafb5ee30cad766e80f6
Contents?: true
Size: 1.44 KB
Versions: 3
Compression:
Stored size: 1.44 KB
Contents
<% ao = f.object ? f.object : @orgsocial %> <% if ao.id %> <% div_id = "orgsocial_persona_#{ao.id}" %> <div id="<%= div_id %>" class="orgsocial_persona"> <label class="string optional control-label" for="tabla_<%= div_id %>"><%= t('Contactos en la organización social') %></label> <table id="tabla_<%= div_id %>" class="table table-bordered"> <thead> <tr> <th scope="col"><%= t('Nombres') %></th> <th scope="col"><%= t('Apellidos') %></th> <th scope="col"><%= t('Sexo') %></th> <th scope="col"><%= t('Perfil') %></th> <th scope="col"><%= t('Cargo') %></th> <th scope="col"><%= t('Correo') %></th> <th scope="col"><%= t('Acciones') %></th> </tr> </thead> <tbody id='orgsocial_persona'> <%= f.simple_fields_for :orgsocial_persona, Msip::OrgsocialPersona.where(orgsocial_id: ao.id) do |ap| %> <%= render 'orgsocial_persona_campos', :f => ap %> <% end %> </tbody> </table> <div class="links"> <%= link_to_add_association t('Añadir contacto'), f, :orgsocial_persona, :"data-association-insertion-node" => "tbody#orgsocial_persona", :"data-association-insertion-method" => "append", partial: 'orgsocial_persona_campos', :class => 'btn-primary' %> </div> </div> <% else %> <p>Podrá crear contactos una vez cree la organización social</p> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems