Sha256: 39b62453640ac7cc1ae1ce55e91e0dc129a50740acd4b3dfec742c438ba0a20b

Contents?: true

Size: 652 Bytes

Versions: 1

Compression:

Stored size: 652 Bytes

Contents

<%= simple_form_for([:backend, collection], html: { autocomplete: "false" }) do |f| %>
  <%= f.error_notification %>

  <div class="form-inputs">
    <%= f.input :name %>
    <%= f.input :slug %>

    <div class="form-group collection_fields">
      <h3><%= Archangel.t(:fields) %></h3>

      <%= f.simple_fields_for :fields do |field| %>
        <%= render "field_fields", f: field %>
      <% end %>

      <div class="links">
        <%= link_to_add_association Archangel.t(:add_field), f, :fields %>
      </div>
    </div>
  </div>

  <div class="form-actions text-right">
    <%= f.button :submit, class: "btn btn-primary" %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.4.0 app/views/archangel/backend/collections/_form.html.erb