Sha256: 1f754a7cf077b0d25f18c3776d3018d6603c4fc9885dd2f474862375285d655c

Contents?: true

Size: 1.59 KB

Versions: 9

Compression:

Stored size: 1.59 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.secondary
      = link_to "Preview #{@node.type.underscore.humanize.downcase}", main_app.preview_node_path(@node.base64_id), target: '_blank'
    .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

9 entries across 9 versions & 1 rubygems

Version Path
push_type_admin-0.11.1 app/views/push_type/admin/nodes/_form_submit.html.haml
push_type_admin-0.11.0.beta.2 app/views/push_type/admin/nodes/_form_submit.html.haml
push_type_admin-0.11.0.beta.1 app/views/push_type/admin/nodes/_form_submit.html.haml
push_type_admin-0.10.4 app/views/push_type/admin/nodes/_form_submit.html.haml
push_type_admin-0.10.3 app/views/push_type/admin/nodes/_form_submit.html.haml
push_type_admin-0.10.2 app/views/push_type/admin/nodes/_form_submit.html.haml
push_type_admin-0.10.1 app/views/push_type/admin/nodes/_form_submit.html.haml
push_type_admin-0.10.0 app/views/push_type/admin/nodes/_form_submit.html.haml
push_type_admin-0.10.0.beta.5 app/views/push_type/admin/nodes/_form_submit.html.haml