<%= error_messages_for 'user' %>
<ul>
<li>
  <label class="float" for="user_login"><%= _("Login")%>:</label>
  <%= text_field 'user', 'login'  %>
</li>
<% if current_user.admin? %>
<li>
	<label class="float" for="user_profile"><%= _("Profile")%>:</label>
	<%=  select("user", "profile_id", @profiles.collect {|p| [ _(p.nicename), p.id ] }, { :include_blank => true }) %>
  <% # _("Blog publisher"), _("Contributor") , _("Typo administrator") %>
</li>
<% end %>
<li>
  <label class="float" for="user_login"><%= _("Display Name")%>:</label>
  <%= text_field 'user', 'name'  %>
</li>
<li>
<label class="float" for="user_email"><%= _("Email")%>:</label> 
<%= text_field 'user', 'email'  %> <small><%=_("(this will be shown publically if supplied)") %></small>
</li>
<li>
  <label class="float" for="user_password"><%= _("Password")%>:</label>
  <%= password_field_tag 'user[password]', '', :id => 'user_password', :size => 30 %>
</li>
<li>
  <label class="float" for="user_password"><%= _("Password confirmation")%>:</label>
  <%= password_field 'user', 'password_confirmation'  %>
</li>
<li>
  <label class='float' for="user_state"><%= _("State")%></label>
  <select name="user[state]">
    <option value="active" <%= 'selected' if @user.state == 'active' %>><%= _("Active")%></option>
    <option value="inactive" <%= 'selected' if @user.state == 'inactive'%>><%= _("Inactive")%></option>
  </select>
</li>
<li>
	<label class="float"><%= _("Editor")%>:</label>
	<input type="radio" name="user[editor]" value="visual" id="editor_2" <%= 'checked="checked"' if @user.editor == 'visual' %>/>
	<label for="editor_2"><%= _("Use visual rich editor")%></label>
	<span class="float">
		<input type="radio" name="user[editor]" value="simple" id="editor_0" <%= 'checked="checked"' if @user.editor == 'simple' %>/>
	    <label for="editor_0"><%= _("Use simple editor")%></label>
	</span>
</li>
<li>
    <label class="float" for="text_filter"><%= _("Article filter")%>:</label>
    <select name="user[text_filter_id]" id="text_filter">
      <%= options_for_select text_filter_options_with_id, @user.text_filter.id %>
    </select>
</li>
<li>
  <label class="float" for="user_notify_via_email"><%= _("Send notification messages via email")%>?</label>
  <%= check_box 'user', 'notify_via_email'  %> 
</li>
<li>
  <label class="float" for="user_notify_on_new_articles"><%= _("Send notification messages when new articles are posted")%>?</label>
  <%= check_box 'user', 'notify_on_new_articles'  %>
</li>

<li>
  <label class="float" for="user_notify_on_comments"><%= _("Send notification messages when comments are posted")%>?</label>
  <%= check_box 'user', 'notify_on_comments'  %>
</li>
</ul>
