Sha256: e7cf4876559f9966d7c4424474f0aeb5d35056975ca69e435311ba4cde405dd8
Contents?: true
Size: 817 Bytes
Versions: 1
Compression:
Stored size: 817 Bytes
Contents
ruby: form_options = { html: { data: { form_manager_model: @item.fae_form_manager_model_name, form_manager_info: (@form_manager.present? ? @form_manager.to_json : nil) } } } = simple_form_for([:admin, @item], form_options) do |f| == render 'fae/shared/form_header', header: @klass_name 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 -%> <% elsif attachment.type == :seo_set -%> = fae_seo_set_form f, :<%= attachment.name -%> <% end -%> <% end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fae-rails-3.0.0 | lib/generators/fae/templates/views/_form.html.slim |