Sha256: a6df70f770f869c009270a2242454ac72efaea3c88c8149acda6f484d4292fb0

Contents?: true

Size: 1.42 KB

Versions: 14

Compression:

Stored size: 1.42 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.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.restore_node_path(@node), method: 'put'
  .text-button.alert
    = link_to "Permanently delete #{ @node.type.underscore.humanize.downcase }", push_type.node_path(@node), method: 'delete', data: { confirm: { body: 'This action cannot be undone. All child content will also be permanently deleted.' } }

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
push_type_admin-0.9.5 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.9.3 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.9.2 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.9.1 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.9.0 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.9.0.beta.4 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.9.0.beta.3 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.9.0.beta.2 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.8.2 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.8.1 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.8.0 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.8.0.beta.3 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.8.0.beta.2 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.8.0.beta.1 app/views/push_type/nodes/_form_submit.html.haml