Sha256: 4e4536acd497fd1f4b44cd81ff58879dad6eca47ba623c767b46647122301ae4

Contents?: true

Size: 719 Bytes

Versions: 9

Compression:

Stored size: 719 Bytes

Contents

<% if content_element.template? %>
  <h5><%= content_element.label %></h5>
<% end %>
<%= form_for content_element, html: ajax_form_hash(dom_target(content_element)), multipart: true,
  data: { server_endpoint: content_element_path(content_element) } do |f| %>
  <%= f.text_field :title, placeholder: 'Title' %>
  <%= render partial: "/pulitzer/content_elements/#{content_element.type}_fields", locals: { f: f, content_element: content_element } %>
  <%= submit_tag "Update" %>
  <%= link_to('Cancel', content_element_path(content_element), :class => 'button',
    data: { ajax_link: true, ajax_target: dom_target(content_element) } ) %>
<% end %>
<%= render 'pulitzer/shared/error_messages', object: content_element %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pulitzer-0.4.8 app/views/pulitzer/content_elements/_form.html.erb
pulitzer-0.4.7 app/views/pulitzer/content_elements/_form.html.erb
pulitzer-0.4.6 app/views/pulitzer/content_elements/_form.html.erb
pulitzer-0.4.5 app/views/pulitzer/content_elements/_form.html.erb
pulitzer-0.4.4 app/views/pulitzer/content_elements/_form.html.erb
pulitzer-0.4.3 app/views/pulitzer/content_elements/_form.html.erb
pulitzer-0.4.2 app/views/pulitzer/content_elements/_form.html.erb
pulitzer-0.4.1 app/views/pulitzer/content_elements/_form.html.erb
pulitzer-0.4.0 app/views/pulitzer/content_elements/_form.html.erb