Sha256: 5eea7519114b1b396db293af1a872e51c481e57532aba3027be684cd45f4379b

Contents?: true

Size: 754 Bytes

Versions: 14

Compression:

Stored size: 754 Bytes

Contents

- unless @asset.trashed?
  %button.button.radius{ :'v-bind:class' => "{primary: !asset['new_record?'], success: asset['new_record?']}" }
    = ficon :check, '{{ saveButtonText }}'
  - unless @asset.new_record?
    .text-button.alert
      = link_to 'Delete media', push_type_admin.asset_path(@asset), method: 'delete', data: { confirm: { body: 'Deleted media will be moved to the trash. You can restore trashed media later.' } }

- else
  %button.button.radius.secondary= ficon :check, 'Save as trash'
  .text-button.success
    = link_to 'Restore media', push_type_admin.restore_asset_path(@asset), method: 'put'
  .text-button.alert
    = link_to 'Permanently delete media', push_type_admin.asset_path(@asset), method: 'delete', data: { confirm: true }

Version data entries

14 entries across 14 versions & 1 rubygems

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