From 3fb8a4de897eabd3e85520358619af7abcbd7664 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 23 Dec 2022 08:47:44 +0300 Subject: Help: Provide some help content for end user --- qc_app/entry.py | 5 +++ qc_app/static/css/styles.css | 29 ++++++++++++++- qc_app/templates/data_review.html | 77 +++++++++++++++++++++++++++++++++++++++ qc_app/templates/index.html | 20 ++++++++++ 4 files changed, 129 insertions(+), 2 deletions(-) create mode 100644 qc_app/templates/data_review.html diff --git a/qc_app/entry.py b/qc_app/entry.py index 2c4600d..abea5ed 100644 --- a/qc_app/entry.py +++ b/qc_app/entry.py @@ -101,3 +101,8 @@ def upload_file(): return redirect(url_for( "parse.parse", filename=filename, filetype=request.form["filetype"])) + +@entrybp.route("/data-review", methods=["GET"]) +def data_review(): + """Provide some help on data expectations to the user.""" + return render_template("data_review.html") diff --git a/qc_app/static/css/styles.css b/qc_app/static/css/styles.css index d2071e6..c9f6737 100644 --- a/qc_app/static/css/styles.css +++ b/qc_app/static/css/styles.css @@ -10,12 +10,20 @@ label, legend { text-transform: capitalize; } +#explainer { + font-family: Georgia, Garamond, serif; + font-style: normal; + font-size: 1.275em; +} + .heading { color: #FEFEFE; background-color: #336699; text-transform: capitalize; - border-radius: 5px; + border-radius: 5px 5px 0 0; padding-left: 0.5em; + font-weight: bold; + line-height: 1.5em; } fieldset { @@ -108,6 +116,23 @@ table th,td { border-radius: 1em; } +form { + border-radius: 5px; + border-width: 1px; + border-style: solid; + border-color: #336699; +} + +@media(min-width: 1250px) { + form { + width: 40%; + } + + #explainer { + width: 65ch; + } +} + fieldset { border-style: none; display: grid; @@ -132,7 +157,7 @@ input[disabled="true"],input[disabled="disabled"] { background-color: #F8D7DA; } -form legend { +form fieldset legend { padding-left: 3em; text-transform: capitalize; font-weight: bolder; diff --git a/qc_app/templates/data_review.html b/qc_app/templates/data_review.html new file mode 100644 index 0000000..7ac01ba --- /dev/null +++ b/qc_app/templates/data_review.html @@ -0,0 +1,77 @@ +{%extends "base.html"%} + +{%block title%}Data Review{%endblock%} + +{%block contents%} +
The following are some of the requirements that the data in your file + MUST fulfil before it is considered valid for this system: +
+ +This application assumes that you are familiar with the basics of data + verification formats and uploading procedures. If you haven't done so please + go to this page to learn the requirements for file formats and helpful + suggestions to enter your data in a fast and easy way.
+ + +