diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index abd7bab..3bb0b1c 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -25,14 +25,16 @@ <%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation, autocomplete: "new-password" %> - -
- <%= f.fields_for :email_setting, include_id: false do |email_f| %> - <%= email_f.label :preference, "Email Notification Preferences" %> -

TODO: Descriptive text

- <%= email_f.select(:preference, EmailSetting::OPTIONS) %> - <% end %> + + <% if current_user != nil and (current_user.admin? or current_user.volunteer?)%> +
+ <%= f.fields_for :email_setting, include_id: false do |email_f| %> + <%= email_f.label :preference, "Email Notification Preferences" %> +

When would you like to be notified of requests?

+ <%= email_f.select(:preference, EmailSetting::OPTIONS) %> + <% end %>
+ <% end %>
<%= f.label :current_password %> (we need your current password to confirm your changes)