Sha256: d1c239ad079a8521732e0335a592f882a6fa566fbb56caa02839562f2172a2b3

Contents?: true

Size: 1.01 KB

Versions: 10

Compression:

Stored size: 1.01 KB

Contents

- content_for :back_button do
  = link_to back_to_index_path(obj), class: 'back-button' do
    %i.material-icon arrow_back

.toolbar
  .hide-on-min= render 'tenon/shared/breadcrumbs'
  .toolbar__content
    .toolbar__actions.toolbar__actions--right
      - if policy(obj).publish?
        .toolbar__action
          %button.btn.btn--toolbar.submit{ data: { disable_with: "Please wait..." } } Save

      .toolbar__action
        %a.toolbar__action-icon.dropdown-button{ href: '#!', data: { dropdown_activate: true } }
          = i('more_vert')

        %ul.dropdown#form-dropdown
          - if policy(Tenon::ItemVersion).create?
            = render 'tenon/shared/draft_controls', obj: obj

          - if obj.persisted? && policy(obj).destroy?
            %li.dropdown__divider
            %li.dropdown__item
              = link_to obj, data: { method: :delete, confirm: 'Are you sure you want to delete this?' }, class: 'dropdown__action action-icon delete-link' do
                = i('delete')
                %span Delete

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tenon-2.1.0 app/views/tenon/shared/_default_form_toolbar.html.haml
tenon-2.0.8 app/views/tenon/shared/_default_form_toolbar.html.haml
tenon-2.0.7 app/views/tenon/shared/_default_form_toolbar.html.haml
tenon-2.0.6 app/views/tenon/shared/_default_form_toolbar.html.haml
tenon-2.0.5 app/views/tenon/shared/_default_form_toolbar.html.haml
tenon-2.0.4 app/views/tenon/shared/_default_form_toolbar.html.haml
tenon-2.0.3 app/views/tenon/shared/_default_form_toolbar.html.haml
tenon-2.0.2 app/views/tenon/shared/_default_form_toolbar.html.haml
tenon-2.0.1 app/views/tenon/shared/_default_form_toolbar.html.haml
tenon-2.0.0 app/views/tenon/shared/_default_form_toolbar.html.haml