Fixed User CP cancel button and cleaned user views
This commit is contained in:
@@ -11,24 +11,26 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<p><%= f.label :username %><br />
|
||||
<%= f.text_field :username %></p>
|
||||
|
||||
<p><%= f.label :is_admin %>
|
||||
<%= f.check_box :is_admin, {checked: @user.admin?} %></p>
|
||||
<%= f.label :username %>
|
||||
<%= f.text_field :username %>
|
||||
|
||||
<p>
|
||||
Administrator <%= f.check_box :is_admin, {checked: @user.admin?} %>
|
||||
</p>
|
||||
|
||||
<p><%= f.label :email %><br />
|
||||
<%= f.email_field :email %></p>
|
||||
<%= f.label :email %>
|
||||
<%= f.email_field :email %>
|
||||
<br/>
|
||||
|
||||
<% if action_name == "new" %>
|
||||
<p><%= f.label :password, "New password" %><br />
|
||||
<%= f.password_field :password %></p>
|
||||
<%= f.label :password, "New password" %>
|
||||
<%= f.password_field :password %>
|
||||
|
||||
<p><%= f.label :password_confirmation %><br />
|
||||
<%= f.password_field :password_confirmation %></p>
|
||||
<%= f.label :password_confirmation %>
|
||||
<%= f.password_field :password_confirmation %>
|
||||
<% end %>
|
||||
|
||||
<div class="actions">
|
||||
<%= f.submit %>
|
||||
<%= f.submit :class => 'btn btn-primary' %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user