_institution_tab.html.erb 1.28 KB
<table>
  <tr>
    <th colspan='2'><%= _('Institution Information')%></th>
  </tr>

  <%= display_mpog_field(_('Type:'), profile.institution, :type, true) %>
  <%= display_mpog_field(_('CNPJ:'), profile.institution, :cnpj, true) %>
  <%= display_mpog_field(_('Last modification:'), profile.institution, :date_modification, true) %>
  <%= display_mpog_field(_('Country:'), profile.institution.community, :country, true) %>
  <%= display_mpog_field(_('State:'), profile.institution.community, :state, true) %>
  <%= display_mpog_field(_('City:'), profile.institution.community, :city, true) %>
  <% if profile.institution.type == "PrivateInstitution"%>
    <%= display_mpog_field(_('Fantasy Name:'), profile.institution, :acronym, true) %>
  <% else %>
    <%= display_mpog_field(_('Acronym:'), profile.institution, :acronym, true) %>
    <%= display_mpog_field(_('Governmental Power:'), profile.institution.governmental_power, :name, true) %>
    <%= display_mpog_field(_('Governmental Sphere:'), profile.institution.governmental_sphere, :name, true) %>
    <%= display_mpog_field(_('Juridical Nature:'), profile.institution.juridical_nature, :name, true) %>
    <%= content_tag('tr', content_tag('td', _("SISP:")) + content_tag('td', profile.institution.sisp ? _("Yes") : _("No"))) %>
  <% end %>
</table>