diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-12-13 15:39:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-12-13 15:39:09 +0000 |
commit | f4c37007025b5bdd018c1b95f54a077a4c52319e (patch) | |
tree | 8de70b46aa6cd6ccd19c28c784eef5bf69b90e8c /app/views/account | |
parent | 1b5a4faf0c74cd31f6f73786f8a870651305740c (diff) | |
download | redmine-f4c37007025b5bdd018c1b95f54a077a4c52319e.tar.gz redmine-f4c37007025b5bdd018c1b95f54a077a4c52319e.zip |
Adds the "Hide my email address" option on the registration form (#21500).
git-svn-id: http://svn.redmine.org/redmine/trunk@14976 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/account')
-rw-r--r-- | app/views/account/register.html.erb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/account/register.html.erb b/app/views/account/register.html.erb index f655514a3..0cd0d8cff 100644 --- a/app/views/account/register.html.erb +++ b/app/views/account/register.html.erb @@ -16,6 +16,10 @@ <p><%= f.text_field :firstname, :required => true %></p> <p><%= f.text_field :lastname, :required => true %></p> <p><%= f.text_field :mail, :required => true %></p> +<%= labelled_fields_for :pref, @user.pref do |pref_fields| %> +<p><%= pref_fields.check_box :hide_mail %></p> +<% end %> + <% unless @user.force_default_language? %> <p><%= f.select :language, lang_options_for_select %></p> |