fix: deletes media file when download deleted
This commit is contained in:
@@ -44,7 +44,12 @@
|
||||
|
||||
{% set delete_button = component('ux:icon', {name: 'ic:twotone-cancel', height: '17.75px', width: '17.75px', class: 'rounded-full align-middle text-red-600 hover:text-red-700' }) %}
|
||||
<twig:Modal heading="But wait!" button_text="{{ delete_button }}" submit_action="{{ stimulus_action('download_list', 'deleteDownload', 'click', {id: download.id}) }}" show_cancel show_submit>
|
||||
Are you sure you want to delete <span class="font-bold">{{ download.filename }}</span>?
|
||||
<p class="mb-1">Are you sure you want to delete the following record?</p>
|
||||
<p class="mb-1 ml-4 italic">{{ download.filename }}</p>
|
||||
<div class="">
|
||||
<input id="delete_file_{{ download.id }}" class="accent-orange-500" type="checkbox" value="false" name="delete_file" />
|
||||
<label for="delete_file_{{ download.id }}">Delete the file as well?</label>
|
||||
</div>
|
||||
</twig:Modal>
|
||||
</td>
|
||||
</tr>
|
||||
Reference in New Issue
Block a user