Skip to content

Commit

Permalink
Merge pull request #110 from mjanez/develop
Browse files Browse the repository at this point in the history
Fix data attributes for purge action (admin/trash.html)
  • Loading branch information
mjanez authored Nov 4, 2024
2 parents 8025dd9 + ec43391 commit 21550f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckanext/schemingdcat/templates/admin/trash.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

{% block primary_content_inner %}
<form method="POST" action="{{ h.url_for('admin.trash') }}" id="form-purge-all">
{{ h.csrf_input() if 'csrf_input' in h }}
{{ h.csrf_input() }}
<div class="form-actions">
<input type="hidden" name="action" value="all">
<a class="btn btn-danger purge-all"
type="submit"
href="{{ h.url_for('admin.trash', name='all') }}"
data-bs-module="confirm-action"
data-bs-module-with-data=true
data-bs-module-content="{{ _('Are you sure you want to purge everything?') }}">
data-module="confirm-action"
data-module-with-data=true
data-module-content="{{ _('Are you sure you want to purge everything?') }}">
{{ _('Purge all') }}
</a>
</div>
Expand Down

0 comments on commit 21550f1

Please sign in to comment.