Sha256: e8b4f0695b6b4ab8f8bd9c5a9d54cba861f085c85338cb6b6cc25cff2d1446b3

Contents?: true

Size: 750 Bytes

Versions: 9

Compression:

Stored size: 750 Bytes

Contents

- if defined?(advanced) && advanced == true && @content_entry.persisted?
  = f.actions do
    .row
      .col-sm-6.text-left
        - if policy(@content_entry).destroy?
          = link_to t(:delete, scope: 'simple_form.buttons.locomotive.content_entry'), content_entry_path(current_site, @content_type.slug, @content_entry), 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: content_entries_path(current_site, @content_type.slug), use_stored_location: params[:_location].present?

- else
  = f.actions back_url: content_entries_path(current_site, @content_type.slug), use_stored_location: params[:_location].present?

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
locomotivecms-4.2.0.alpha2 app/views/locomotive/content_entries/form/_actions.html.slim
locomotivecms-4.2.0.alpha1 app/views/locomotive/content_entries/form/_actions.html.slim
locomotivecms-4.1.1 app/views/locomotive/content_entries/form/_actions.html.slim
locomotivecms-4.1.0 app/views/locomotive/content_entries/form/_actions.html.slim
locomotivecms-4.1.0.rc1 app/views/locomotive/content_entries/form/_actions.html.slim
locomotivecms-4.0.3 app/views/locomotive/content_entries/form/_actions.html.slim
locomotivecms-4.0.2 app/views/locomotive/content_entries/form/_actions.html.slim
locomotivecms-4.0.1 app/views/locomotive/content_entries/form/_actions.html.slim
locomotivecms-4.0.0 app/views/locomotive/content_entries/form/_actions.html.slim