Sha256: 1cb39b94848f63389aa9e6e31cdeec1ce18017188adb2ee14b93dfc8569f18e3
Contents?: true
Size: 1.44 KB
Versions: 1
Compression:
Stored size: 1.44 KB
Contents
- unless @node.trashed? = f.hidden_field :status, value: '{{ node.status }}' %a.button.radius.split{ :'v-bind:class' => '{primary: !isPublished, success: isPublished}', :'v-node-submit' => true } = ficon :check, "{{ saveButtonText }}" %span{ data: { dropdown: 'publish-toggle', options: 'align:bottom' } } %ul#publish-toggle.f-dropdown.tiny{ data: { dropdown: { content: true } } } %li %a{ href: '#', :'v-on:click.prevent' => 'node.status = "draft"' } Save as draft %li %a{ href: '#', :'v-on:click.prevent' => 'node.status = "published"' } Save and publish - unless @node.new_record? .text-button.alert = link_to "Delete #{@node.type.underscore.humanize.downcase}", push_type_admin.node_path(@node), method: 'delete', data: { confirm: { body: 'Deleted content, and all its child content, will be moved to the trash. You can restore trashed content later.' } } - else %button.button.radius.secondary= ficon :check, 'Save as trash' .text-button.success - if @node.orphan? %span Orphan. Cannot be restored. - else = link_to "Restore #{ @node.type.underscore.humanize.downcase }", push_type_admin.restore_node_path(@node), method: 'put' .text-button.alert = link_to "Permanently delete #{ @node.type.underscore.humanize.downcase }", push_type_admin.node_path(@node), method: 'delete', data: { confirm: { body: 'This action cannot be undone. All child content will also be permanently deleted.' } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
push_type_admin-0.10.0.beta.3 | app/views/push_type/admin/nodes/_form_submit.html.haml |