Commit 515421060511b88b6bc36db6d9f1b309f1786069

Authored by Parley
Committed by Fabio Teixeira
1 parent fd355e41

Implement new rule of profile tabs.

Signed-off-by: Parley Martins <parley@outlook.com>
lib/ext/profile_helper.rb 0 → 100644
@@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
  1 +module ProfileHelper extend ProfileHelper
  2 + PERSON_CATEGORIES[:mpog_profile_information] = [:secondary_email, :institutions]
  3 +end
views/profile/_profile_tab.html.erb
1 <table> 1 <table>
2 - <tr>  
3 - <th colspan='2'><%= _('Mpog Profile Information')%></th>  
4 - </tr>  
5 -  
6 - <%= display_field(_('Secondary E-mail:'), profile, :secondary_email, true) %>  
7 - <%= display_field(_('Institution:'), profile, :institutions, true) %> 2 + <%= display_mpog_profile_information %>
8 </table> 3 </table>