Sha256: c123845c546b3c716491fb6080687b3a1dd57ae411d7371b9cbc1f2df94886bb
Contents?: true
Size: 916 Bytes
Versions: 2
Compression:
Stored size: 916 Bytes
Contents
<div class="pulitzer-row"> <%= form_for version, html: ajax_form_hash(dom_target(version.post, :preview_version)).merge( class: 'pulitzer-form-left' ) do |f| %> <%= f.submit "Activate", data: {prevent_double_click: true} %> <%= hidden_field_tag :status, :active %> <% end %> <%= form_for version, html: ajax_form_hash(dom_target(version.post, :preview_version)).merge( class: 'pulitzer-form-left' ) do |f| %> <%= f.submit "Abandon Changes", data: {prevent_double_click: true} %> <%= hidden_field_tag :status, :abandoned %> <% end %> <% if version.post.active_version %> <%= form_for version.post.active_version, html: ajax_form_hash(dom_target(version.post, :preview_version)).merge( class: 'pulitzer-form-left' ) do |f| %> <%= f.submit "Unpublish Post", data: {prevent_double_click: true} %> <%= hidden_field_tag :status, :abandoned %> <% end %> <% end %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pulitzer-0.5.7 | app/views/pulitzer/versions/_form.html.erb |
pulitzer-0.5.6 | app/views/pulitzer/versions/_form.html.erb |