Sha256: 13da06ee4d25c3d82799331bbbac8d0f63f98475edabd98ddaac30a5a4f40e7b

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 Bytes

Contents

= f.actions do
  .row
    .col-sm-6.text-left
      - if policy(@page).destroy?
        = link_to t(:delete, scope: 'simple_form.buttons.locomotive.site'), page_path(current_site, @page), data: { confirm:  I18n.t('locomotive.messages.confirm') }, class:'btn btn-sm btn-danger', method: :delete

    .col-sm-6.text-right
      = f.actions_with_back_button back_url: @page.default_response_type? ? editable_elements_path(current_site, @page) : nil, use_stored_location: @page.templatized?

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
locomotivecms-3.0.0.rc5 app/views/locomotive/pages/form/_actions.html.slim
locomotivecms-3.0.0.rc4 app/views/locomotive/pages/form/_actions.html.slim
locomotivecms-3.0.0.rc3 app/views/locomotive/pages/form/_actions.html.slim
locomotivecms-3.0.0.rc2 app/views/locomotive/pages/form/_actions.html.slim