From 6256335ef802e2823ac0118c01c7fe31e38e7287 Mon Sep 17 00:00:00 2001 From: blendoit Date: Wed, 22 Jan 2020 18:17:38 -0800 Subject: Second commit. --- app/templates/base.html | 25 +++++++++++++++++++++++++ app/templates/home.html | 24 ++++++++++++++++++++++++ app/templates/login.html | 34 ++++++++++++++++++++++++++++++++++ app/templates/no.html | 23 +++++++++++++++++++++++ app/templates/register.html | 31 +++++++++++++++++++++++++++++++ app/templates/yes.html | 17 +++++++++++++++++ 6 files changed, 154 insertions(+) create mode 100644 app/templates/base.html create mode 100644 app/templates/home.html create mode 100644 app/templates/login.html create mode 100644 app/templates/no.html create mode 100644 app/templates/register.html create mode 100644 app/templates/yes.html (limited to 'app/templates') diff --git a/app/templates/base.html b/app/templates/base.html new file mode 100644 index 0000000..5520493 --- /dev/null +++ b/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/app/templates/home.html b/app/templates/home.html new file mode 100644 index 0000000..89984eb --- /dev/null +++ b/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/app/templates/login.html b/app/templates/login.html new file mode 100644 index 0000000..63217e1 --- /dev/null +++ b/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/app/templates/no.html b/app/templates/no.html new file mode 100644 index 0000000..e1b9238 --- /dev/null +++ b/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/app/templates/register.html b/app/templates/register.html new file mode 100644 index 0000000..456b8f7 --- /dev/null +++ b/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/app/templates/yes.html b/app/templates/yes.html new file mode 100644 index 0000000..b915221 --- /dev/null +++ b/app/templates/yes.html @@ -0,0 +1,17 @@ + + + +{% extends "base.html" %} +{% block content %} + +
+ + + +
+

yes, no?

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