From 2f1d0719faa0d955a82e87c0ea022f458e1c699f Mon Sep 17 00:00:00 2001 From: blendoit Date: Wed, 22 Jan 2020 18:15:52 -0800 Subject: First commit. --- website/app/templates/base.html | 25 +++++++++++++++++++++++++ website/app/templates/home.html | 24 ++++++++++++++++++++++++ website/app/templates/login.html | 34 ++++++++++++++++++++++++++++++++++ website/app/templates/no.html | 23 +++++++++++++++++++++++ website/app/templates/register.html | 31 +++++++++++++++++++++++++++++++ website/app/templates/yes.html | 17 +++++++++++++++++ 6 files changed, 154 insertions(+) create mode 100644 website/app/templates/base.html create mode 100644 website/app/templates/home.html create mode 100644 website/app/templates/login.html create mode 100644 website/app/templates/no.html create mode 100644 website/app/templates/register.html create mode 100644 website/app/templates/yes.html (limited to 'website/app/templates') diff --git a/website/app/templates/base.html b/website/app/templates/base.html new file mode 100644 index 0000000..5520493 --- /dev/null +++ b/website/app/templates/base.html @@ -0,0 +1,25 @@ + + + + + + {% if title %} + {{ title }} + {% else %} + Blendoit + {% endif %} + + + {% with messages = get_flashed_messages(with_categories=true) %} + {% if messages %} + {% for message in messages %} +
+ {{ message }} +
+ {% endfor %} + {% endif %} + {% endwith %} + + {% block content %}{% endblock %} + + diff --git a/website/app/templates/home.html b/website/app/templates/home.html new file mode 100644 index 0000000..89984eb --- /dev/null +++ b/website/app/templates/home.html @@ -0,0 +1,24 @@ + + + +{% extends "base.html" %} + +{% block content %} + +
+ + + +
+ {% for post in posts %} +
+

{{post.author}}

+

{{post.date}}

+

{{post.content}}

+
+ {% endfor %} +
+
+ + +{% endblock content %} diff --git a/website/app/templates/login.html b/website/app/templates/login.html new file mode 100644 index 0000000..63217e1 --- /dev/null +++ b/website/app/templates/login.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} +{% block content %} + +
+
+ {{ form.hidden_tag() }} +
+ Join Today +
+ {{ form.alias.label }} + {{ form.alias }} +
+
+ {{ form.password.label }} + {{ form.password }} +
+
+ {{ form.password_confirm.label }} + {{ form.password_confirm }} +
+
+
+ {{ form.submit(class="btn") }} +
+
+
+ +
+ + Already have an account? Sign In + +
+ +{% endblock content %} diff --git a/website/app/templates/no.html b/website/app/templates/no.html new file mode 100644 index 0000000..e1b9238 --- /dev/null +++ b/website/app/templates/no.html @@ -0,0 +1,23 @@ + + + +{% extends "base.html" %} +{% block content %} + +
+ + + +
+ {% for post in posts %} +
+

{{post.author}}

+

{{post.date}}

+

{{post.content}}

+
+ {% endfor %} +
+
+ + +{% endblock content %} diff --git a/website/app/templates/register.html b/website/app/templates/register.html new file mode 100644 index 0000000..456b8f7 --- /dev/null +++ b/website/app/templates/register.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} +{% block content %} + +
+
+ {{ form.hidden_tag() }} +
+ Create a new alias +
+ {{ form.alias.label(class="form-control-label") }} + {{ form.alias(class="form-control") }} +
+
+ {{ form.password.label(class="form-control-label") }} + {{ form.password(class="form-control") }} +
+
+ {{ form.password_confirm.label(class="form-control-label") }} + {{ form.password_confirm(class="form-control") }} +
+
+
+ {{ form.submit(class="btn") }} +
+
+
+
+ Sign in with existing alias? Sign In +
+ +{% endblock content %} diff --git a/website/app/templates/yes.html b/website/app/templates/yes.html new file mode 100644 index 0000000..b915221 --- /dev/null +++ b/website/app/templates/yes.html @@ -0,0 +1,17 @@ + + + +{% extends "base.html" %} +{% block content %} + +
+ + + +
+

yes, no?

+
+
+ + +{% endblock content %} -- cgit v1.2.3