Sha256: df563a7d2f13e12222a8ecce68ad6844aa9298cfe307b13c22394522c061a267
Contents?: true
Size: 719 Bytes
Versions: 10
Compression:
Stored size: 719 Bytes
Contents
<% if content_element.template? %> <h3><%= content_element.label %></h3> <% 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
10 entries across 10 versions & 1 rubygems