forked from conwetlab/ckanext-datarequests
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from qld-gov-au/develop
Develop to master - handle 'delete all' without JavaScript
- Loading branch information
Showing
14 changed files
with
332 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
ckanext/datarequests/templates/datarequests/confirm_delete_all.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% extends "page.html" %} | ||
|
||
{% block subtitle %}{{ _("Confirm Delete") }}{% endblock %} | ||
|
||
{% block maintag %}<div class="row" role="main">{% endblock %} | ||
|
||
{% block main_content %} | ||
<section class="module col-md-6 col-md-offset-3"> | ||
<div class="module-content"> | ||
{% block form %} | ||
<p>{{ _('Are you sure you want to delete ALL data requests for user {user_id}?').format(user_id=user_id) }}</p> | ||
<p class="form-actions"> | ||
<form id="confirm-datarequest-delete-all-form" action="{% url_for 'datarequest.purge', user_id=user_id %}" method="POST"> | ||
{% if 'csrf_input' in h %} | ||
{{ h.csrf_input() }} | ||
{% endif %} | ||
<button class="btn btn-danger" type="submit" name="cancel" >{{ _('Cancel') }}</button> | ||
<button class="btn btn-primary" type="submit" name="delete" >{{ _('Confirm Delete') }}</button> | ||
</form> | ||
</p> | ||
{% endblock %} | ||
</div> | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.