Sha256: 23d25f2f8e46e4cd38c441be17c350ab792253c0f021081d6b8e7aef0080dc73

Contents?: true

Size: 1.34 KB

Versions: 18

Compression:

Stored size: 1.34 KB

Contents

- unless @node.trashed?
  = f.hidden_field :status, value: '{{ node.status }}'
  %a.button.radius.split{ ng: { class: 'saveButtonClass()' }, 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: '#', node: { status: 'draft' } } Save as draft
    %li
      %a{ href: '#', 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

18 entries across 18 versions & 1 rubygems

Version Path
push_type_admin-0.7.0 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.7.0.beta.1 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.6.0 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.6.0.beta.4 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.6.0.beta.3 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.6.0.beta.2 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.6.0.beta.1 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.5.3 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.5.2 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.5.1 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.5.0 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.5.0.alpha.5 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.5.0.alpha.4 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.5.0.alpha.3 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.5.0.alpha.2 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.5.0.alpha.1 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.4.0 app/views/push_type/nodes/_form_submit.html.haml
push_type_admin-0.4.0.beta.3 app/views/push_type/nodes/_form_submit.html.haml