Sha256: 2d04b9ee24fce0188a34c310ef95386167bab5cf8b4f2e3f5a1515bc90825cbb

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 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.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.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

2 entries across 2 versions & 1 rubygems

Version Path
pulitzer-0.4.1 app/views/pulitzer/partials/_new.html.erb
pulitzer-0.4.0 app/views/pulitzer/partials/_new.html.erb