-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Candidate code for deletion confirmation
- Loading branch information
1 parent
8c81473
commit 201a0ce
Showing
3 changed files
with
28 additions
and
3 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
16 changes: 16 additions & 0 deletions
16
loads/templates/loads/modules/delete_assessment_resource.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,16 @@ | ||
{% extends "loads/base_automatic.html" %} | ||
|
||
{% block content %} | ||
|
||
{% if resource.module.package.in_the_past %} | ||
<h1><span style="color:red">Warning: The Work Package for this item is in the Past.</span></h1> | ||
<p><span style="color:red">You should not be deleting resources unless they are a correction.</span></p> | ||
{% endif %} | ||
|
||
<h2>Delete Assessment Resource for {{ resource.module }}</h2> | ||
|
||
<p>You are deleting {{ resource }}, this cannot be undone. Are you sure?</p> | ||
|
||
<p><a href="{% url 'delete_assessment_resource' resource.id confirm=True %}">Confirm</a> | <a href="{% url 'modules_details' resource.module.id %}">Cancel</a></p> | ||
|
||
{% endblock content %} |
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