Sha256: fa204ef344f4ce3f748026d792e162071acfb7610cac43a48edaa45d8db33675

Contents?: true

Size: 1.07 KB

Versions: 4

Compression:

Stored size: 1.07 KB

Contents

<div class="pulitzer-row">
  <div class="pulitzer-span margin"><h5><%= partial_type.label %></h5></div>
  <div class="pulitzer-span match-h5"><%= partial_type.folder_path %>/</div>
  <div class="pulitzer-span margin match-h5"><%= partial_type.template_path %></div>
  <div class="pulitzer-span right">
    <%= render partial: '/pulitzer/shared/drag_handle' %>
  </div>
</div>
<%= render 'pulitzer/shared/error_messages', object: partial_type %>
<%= form_for partial_type, html: ajax_form_hash(dom_target(partial_type)), multipart: true,
  data: { server_endpoint: partial_type_path(partial_type) } do |f| %>
  <%= f.label :label %>
  <%= f.text_field :label %>
  <%= f.label :layout_id, 'Layout' %>
  <%= f.collection_select :layout_id, partial_type.available_layouts, :id, :name, {}, {} %>
  <%= submit_tag "Update" %>
  <%= link_to('Cancel', partial_type_path(partial_type), :class => 'button',
    data: { ajax_link: true, ajax_target: dom_target(partial_type) } ) %>
    or
  <%= ajax_delete 'delete', partial_type_path(partial_type), {class: 'button'}, dom_target(partial_type) %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pulitzer-0.13.1 app/views/pulitzer/partial_types/_form.html.erb
pulitzer-0.12.5 app/views/pulitzer/partial_types/_form.html.erb
pulitzer-0.13.0 app/views/pulitzer/partial_types/_form.html.erb
pulitzer-0.12.4 app/views/pulitzer/partial_types/_form.html.erb