From ef5c0de4f309923b844d9fe0dd9ac70b7347a49a Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 23 May 2020 08:42:00 -0500 Subject: Menu and forms --- bh20simplewebuploader/main.py | 8 ++-- bh20simplewebuploader/templates/about.html | 28 ++++++++++++ bh20simplewebuploader/templates/banner.html | 7 +++ bh20simplewebuploader/templates/blog.html | 28 ++++++++++++ bh20simplewebuploader/templates/demo-run.html | 17 ++++++++ bh20simplewebuploader/templates/demo.html | 28 ++++++++++++ bh20simplewebuploader/templates/form.html | 63 +++------------------------ bh20simplewebuploader/templates/header.html | 8 ++++ bh20simplewebuploader/templates/menu.html | 11 +++++ bh20simplewebuploader/templates/search.html | 9 ++++ 10 files changed, 145 insertions(+), 62 deletions(-) create mode 100644 bh20simplewebuploader/templates/about.html create mode 100644 bh20simplewebuploader/templates/banner.html create mode 100644 bh20simplewebuploader/templates/blog.html create mode 100644 bh20simplewebuploader/templates/demo-run.html create mode 100644 bh20simplewebuploader/templates/demo.html create mode 100644 bh20simplewebuploader/templates/header.html create mode 100644 bh20simplewebuploader/templates/menu.html create mode 100644 bh20simplewebuploader/templates/search.html diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py index c03cc81..a30d350 100644 --- a/bh20simplewebuploader/main.py +++ b/bh20simplewebuploader/main.py @@ -225,7 +225,7 @@ def send_form(): Send the file upload form/front page. """ - return render_template('form.html', fields=FORM_ITEMS) + return render_template('form.html', fields=FORM_ITEMS, menu='HOME') class FileTooBigError(RuntimeError): """ @@ -420,15 +420,15 @@ def receive_files(): @app.route('/demo') def demo_page(): - return render_template('demo.html') + return render_template('demo.html',menu='DEMO') @app.route('/blog') def blog_page(): - return render_template('blog.html') + return render_template('blog.html',menu='BLOG') @app.route('/about') def about_page(): - return render_template('about.html') + return render_template('about.html',menu='ABOUT') ## Dynamic API functions starting here ## This is quick and dirty for now, just to get something out and demonstrate the queries diff --git a/bh20simplewebuploader/templates/about.html b/bh20simplewebuploader/templates/about.html new file mode 100644 index 0000000..47b68fa --- /dev/null +++ b/bh20simplewebuploader/templates/about.html @@ -0,0 +1,28 @@ + + + {% include 'header.html' %} +
+ {% include 'banner.html' %} + {% include 'menu.html' %} + + WIP + + + + + diff --git a/bh20simplewebuploader/templates/banner.html b/bh20simplewebuploader/templates/banner.html new file mode 100644 index 0000000..3e2ee9d --- /dev/null +++ b/bh20simplewebuploader/templates/banner.html @@ -0,0 +1,7 @@ +Database contains public sequences!
+ +
+ Database contains public sequences!
- -
-