From cbe805902078195c374560c9000ac39b46975ed0 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 21 Mar 2018 12:49:50 -0700 Subject: webface templates --- webface/index.html | 262 --------------------------------------- webface/notes.txt | 8 -- webface/static/robots.txt | 1 + webface/templates/base.html | 70 +++++++++++ webface/templates/home.html | 32 +++++ webface/templates/work_add.html | 215 ++++++++++++++++++++++++++++++++ webface/templates/work_view.html | 37 ++++++ webface/webface.py | 87 +++++++++++++ 8 files changed, 442 insertions(+), 270 deletions(-) delete mode 100644 webface/index.html delete mode 100644 webface/notes.txt create mode 100644 webface/static/robots.txt create mode 100644 webface/templates/base.html create mode 100644 webface/templates/home.html create mode 100644 webface/templates/work_add.html create mode 100644 webface/templates/work_view.html create mode 100755 webface/webface.py (limited to 'webface') diff --git a/webface/index.html b/webface/index.html deleted file mode 100644 index 6e269e38..00000000 --- a/webface/index.html +++ /dev/null @@ -1,262 +0,0 @@ - - - - - - - - - - - - - - - - - -
- -
-

Adding a New Thing

- -
- -

The Basics

- -
- - -
- -
- - -
- - - - - -
- -
- - -
-
- - -
- - -
- - -
- - -
- - -

Primary Release / Edition

- - - - - - - - - - - - - -

Anything Else?

- - - - -
Create Work
-
- -
-
- - - - - - diff --git a/webface/notes.txt b/webface/notes.txt deleted file mode 100644 index 8ed47d0b..00000000 --- a/webface/notes.txt +++ /dev/null @@ -1,8 +0,0 @@ - -tachyons is nice for simple css-only stuff, but let's use "Semantic UI" because -it has a bunch of javascript form stuff. - - - - - diff --git a/webface/static/robots.txt b/webface/static/robots.txt new file mode 100644 index 00000000..a168f11b --- /dev/null +++ b/webface/static/robots.txt @@ -0,0 +1 @@ +# Hello friends! diff --git a/webface/templates/base.html b/webface/templates/base.html new file mode 100644 index 00000000..4e9dcd4b --- /dev/null +++ b/webface/templates/base.html @@ -0,0 +1,70 @@ + + + + + + + {% block title %}fatcat!{% endblock %} + + + + + + + + + + +
+{% block body %}Nothing to see here.{% endblock %} +
+ + + + +{% block postscript %}{% endblock %} + + + diff --git a/webface/templates/home.html b/webface/templates/home.html new file mode 100644 index 00000000..d9cc34a2 --- /dev/null +++ b/webface/templates/home.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} +{% block body %} + +

Salutations!

+ +Just mockups for now... + + + +{% endblock %} diff --git a/webface/templates/work_add.html b/webface/templates/work_add.html new file mode 100644 index 00000000..ac8a8169 --- /dev/null +++ b/webface/templates/work_add.html @@ -0,0 +1,215 @@ +{% extends "base.html" %} +{% block body %} +
+

Adding a New Thing

+ +
+ +

The Basics

+ +
+ + +
+ +
+ + +
+ + + + + +
+ +
+ + +
+
+ + +
+ + +
+ + +
+ + +
+ + +

Primary Release / Edition

+ + + + + + + + + + + + + +

Anything Else?

+ + + + +
Create Work
+
+ +
+{% endblock %} + +{% block postscript %} + +{% endblock %} diff --git a/webface/templates/work_view.html b/webface/templates/work_view.html new file mode 100644 index 00000000..8c5e955d --- /dev/null +++ b/webface/templates/work_view.html @@ -0,0 +1,37 @@ +{% extends "base.html" %} +{% block body %} + +

{{ work.title }}

+ +

Work type: {{ work.type }} +

History +

Contributors: +{% for c in work.contributors %} {{ c.name }}; {% endfor %} + +{% if primary %} +

Primary Release/Edition

+

Title: {{ primary.title }} +

Date: {{ primary.date }} + +{% if primary.container %} +

Container: {{ primary.container.title }} +{% endif %} + +{% if primary.doi %} +

DOI: {{ primary.doi }} +{% endif %} + +{% else %} +

No primary release +{% endif %} + +{% if releases %} +