<%= form_for [:admin, @user] do |form| %> <%= render('shared/form_errors', form: form) %>
<% unless current_user == @user %>
<%= form.label :role %> <%= form.select :role, @roles %>
<% end %>
<%= form.label :email %> <%= form.email_field :email %>
<% if form.object.new_record? %>
<%= form.label :password %> <%= form.password_field :password %>
<%= form.label :password_confirmation %> <%= form.password_field :password_confirmation %>
<% end %>
<%= form.label :title %> <%= form.text_field :title %>
<%= form.label :first_name %> <%= form.text_field :first_name %>
<%= form.label :surname %> <%= form.text_field :surname %>
<%= form.label :telephone %> <%= form.telephone_field :telephone %>
<%= form.label :address1 %> <%= form.text_field :address1 %>
<%= form.text_field :address2 %>
<%= form.text_field :address3 %>
<%= form.label :post_code %> <%= form.text_field :post_code %>
<% if Settings.blog_system_enabled && @user.persisted? && @user.admin? && ((User.blog_author.present? && User.blog_author.id == @user.id) || (User.blog_author.blank?)) %>
<% end %>
<% end %>