-
Notifications
You must be signed in to change notification settings - Fork 55
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 #197 from JVickery-TBS/feature/delete-datastore-table
Delete Datastore Table Button
- Loading branch information
Showing
3 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
ckanext/xloader/templates/xloader/confirm_datastore_delete.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,22 @@ | ||
{% 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 the DataStore and Data Dictionary?') }}</p> | ||
<p class="form-actions"> | ||
<form action="{{ h.url_for('xloader.delete_datastore_table', id=package_id, resource_id=resource_id) }}" method="post"> | ||
{{ h.csrf_input() if 'csrf_input' in h }} | ||
<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
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