From ea7d74dd341da50c1956ce59d5c788525893b0bf Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 13 Oct 2025 14:03:45 -0500 Subject: Publications: Add missing templates. --- .../publications/delete-publication-success.html | 18 +++++ .../templates/publications/delete-publication.html | 88 ++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 uploader/templates/publications/delete-publication-success.html create mode 100644 uploader/templates/publications/delete-publication.html (limited to 'uploader/templates') diff --git a/uploader/templates/publications/delete-publication-success.html b/uploader/templates/publications/delete-publication-success.html new file mode 100644 index 0000000..53a44ec --- /dev/null +++ b/uploader/templates/publications/delete-publication-success.html @@ -0,0 +1,18 @@ +{%extends "publications/base.html"%} +{%from "flash_messages.html" import flash_all_messages%} + +{%block title%}View Publication{%endblock%} + +{%block pagetitle%}View Publication{%endblock%} + + +{%block contents%} +{{flash_all_messages()}} +{%endblock%} + + +{%block javascript%} + +{%endblock%} diff --git a/uploader/templates/publications/delete-publication.html b/uploader/templates/publications/delete-publication.html new file mode 100644 index 0000000..0ac93ec --- /dev/null +++ b/uploader/templates/publications/delete-publication.html @@ -0,0 +1,88 @@ +{%extends "publications/base.html"%} +{%from "flash_messages.html" import flash_all_messages%} + +{%block title%}View Publication{%endblock%} + +{%block pagetitle%}View Publication{%endblock%} + + +{%block contents%} +{{flash_all_messages()}} +
+

You are about to delete the publication with the following details:

+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Linked Phenotypes{{linked_phenotypes | count}}
PubMed + {%if publication.PubMed_ID%} + {{publication.PubMed_ID}} + {%else%} + — + {%endif%} +
Title{{publication.Title or "—"}}
Authors{{publication.Authors or "—"}}
Journal{{publication.Journal or "—"}}
Published{{publication.Month or ""}} {{publication.Year or "—"}}
Volume{{publication.Volume or "—"}}
Pages{{publication.Pages or "—"}}
Abstract + {%for line in (publication.Abstract or "—").replace("\r\n", "
").replace("\n", "
").split("
")%} +

{{line}}

+ {%endfor%} +
+
+ +
+

If you are sure that is what you want, click the button below to delete the + publication

+

+ You will not be able to recover the data if you click + delete below.

+ +
+
+ +
+
+
+{%endblock%} + + +{%block javascript%} + +{%endblock%} -- cgit 1.4.1