Sha256: 86f2cb1ffce66ee9f04da11dd88d14792e85989bd67e064eb6cee58249b3100c
Contents?: true
Size: 1.17 KB
Versions: 43
Compression:
Stored size: 1.17 KB
Contents
<%= render 'pulitzer/shared/error_messages', object: partial %> <%= form_for partial, html: ajax_form_hash(dom_target(partial.free_form_section, :partial_container), insert_method: 'append', empty_on_success: dom_target(partial.free_form_section, :new_partial)) do |f| %> <%= f.hidden_field :free_form_section_id %> <%= f.label :label %> <%= f.text_field :label %> <%= f.label :post_type_id, 'Partial Type' %> <%= f.collection_select :post_type_id, Pulitzer::PostType.partials, :id, :name, {}, revealer(dom_id(partial.free_form_section, :new_partial_type), highlander: true) %> <div <%= revealer_target_attrs(dom_id(partial.free_form_section, :new_partial_type)) %>> <% Pulitzer::PostType.partials.each do |post_type| %> <div <%= revealer_option_attrs(dom_id(partial.free_form_section, :new_partial_type), trigger: post_type.id) %>> <%= f.label :layout_id, 'Layout' %> <%= f.collection_select :layout_id, post_type.layouts, :id, :name, {}, {} %> </div> <% end %> </div> <%= submit_tag "Create" %> <%= link_to('Cancel', '#', :class => 'button', data: { emptier: true, target: dom_target(partial.free_form_section, :new_partial) } ) %> <% end %>
Version data entries
43 entries across 43 versions & 1 rubygems