Commit 2867a3159e1e39aac6a53ac3eca5ae611be0fc8d
1 parent
5509ef56
Exists in
master
and in
5 other branches
Remove user signup fields
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com> Signed-off-by: Parley Martins <parley@outlook.com>
Showing
2 changed files
with
0 additions
and
42 deletions
Show diff stats
controllers/mpog_software_plugin_myprofile_controller.rb
@@ -4,11 +4,6 @@ class MpogSoftwarePluginMyprofileController < MyProfileController | @@ -4,11 +4,6 @@ class MpogSoftwarePluginMyprofileController < 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 < Noosfero::Plugin | @@ -16,43 +16,6 @@ class MpogSoftwarePlugin < 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') |