headwayio / voyage

A Rails template with our standard defaults, ready to deploy to Heroku. **See readme in: lib/voyage/README.md**
https://headway.io/voyage
MIT License
0 stars 1 forks source link

View Improvements #31

Closed GeekOnCoffee closed 6 years ago

GeekOnCoffee commented 7 years ago

app/views/admin/users/_password_fields.html.slim

/ TODO: (2017-06-11) jon => bring this back to voyage
- if user.new_record?
  = f.input :password, hint: User::PASSWORD_FORMAT_MESSAGE
  = f.input :password_confirmation

app/views/admin/users/_role_edit.html.erb <%# TODO: (2017-06-11) jon => bring this back to voyage %>

<%= label_tag 'roles', 'Roles' %>
<% for role in roles %>
<%= radio_button_tag "user[roles]", role, user.roles.include?(role), { name: 'user[roles][]', style: 'margin: 0px;' } %> <%= label_tag "user_roles_#{role}", role.to_s.humanize, style: 'position: relative; top: -5px;' %>
<% end %>