-
Notifications
You must be signed in to change notification settings - Fork 5
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 #157 from AberystwythSystemsBiology/feature/docume…
…nt-deletion Added ability to remove file.
- Loading branch information
Showing
6 changed files
with
147 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
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,32 @@ | ||
{% extends "template.html" %} | ||
|
||
{% block title %}Remove File from LIMBDOC-{{ document.id }}{% endblock %} | ||
|
||
{% block body %} | ||
<div class="jumbotron"> | ||
<div class="container"> | ||
<h1><span class="secondary-heading"> | ||
<a href="{{ url_for('document.view', id=document.id) }}"> | ||
<i class="fas fa-file"></i> LIMBDOC-{{ document.id }}</span> | ||
</a> | ||
Remove File: {{ file.name }} | ||
</h1> | ||
|
||
</div> | ||
</div> | ||
<div class="container"> | ||
|
||
<div class="alert alert-danger text-center"> | ||
<b>Danger:</b> This action cannot be undone. This will permanently delete {{ file.name }}, and remove all associations. | ||
</div> | ||
|
||
<form method="POST" action="{{ url_for('document.remove_file', id=document.id, file_id=file.id) }}"> | ||
{{ form.csrf_token }} | ||
{{ form_field(form.name) }} | ||
{{ form_field(form.submit) }} | ||
</form> | ||
|
||
|
||
|
||
</div> | ||
{% 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