<%= render partial: '/pulitzer/shared/drag_handle' %>
<%= render 'pulitzer/shared/error_messages', object: partial %>
<%= form_for partial, html: ajax_form_hash(dom_target(partial)), multipart: true, data: { server_endpoint: partial_path(partial) } do |f| %>
<%= f.text_field :label %>
<%= partial.folder_path %>/<%= partial.available_arrangements.empty? ? partial.template_path : '' %>
<% if partial.available_arrangements.any? %>
<%= f.collection_select :arrangement_style_id, partial.available_arrangements, :id, :display_name, {}, {} %>
<% end %>
<%= f.collection_select :background_style_id, partial.available_backgrounds, :id, :display_name, {}, {} %>
<%= f.collection_select :justification_style_id, partial.available_justifications, :id, :display_name, {}, {} %>
<%= f.collection_select :sequence_flow_style_id, partial.available_sequence_flows, :id, :display_name, {}, {} %>
<%= submit_tag "Update" %>
<%= link_to('Cancel', partial_path(partial), :class => 'button', data: { ajax_link: true, ajax_target: dom_target(partial) } ) %> <%= ajax_delete 'delete', partial_path(partial), {class: 'button'}, dom_target(partial) %>
<% end %>