From a0b95dc2dfb84c682bb8f677e5d471f84e5028fe Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 14 Nov 2018 13:17:42 -0600 Subject: wrote out basic notes skeleton --- design/templates/accounts/profile.html | 54 +++++++++++++++++++++ design/templates/base.html | 56 ++++++++++++++++++++++ .../django_registration/activation_complete.html | 8 ++++ .../django_registration/activation_email_body.txt | 5 ++ .../activation_email_subject.txt | 1 + .../django_registration/registration_complete.html | 7 +++ .../django_registration/registration_form.html | 17 +++++++ design/templates/notes/create.html | 18 +++++++ design/templates/notes/note_list.html | 9 ++++ design/templates/pages/page.html | 7 +++ design/templates/registration/login.html | 35 ++++++++++++++ 11 files changed, 217 insertions(+) create mode 100644 design/templates/accounts/profile.html create mode 100644 design/templates/base.html create mode 100644 design/templates/django_registration/activation_complete.html create mode 100644 design/templates/django_registration/activation_email_body.txt create mode 100644 design/templates/django_registration/activation_email_subject.txt create mode 100644 design/templates/django_registration/registration_complete.html create mode 100644 design/templates/django_registration/registration_form.html create mode 100644 design/templates/notes/create.html create mode 100644 design/templates/notes/note_list.html create mode 100644 design/templates/pages/page.html create mode 100644 design/templates/registration/login.html (limited to 'design/templates') diff --git a/design/templates/accounts/profile.html b/design/templates/accounts/profile.html new file mode 100644 index 0000000..c47e6c6 --- /dev/null +++ b/design/templates/accounts/profile.html @@ -0,0 +1,54 @@ +{% extends 'base.html' %} +{% block content %} +
+

Account Settings

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Username{{object.user.username}} +
Email{{object.user.email}} + Change
Fullname{{object.user.first_name}} {{object.user.last_name}} + Change
Plan{{object.plan}} + Change
Credit Card{{object.credit_card}} + Change
Bio{{object.bio}} + Change
Photo{{object.photo}} + Change
Website{{object.website}} + Change
Location{{object.location}} + Change
+
+{% endblock %} diff --git a/design/templates/base.html b/design/templates/base.html new file mode 100644 index 0000000..45291d0 --- /dev/null +++ b/design/templates/base.html @@ -0,0 +1,56 @@ + + + + + + +Note + + + + + + + + + + + +
+
+ + + +
+
+
+{% block content %} +{% endblock %} +
+ + diff --git a/design/templates/django_registration/activation_complete.html b/design/templates/django_registration/activation_complete.html new file mode 100644 index 0000000..914be51 --- /dev/null +++ b/design/templates/django_registration/activation_complete.html @@ -0,0 +1,8 @@ + +{% extends 'base.html' %} +{% block content %} +
+

Your account is now active.

+

Login and get started! +

+{% endblock %} diff --git a/design/templates/django_registration/activation_email_body.txt b/design/templates/django_registration/activation_email_body.txt new file mode 100644 index 0000000..8b1e134 --- /dev/null +++ b/design/templates/django_registration/activation_email_body.txt @@ -0,0 +1,5 @@ +Thanks for signing up with {{site}}, just one more thing to do, click this link to confirm your email: + +{{scheme}}://{{site}}/register/{{activation_key}} + + diff --git a/design/templates/django_registration/activation_email_subject.txt b/design/templates/django_registration/activation_email_subject.txt new file mode 100644 index 0000000..ea275d2 --- /dev/null +++ b/design/templates/django_registration/activation_email_subject.txt @@ -0,0 +1 @@ +Please Activate Your Account diff --git a/design/templates/django_registration/registration_complete.html b/design/templates/django_registration/registration_complete.html new file mode 100644 index 0000000..e9d0610 --- /dev/null +++ b/design/templates/django_registration/registration_complete.html @@ -0,0 +1,7 @@ +{% extends 'base.html' %} +{% block content %} +
+

Thanks for signing up.

+

Please check your email for a link to confirm you new account. +

+{% endblock %} diff --git a/design/templates/django_registration/registration_form.html b/design/templates/django_registration/registration_form.html new file mode 100644 index 0000000..54e01c5 --- /dev/null +++ b/design/templates/django_registration/registration_form.html @@ -0,0 +1,17 @@ +{% extends 'base.html' %} +{% block content %} +
+{% csrf_token %} +{{ form.non_field_errors }} +{% for field in form %} +
+{{field.label_tag}} +{{field}} +{% if field.label == "Password" %}Password should be 8 or more characters.{% endif %} +{% if field.errors %}{{field.errors}}{% endif %} +
+{% endfor %} +

+
+

Already have an account? Log in.

+{% endblock %} diff --git a/design/templates/notes/create.html b/design/templates/notes/create.html new file mode 100644 index 0000000..3bd765d --- /dev/null +++ b/design/templates/notes/create.html @@ -0,0 +1,18 @@ +{% extends 'base.html' %} +{% block content %} +
+

Create a new note

+
+{% csrf_token %} +{{ form.non_field_errors }} +{% for field in form %} +
+{{field.label_tag}} +{{field}} +{% if field.errors %}{{field.errors}}{% endif %} +
+{% endfor %} +

+
+
+{% endblock %} diff --git a/design/templates/notes/note_list.html b/design/templates/notes/note_list.html new file mode 100644 index 0000000..762d05a --- /dev/null +++ b/design/templates/notes/note_list.html @@ -0,0 +1,9 @@ +{% extends 'base.html' %} +{% block content %} +
+

Notes

+ +
+{% endblock %} diff --git a/design/templates/pages/page.html b/design/templates/pages/page.html new file mode 100644 index 0000000..3ac5795 --- /dev/null +++ b/design/templates/pages/page.html @@ -0,0 +1,7 @@ +{% extends 'base.html' %} +{% block content %} +
+

{{page.title}}

+ {{page.body_html|safe}} +
+{% endblock %} diff --git a/design/templates/registration/login.html b/design/templates/registration/login.html new file mode 100644 index 0000000..13b1c6c --- /dev/null +++ b/design/templates/registration/login.html @@ -0,0 +1,35 @@ +{% extends 'base.html' %} +{% block content %} +{% if form.errors %} +

Your username and password didn't match. Please try again.

+{% endif %} + +{% if next %} + {% if user.is_authenticated %} +

Your account doesn't have access to this page. To proceed, + please login with an account that has access.

+ {% else %} +

Please login to see this page.

+ {% endif %} +{% endif %} + +
+{% csrf_token %} + + + + + + + + + +
{{ form.username.label_tag }}{{ form.username }}
{{ form.password.label_tag }}{{ form.password }}
+ + + +
+ +{# Assumes you setup the password_reset view in your URLconf #} +

Lost password?

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