file-manager/app/views/admin/file_managers/_form_setting.html.erb

22 lines
995 B
Plaintext

<div class="path_setting_block">
<span class="remove_btn<%= '_old' unless form_setting.new_record?%>">X<%= f.hidden_field :_destroy, :class=>"should_destroy"%></span>
<h4>
<%= t('file_manager.setting', :num=> (form_setting.new_record? ? 'settings_count' : "#{i + 1}")) %>
</h4>
<div class="control-group">
<%= f.label :only_editable_for_uploader, t("file_manager.only_editable_for_uploader") , :class=>"control-label" %>
<div class="controls">
<%= f.check_box :only_editable_for_uploader %>
</div>
</div>
<div class="control-group">
<%= f.label :root_path, t("file_manager.root_path") , :class=>"control-label" %>
<div class="controls">
<%= f.text_field :root_path %>
<button class="browse_path btn btn-primary" type="button"><%=t("file_manager.browse")%></button>
</div>
</div>
<% unless form_setting.new_record? %>
<%= f.hidden_field :id %>
<% end %>
</div>