<% object_name_underscore = f.object_name.gsub(/[\[\]]/,'_') %>
<div class="backup_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 :disable ,t("client_management.disable"), :class => "control-label muted" %>
    <div class="controls">
      <%= f.check_box :disable, :title=> t("client_management.disable") %>
    </div>
  </div>
  <div class="control-group">
    <% default_backup_time = f.object.fields["backup_time"].options[:default] %>
    <%= f.label :backup_time ,t("client_management.backup_time"), :class => "control-label muted" %>
    <div class="controls">
      <%= f.text_field :backup_time, :placeholder => default_backup_time, :class=>"backup_timers" %>
      <div class="hint">Eg: <%=default_backup_time%></div>
    </div>
  </div>
  <div class="control-group">
    <% default_path = f.object.fields["path"].options[:default] %>
    <%= f.label :path ,"Path", :class => "control-label muted" %>
    <div class="controls">
      <%= f.text_field :path, :placeholder => "Path(ex: #{default_path})" %>
      <div class="hint">Eg: <%=default_path%></div>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :period , t("client_management.period"), :class => "control-label muted" %>
    <div class="controls">
      <%= f.select :period, f.object.class::PeriodsTypes.map.with_index{|c, i| [t("client_management.period_type.#{c}"),i]} %>
    </div>
  </div>
  <div class="control-group">
    <% default_retain_count = f.object.fields["retain_count"].options[:default] %>
    <%= f.label :retain_count , t("client_management.retain_count"), :class => "control-label muted" %>
    <div class="controls">
      <%= f.number_field :retain_count, :placeholder => "ex: #{default_retain_count}" %>
      <div class="hint">Eg: <%=default_retain_count%></div>
    </div>
  </div>
  <% unless f.object.new_record? %>
    <%= f.hidden_field :id %>
    <%= f.hidden_field :_destroy, :value => nil, :class => 'should_destroy' %>
  <% end %>
</div>