%= form_for(@user, html: { role: :form }) do |f| %>
<% if @user.errors.any? %>
<%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:
<% @user.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<% if can? :manage, :all %>
<% end %>
<%= f.label :email %>
<%= f.text_field :email, class: "form-control" %>
<%= f.submit button_text, class: "btn btn-primary" %>
<%= link_to "Cancel", cancel_path, class: "btn btn-default" %>
<% end %>