<%= error_messages_for 'user' %>
<!--[form:user]-->
<fieldset>
<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"><%= _("Editor")%>:</label>
	<input type="radio" name="user[editor]" value="2" id="editor_2" <%= 'checked="checked"' if @user.editor == 2 %>/>
	<label for="editor_2"><%= _("Use visual rich editor")%></label>
	<span class="float">
		<input type="radio" name="user[editor]" value="0" id="editor_0" <%= 'checked="checked"' if @user.editor == 0 %>/>
	    <label for="editor_0"><%= _("Use simple editor without live preview")%></label>
	</span>
	</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>
</fieldset>
<!--[eoform:user]-->
