Sha256: 9a4e974b003a777c22058c2f956d09380f1b503e235f00cfaf20e391afd0b4de

Contents?: true

Size: 594 Bytes

Versions: 5

Compression:

Stored size: 594 Bytes

Contents

= simple_form_for(['admin', @item]) do |f|
  header.content-header.js-content-header
    == render 'fae/shared/form_header', header: @klass_name
  == render 'fae/shared/errors'

  main.content
<% @form_attrs.each do |attr| -%>
    = fae_input f, :<%= attr %>
<% end -%>

<% @association_names.each do |attr| -%>
    = fae_association f, :<%= attr %>
<% end -%>
<% @attachments.each do |attachment| %>
<% if attachment.type == :image -%>
    = fae_image_form f, :<%= attachment.name -%>
<% elsif attachment.type == :file -%>
    = fae_file_form f, :<%= attachment.name -%>
<% end -%>
<% end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fae-rails-1.7.1 lib/generators/fae/templates/views/_form.html.slim
fae-rails-1.7.0 lib/generators/fae/templates/views/_form.html.slim
fae-rails-1.6.0 lib/generators/fae/templates/views/_form.html.slim
fae-rails-1.5.1 lib/generators/fae/templates/views/_form.html.slim
fae-rails-1.5.0 lib/generators/fae/templates/views/_form.html.slim