<%= form_for(@user, html: { role: :form }) do |f| %> <% if @user.errors.any? %> <% end %> <% if can? :manage, :all %>
<% end %>
<% @roles.each do |role| %> <% role = role.underscore %>
<% 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 %>