Sha256: 20f654fc5534ffd6e09c21737f85849ba3886178665035fc18889597ae02187d

Contents?: true

Size: 646 Bytes

Versions: 4

Compression:

Stored size: 646 Bytes

Contents

<%= 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.label content_element.label %>
  <%= f.text_field :title, placeholder: 'Title' %>
  <%= render partial: "#{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

4 entries across 4 versions & 1 rubygems

Version Path
pulitzer-0.1.2 app/views/pulitzer/content_elements/_form.html.erb
pulitzer-0.1.1 app/views/pulitzer/content_elements/_form.html.erb
pulitzer-0.1.0 app/views/pulitzer/content_elements/_form.html.erb
pulitzer-0.0.5 app/views/pulitzer/content_elements/_form.html.erb