Skip to content

Commit

Permalink
fixed some display issues
Browse files Browse the repository at this point in the history
  • Loading branch information
juliagrigni authored and tumbleshack committed Apr 24, 2021
1 parent 679bc27 commit d1dbd5c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions app/views/devise/registrations/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@
<%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation, autocomplete: "new-password" %>
</div>

<div class="field">
<%= f.fields_for :email_setting, include_id: false do |email_f| %>
<%= email_f.label :preference, "Email Notification Preferences" %>
<p>TODO: Descriptive text</p>
<%= email_f.select(:preference, EmailSetting::OPTIONS) %>
<% end %>

<% if current_user != nil and (current_user.admin? or current_user.volunteer?)%>
<div class="field">
<%= f.fields_for :email_setting, include_id: false do |email_f| %>
<%= email_f.label :preference, "Email Notification Preferences" %>
<p>When would you like to be notified of requests?</p>
<%= email_f.select(:preference, EmailSetting::OPTIONS) %>
<% end %>
</div>
<% end %>

<div class="field">
<%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
Expand Down

0 comments on commit d1dbd5c

Please sign in to comment.