From 2e12c23648be1b6827f1717ca143359d29043a39 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 6 Jul 2022 10:19:49 +0300 Subject: Implement UI for dataset selection As part of updating the database with the new data, there is a need to select the appropriate dataset that the data belongs to, and this commit provides the UI to assist the user do that. --- qc_app/templates/dbupdate_error.html | 12 ++++++ qc_app/templates/parse_results.html | 7 ++++ qc_app/templates/select_dataset.html | 75 ++++++++++++++++++++++++++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 qc_app/templates/dbupdate_error.html create mode 100644 qc_app/templates/select_dataset.html (limited to 'qc_app/templates') diff --git a/qc_app/templates/dbupdate_error.html b/qc_app/templates/dbupdate_error.html new file mode 100644 index 0000000..83e34fe --- /dev/null +++ b/qc_app/templates/dbupdate_error.html @@ -0,0 +1,12 @@ +{%extends "base.html"%} + +{%block title%}DB Update Error{%endblock%} + +{%block contents%} +
+ Database Update Error: {{error_message}} +
+ +{%endblock%} diff --git a/qc_app/templates/parse_results.html b/qc_app/templates/parse_results.html index 358c5e8..1a224e8 100644 --- a/qc_app/templates/parse_results.html +++ b/qc_app/templates/parse_results.html @@ -12,4 +12,11 @@ {{errors_display(errors, "No errors found in the file", "We found the following errors")}} +{%if errors | length == 0 %} + +{%endif%} + {%endblock%} diff --git a/qc_app/templates/select_dataset.html b/qc_app/templates/select_dataset.html new file mode 100644 index 0000000..5fefccc --- /dev/null +++ b/qc_app/templates/select_dataset.html @@ -0,0 +1,75 @@ +{%extends "base.html"%} + +{%block title%}Select Dataset{%endblock%} + +{%block contents%} +