Sha256: 24a4cfe1ae92b800884e60948603834b02e64b620db4e4000f0d3f80c4eec03f

Contents?: true

Size: 725 Bytes

Versions: 1

Compression:

Stored size: 725 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 -%>
<% end -%>
<% end -%>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fae-rails-2.2.0 lib/generators/fae/templates/views/_form.html.slim