Commit 1be114f2d373237de7c64751f01efc2591f1ba10
Committed by
Gabriela Navarro
1 parent
a112aae2
Exists in
master
and in
5 other branches
Fix institution profile visualization
Signed-off-by: Gabriela Navarro <navarro1703@gmail.com> Signed-off-by: Gustavo Jaruga <darksshades@gmail.com> Signed-off-by: Parley Martins <parley@outlook.com>
Showing
1 changed file
with
11 additions
and
11 deletions
Show diff stats
views/profile/_institution_tab.html.erb
| ... | ... | @@ -3,19 +3,19 @@ |
| 3 | 3 | <th colspan='2'><%= _('Institution Information')%></th> |
| 4 | 4 | </tr> |
| 5 | 5 | |
| 6 | - <%= display_field(_('Type:'), profile.institution, :type, true) %> | |
| 7 | - <%= display_field(_('CNPJ:'), profile.institution, :cnpj, true) %> | |
| 8 | - <%= display_field(_('Last modification:'), profile.institution, :date_modification, true) %> | |
| 9 | - <%= display_field(_('Country:'), profile.institution.community, :country, true) %> | |
| 10 | - <%= display_field(_('State:'), profile.institution.community, :state, true) %> | |
| 11 | - <%= display_field(_('City:'), profile.institution.community, :city, true) %> | |
| 6 | + <%= display_mpog_field(_('Type:'), profile.institution, :type, true) %> | |
| 7 | + <%= display_mpog_field(_('CNPJ:'), profile.institution, :cnpj, true) %> | |
| 8 | + <%= display_mpog_field(_('Last modification:'), profile.institution, :date_modification, true) %> | |
| 9 | + <%= display_mpog_field(_('Country:'), profile.institution.community, :country, true) %> | |
| 10 | + <%= display_mpog_field(_('State:'), profile.institution.community, :state, true) %> | |
| 11 | + <%= display_mpog_field(_('City:'), profile.institution.community, :city, true) %> | |
| 12 | 12 | <% if profile.institution.type == "PrivateInstitution"%> |
| 13 | - <%= display_field(_('Fantasy Name:'), profile.institution, :acronym, true) %> | |
| 13 | + <%= display_mpog_field(_('Fantasy Name:'), profile.institution, :acronym, true) %> | |
| 14 | 14 | <% else %> |
| 15 | - <%= display_field(_('Acronym:'), profile.institution, :acronym, true) %> | |
| 16 | - <%= display_field(_('Governmental Power:'), profile.institution.governmental_power, :name, true) %> | |
| 17 | - <%= display_field(_('Governmental Sphere:'), profile.institution.governmental_sphere, :name, true) %> | |
| 18 | - <%= display_field(_('Juridical Nature:'), profile.institution.juridical_nature, :name, true) %> | |
| 15 | + <%= display_mpog_field(_('Acronym:'), profile.institution, :acronym, true) %> | |
| 16 | + <%= display_mpog_field(_('Governmental Power:'), profile.institution.governmental_power, :name, true) %> | |
| 17 | + <%= display_mpog_field(_('Governmental Sphere:'), profile.institution.governmental_sphere, :name, true) %> | |
| 18 | + <%= display_mpog_field(_('Juridical Nature:'), profile.institution.juridical_nature, :name, true) %> | |
| 19 | 19 | <%= content_tag('tr', content_tag('td', _("SISP:")) + content_tag('td', profile.institution.sisp ? _("Yes") : _("No"))) %> |
| 20 | 20 | <% end %> |
| 21 | 21 | </table> | ... | ... |