Commit 2867a3159e1e39aac6a53ac3eca5ae611be0fc8d

Authored by Fabio Teixeira
1 parent 5509ef56
Exists in master and in 79 other branches add_sisp_to_chef, add_super_archives_plugin, api_for_colab, automates_core_packing, backup_not_prod, changes_in_buttons_on_content_panel, colab_automated_login, colab_spb_plugin_recipe, colab_widgets_settings, design_validation, dev_env_minimal, disable_email_dev, fix_breadcrumbs_position, fix_categories_software_link, fix_edit_institution, fix_edit_software_with_another_license, fix_get_license_info, fix_gitlab_assets_permission, fix_list_style_inside_article, fix_list_style_on_folder_elements, fix_members_pagination, fix_merge_request_url, fix_models_translations, fix_no_license, fix_software_api, fix_software_block_migration, fix_software_communities_translations, fix_software_communities_unit_test, fix_style_create_institution_admin_panel, fix_superarchives_imports, fix_sym_links_noosfero, focus_search_field_theme, gov-user-refactoring, gov-user-refactoring-rails4, header_fix, institution_modal_on_rating, kalibro-conf-refactoring, kalibro-processor-package, lxc_settings, margin_fix, mezuro_cookbook, prezento, refactor_download_block, refactor_software_communities, refactor_software_for_sisp, register_page, release-process, release-process-v2, remove-unused-images, remove_broken_theme, remove_secondary_email_from_user, remove_sisp_buttons, removing_super_archives_email, review_message, scope2method, signals_user_noosfero, sisp_catalog_header, sisp_colab_config, sisp_dev, sisp_dev_master, sisp_simple_version, software_as_organization, software_catalog_style_fix, software_communities_html_refactor, software_infos_api, spb_minimal_env, spb_to_rails4, spec_refactor, stable-4.1, stable-4.2, stable-4.x, temp_soft_comm_refactoring, theme_header, theme_javascript_refactory, thread_dropdown, thread_page, update_search_by_categories, update_software_api, update_softwares_boxes

Remove user signup fields

Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>
Signed-off-by: Parley Martins <parley@outlook.com>
controllers/mpog_software_plugin_myprofile_controller.rb
@@ -4,11 +4,6 @@ class MpogSoftwarePluginMyprofileController &lt; MyProfileController @@ -4,11 +4,6 @@ class MpogSoftwarePluginMyprofileController &lt; MyProfileController
4 def index 4 def index
5 end 5 end
6 6
7 - def archive_software  
8 - puts "="*80  
9 - nil  
10 - end  
11 -  
12 def edit_institution 7 def edit_institution
13 @show_sisp_field = environment.admins.include?(current_user.person) 8 @show_sisp_field = environment.admins.include?(current_user.person)
14 @estate_list = NationalRegion.find(:all, :conditions=>["national_region_type_id = ?", 2], :order=>"name") 9 @estate_list = NationalRegion.find(:all, :conditions=>["national_region_type_id = ?", 2], :order=>"name")
lib/mpog_software_plugin.rb
@@ -16,43 +16,6 @@ class MpogSoftwarePlugin &lt; Noosfero::Plugin @@ -16,43 +16,6 @@ class MpogSoftwarePlugin &lt; Noosfero::Plugin
16 _("Add Public Software and MPOG features.") 16 _("Add Public Software and MPOG features.")
17 end 17 end
18 18
19 - def signup_extra_contents  
20 - institutions = Institution.all  
21 -  
22 - Proc::new do  
23 - content_tag(:div,  
24 - hidden_field_tag("user_password_menssage", _("Choose a password that you can remember easily. It must have at least 6 characters.")) +  
25 - required(labelled_form_field(  
26 - _('Secondary e-Mail'),  
27 - text_field(:user, :secondary_email, :id => 'secondary_email_field') +  
28 - content_tag(  
29 - :small, _("If you have a gov email, don't forget to use this email on the primary email") ,:class => 'signup-form',:id =>'secondary-email-balloon')  
30 - )),  
31 - :id => 'signup-secondary-email') +  
32 -  
33 - content_tag(:div,  
34 - labelled_form_field(  
35 - _('Institutions'),  
36 - content_tag(:div,  
37 - text_field(:institution, :name, :id=>"input_institution"),  
38 - :class => 'institution_container')+  
39 - content_tag(  
40 - :small, _('Fill with your institution') ,:class => 'signup-form', :id =>'institution-balloon'  
41 - ) +  
42 - content_tag(:div, _("The searched institution does not exist"), :id=>"institution_empty_ajax_message", :class=>"errorExplanation hide-field")+  
43 - link_to(_("Add new institution"), "#", :class=>'button with-text icon-add', :id => 'add_new_institution') +  
44 - link_to(_("Create new institution"), "#", :id=>"create_institution_link", :class=>'button with-text icon-add')+  
45 - hidden_field_tag("user[institution_ids][]", "", :class => 'user_institutions')+  
46 - hidden_field_tag("institution_selected", "")+  
47 - hidden_field_tag("full_name_error", _("Should begin with a capital letter and no special characters"))+  
48 - content_tag("ul", "",:class=>"institutions_added")+  
49 - content_tag(:div, "", :id=>"institution_dialog")  
50 - ),  
51 - :id => 'signup-institution'  
52 - )  
53 - end  
54 - end  
55 -  
56 def profile_editor_extras 19 def profile_editor_extras
57 if context.profile.person? 20 if context.profile.person?
58 expanded_template('person_editor_extras.html.erb') 21 expanded_template('person_editor_extras.html.erb')