Added a selector for users role in admin cp

This commit is contained in:
2013-01-28 01:30:14 -05:00
parent 55739c5fc8
commit 871c0f14f1
2 changed files with 5 additions and 5 deletions

View File

@@ -13,10 +13,10 @@
<%= f.label :username %>
<%= f.text_field :username %>
<p>
Administrator &nbsp; <%= f.check_box :is_admin, {checked: @user.admin?} %>
</p>
<br/>
<%= collection_select(:user, :role_id, Role.all, :id, :name) %>
<%= f.label :email %>
<%= f.email_field :email %>