Sha256: d77581345406cf882fbb3d0d0e5ce1174c64f4acfd1e9cd4864ea1b3537092ef
Contents?: true
Size: 1.35 KB
Versions: 7
Compression:
Stored size: 1.35 KB
Contents
<% @model = Character::PostCategory %> <div class='chr-form-large'> <%= simple_form_for :objects, url: @action_url, method: :post do |form| %> <%= hidden_field_tag :class_name, @model.to_s %> <div class='sortable'> <% @model.all.each do |category| %> <%= form.simple_fields_for "[]", category do |f| %> <div class='fields category'> <i class='action_sort fa fa-sort'></i> <a class='action_delete' data-item-class='fields' href='#'><i class='chr-icon icon-close-alt'></i></a> <%= f.input :title, label: false, placeholder: 'Category title', required: true %> <%= f.input :_destroy, as: :hidden, value: false %> <%= f.input :_position, as: :hidden %> </div> <% end %> <% end %> </div> <div id='template' class='fields category'> <i class='action_sort fa fa-sort' style='display: none;'></i> <i class='chr-icon icon-plus-alt'></i> <a class='action_delete' data-item-class='fields' href='#' style='display: none;'><i class='chr-icon icon-close-alt'></i></a> <%= form.simple_fields_for "[]", @model.new do |f| %> <%= f.input :title, label: false, placeholder: 'Add new category', required: true, input_html: { autocomplete: 'off' } %> <%= f.input :_position, as: :hidden %> <% end %> </div> <% end %> </div>
Version data entries
7 entries across 7 versions & 1 rubygems