-
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.
adding templates for deletion of attachment and files, fixing wrong f…
…ilename being shown on download
- Loading branch information
Showing
10 changed files
with
92 additions
and
27 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
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,26 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block core %} | ||
<div id="main" class="main"> | ||
<div> | ||
<h1 class="header1 core_content">Delete Attachment {{ file['filename'] }}</h1> | ||
</div> | ||
<p class="core_content">Attachment {{ file['filename'] }}</p> | ||
<div class="core_content"> | ||
Are you sure you wanna delete Attachment {{ file['filename'] }}? | ||
</div> | ||
|
||
<form action="{{url_for('deleteAttachment', attachment_id_ = id)}}" method="POST" class="core_content"> | ||
<div id="control_buttons"> | ||
<button name="action_button" id="btn_submit" class="btn btn_submit" type="submit" | ||
value="Submit">Submit</button> | ||
<button name="action_button" id="btn_submit" class="btn btn_submit" type="submit" | ||
value="Cancel">Cancel</button> | ||
</div> | ||
</form> | ||
|
||
|
||
|
||
|
||
</div> | ||
{% endblock core %} |
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
26 changes: 26 additions & 0 deletions
26
codeGrader/frontend/admin/templates/deleteInstructions.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,26 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block core %} | ||
<div id="main" class="main"> | ||
<div> | ||
<h1 class="header1 core_content">Delete Instruction {{ file['filename'] }}</h1> | ||
</div> | ||
<p class="core_content">Instruction {{ file['filename'] }}</p> | ||
<div class="core_content"> | ||
Are you sure you wanna delete Instruction {{ file['filename'] }}? | ||
</div> | ||
|
||
<form action="{{url_for('deleteInstruction', instruction_id_ = id)}}" method="POST" class="core_content"> | ||
<div id="control_buttons"> | ||
<button name="action_button" id="btn_submit" class="btn btn_submit" type="submit" | ||
value="Submit">Submit</button> | ||
<button name="action_button" id="btn_submit" class="btn btn_submit" type="submit" | ||
value="Cancel">Cancel</button> | ||
</div> | ||
</form> | ||
|
||
|
||
|
||
|
||
</div> | ||
{% endblock core %} |
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