ask/app/views/admin/asks/list_table_setting.html.erb

16 lines
545 B
Plaintext
Raw Normal View History

<%= form_for @ask_list_setting,method: 'post',url: @url,html: { class: 'form-horizontal main-forms previewable' } do |f| %>
<fieldset>
<% tmp = f.object.default_fields %>
<% tmp.each do |k| %>
<% f.fields_for :default_fields, tmp do |f| %>
<% f.fields_for k, tmp[k] do |f| %>
<%= f.label :key %>
<%= f.check_box :is_enabled %>
<% end %>
<% end %>
<% end %>
<div class="control-group">
<%= f.submit t(:submit), class: 'btn btn-primary' %>
</div>
</fieldset>
<% end %>