Commit 9dda8ae7cb28210e603abeac52ae15c4528a085d
1 parent
9aa9bc85
Exists in
master
and in
5 other branches
Change Primary fields header for user, rename tabs
Signed-off-by: Gabriela Navarro <navarro1703@gmail.com> Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
lib/mpog_software_plugin.rb
@@ -177,7 +177,7 @@ class MpogSoftwarePlugin < Noosfero::Plugin | @@ -177,7 +177,7 @@ class MpogSoftwarePlugin < Noosfero::Plugin | ||
177 | 177 | ||
178 | def profile_tabs | 178 | def profile_tabs |
179 | if context.profile.person? | 179 | if context.profile.person? |
180 | - { :title => _("Mpog"), | 180 | + { :title => _("Secundary Information"), |
181 | :id => 'mpog-fields', | 181 | :id => 'mpog-fields', |
182 | :content => Proc::new do render :partial => 'profile_tab' end, | 182 | :content => Proc::new do render :partial => 'profile_tab' end, |
183 | :start => true } | 183 | :start => true } |
public/mpog-user-validations.js
@@ -323,6 +323,8 @@ | @@ -323,6 +323,8 @@ | ||
323 | function get_edit_fields_in_insertion_order() { | 323 | function get_edit_fields_in_insertion_order() { |
324 | var containers = []; | 324 | var containers = []; |
325 | 325 | ||
326 | + try_to_remove(containers, jQuery("h2")[0]); | ||
327 | + try_to_remove(containers, jQuery(".pseudoformlabel").parent().parent()); | ||
326 | try_to_remove(containers, get_privacy_selector_parent_div("#profile_data_name")); | 328 | try_to_remove(containers, get_privacy_selector_parent_div("#profile_data_name")); |
327 | try_to_remove(containers, get_privacy_selector_parent_div("#profile_data_email")); | 329 | try_to_remove(containers, get_privacy_selector_parent_div("#profile_data_email")); |
328 | try_to_remove(containers, jQuery("#user_secondary_email").parent().parent()); | 330 | try_to_remove(containers, jQuery("#user_secondary_email").parent().parent()); |