<% object_name_underscore = f.object_name.gsub(/[\[\]]/,'_') %>
<div class="user_form_block <%= f.object.new_record? ? 'new_record' : '' %>">
  <span class="block_remove_btn">X</span>
  <div style="clear: both;"></div>
  <div class="control-group">
    <%= f.label :user_name ,t("client_management.user_name"), :class => "control-label muted" %>
    <div class="controls">
      <%= f.text_field :user_name, :placeholder => t("client_management.user_name") %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :new_password ,t("client_management.new_password"), :class => "control-label muted", :for=>"#{object_name_underscore}_new_password" %>
    <div class="controls">
      <%= f.password_field_tag "#{f.object_name}[password]", nil, :placeholder => t("client_management.new_password"), :id=>"#{object_name_underscore}_new_password", :data => {"rule-password"=> true} %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :confirm_new_password ,t("client_management.confirm_new_password"), :class => "control-label muted", :for=>"#{object_name_underscore}_confirm_new_password" %>
    <div class="controls">
      <%= f.password_field_tag "#{f.object_name}[password_confirmation]", nil, :placeholder => t("client_management.confirm_new_password"), :id=>"#{object_name_underscore}_confirm_new_password", :data => {"rule-password"=> true, "rule-equalTo"=>"##{object_name_underscore}_new_password"} %>
    </div>
  </div>
  <% unless f.object.new_record? %>
    <%= f.hidden_field :id %>
    <%= f.hidden_field :_destroy, :value => nil, :class => 'should_destroy' %>
  <% end %>
</div>