Sha256: 1aedc7437b270953c50bd1c509105edc9d1598da2b79c08d9cd6cf9e58f88640
Contents?: true
Size: 1.18 KB
Versions: 7
Compression:
Stored size: 1.18 KB
Contents
<% @model = Character::PostAuthor %> <div class='chr-form-large'> <%= simple_form_for :objects, url: @action_url, method: :post do |form| %> <%= hidden_field_tag :class_name, @model.to_s %> <% @model.all.each do |author| %> <%= form.simple_fields_for "[]", author do |f| %> <div class='fields'> <a class='action_delete' data-item-class='fields' href='#'><i class='chr-icon icon-close-alt'></i></a> <%= f.input :name, label: false, placeholder: 'Name', required: true %> <%= f.input :email, label: false, placeholder: 'Email', required: true %> <%= f.input :_destroy, as: :hidden, value: false %> </div> <% end %> <% end %> <div id='template' class='fields'> <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 :name, label: false, placeholder: 'Name', required: true %> <%= f.input :email, label: false, placeholder: 'Email', required: true %> <% end %> </div> <a href='#' class='action_add'>Add an author</a> <% end %> </div>
Version data entries
7 entries across 7 versions & 1 rubygems