Sha256: f2086f9f152be8a3e41e254a8e7b51a62b369365b096ae4fb4208c675da529c9

Contents?: true

Size: 736 Bytes

Versions: 14

Compression:

Stored size: 736 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.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.restore_asset_path(@asset), method: 'put'
  .text-button.alert
    = link_to 'Permanently delete media', push_type.asset_path(@asset), method: 'delete', data: { confirm: true }

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
push_type_admin-0.9.5 app/views/push_type/assets/_form_submit.html.haml
push_type_admin-0.9.3 app/views/push_type/assets/_form_submit.html.haml
push_type_admin-0.9.2 app/views/push_type/assets/_form_submit.html.haml
push_type_admin-0.9.1 app/views/push_type/assets/_form_submit.html.haml
push_type_admin-0.9.0 app/views/push_type/assets/_form_submit.html.haml
push_type_admin-0.9.0.beta.4 app/views/push_type/assets/_form_submit.html.haml
push_type_admin-0.9.0.beta.3 app/views/push_type/assets/_form_submit.html.haml
push_type_admin-0.9.0.beta.2 app/views/push_type/assets/_form_submit.html.haml
push_type_admin-0.8.2 app/views/push_type/assets/_form_submit.html.haml
push_type_admin-0.8.1 app/views/push_type/assets/_form_submit.html.haml
push_type_admin-0.8.0 app/views/push_type/assets/_form_submit.html.haml
push_type_admin-0.8.0.beta.3 app/views/push_type/assets/_form_submit.html.haml
push_type_admin-0.8.0.beta.2 app/views/push_type/assets/_form_submit.html.haml
push_type_admin-0.8.0.beta.1 app/views/push_type/assets/_form_submit.html.haml