diff options
Diffstat (limited to 'design/templates')
-rw-r--r-- | design/templates/accounts/profile.html | 54 | ||||
-rw-r--r-- | design/templates/base.html | 56 | ||||
-rw-r--r-- | design/templates/django_registration/activation_complete.html | 8 | ||||
-rw-r--r-- | design/templates/django_registration/activation_email_body.txt | 5 | ||||
-rw-r--r-- | design/templates/django_registration/activation_email_subject.txt | 1 | ||||
-rw-r--r-- | design/templates/django_registration/registration_complete.html | 7 | ||||
-rw-r--r-- | design/templates/django_registration/registration_form.html | 17 | ||||
-rw-r--r-- | design/templates/notes/create.html | 18 | ||||
-rw-r--r-- | design/templates/notes/note_list.html | 9 | ||||
-rw-r--r-- | design/templates/pages/page.html | 7 | ||||
-rw-r--r-- | design/templates/registration/login.html | 35 |
11 files changed, 217 insertions, 0 deletions
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 %} +<main> +<h1>Account Settings</h1> +<table> + <tbody> + <tr> + <th scope="row">Username</th> + <td colspan="2">{{object.user.username}}<td> + </tr> + <tr> + <th scope="row">Email</th> + <td colspan="2">{{object.user.email}}<td> + <td class="text-right"><a href="/settings/change-email/"class="btn">Change</a></td> + </tr> + <tr> + <th scope="row">Fullname</th> + <td colspan="2">{{object.user.first_name}} {{object.user.last_name}}<td> + <td class="text-right"><a href="/settings/change-profile/#display_name"class="btn">Change</a></td> + </tr> + <tr> + <th scope="row">Plan</th> + <td colspan="2">{{object.plan}}<td> + <td class="text-right"><a href="/settings/change-plan/" class="btn">Change</a></td> + </tr> + <tr> + <th scope="row">Credit Card</th> + <td colspan="2">{{object.credit_card}}<td> + <td class="text-right"><a href="/settings/change-profile/" class="btn">Change</a></td> + </tr> + <tr> + <th scope="row">Bio</th> + <td colspan="2">{{object.bio}}<td> + <td class="text-right"><a href="/settings/change-bio/" class="btn">Change</a></td> + </tr> + <tr> + <th scope="row">Photo</th> + <td colspan="2">{{object.photo}}<td> + <td class="text-right"><a href="/settings/change-photo/" class="btn">Change</a></td> + </tr> + <tr> + <th scope="row">Website</th> + <td colspan="2">{{object.website}}<td> + <td class="text-right"><a href="/settings/change-website/" class="btn">Change</a></td> + </tr> + <tr> + <th scope="row">Location</th> + <td colspan="2">{{object.location}}<td> + <td class="text-right"><a href="/settings/change-location/" class="btn">Change</a></td> + </tr> + </tbody> +</table> +</main> +{% 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 @@ +<!DOCTYPE html> +<!--[if lt IE 8]> <html class="lte8"> <![endif]--> +<!--[if IE 8]> <html class="ie8 lte8"> <![endif]--> +<!--[if IE 9]> <html class="ie9"> <![endif]--> +<!--[if !IE]><!--> <html lang="en"><!--<![endif]--> +<head> +<title>Note</title> +<meta name="viewport" content="width=device-width"> +<meta name="description" content="Note taking for writers"> +<meta property="og:description" content="Note taking for writers"> +<meta property="og:site_name" content="Notes"> +<meta property="og:image" content=""> +<link rel="stylesheet" href="/media/screenv1.css?{{now}}" type="text/css"> +<link rel="icon" type="image/png" href=""> +<link rel="manifest" href="/webmanifest.json"> +<link rel="apple-touch-icon" sizes="256x256" href=""> +</head> +<body class="{% block bodyclass %}{% endblock %}"> + <div class="head-wrapper"> + <header> + <nav class="left"> + <ul> + <li><a href="/" title="">Home</a></li> + </ul> + </nav> + <div class="logo"></div> + <nav class="right"> + <ul> + <li><a href="{% url 'pages' slug='tour' %}" title="">Tour</a></li> + <li><a href="{% url 'pages' slug='howto' %}" title="">How to</a></li> + <li><a href="{% url 'logout' %}" title="">Log out</a></li>{% if request.user %} + <li><a href="{% url 'settings' %}" title="">Account</a></li>{% else %} + <li><a href="{% url 'login' %}" title="">Login</a></li> + <li><a href="{% url 'django_registration_register' %}" title="" class="btn">Get Started</a></li>{% endif %} + </ul> + </nav> + </header> + </div> + <div class="wrapper"> +{% block content %} +{% endblock %} + </div> + <footer> + <p>© Luxagraf Software. Problems or questions? Contact <a href="{% url 'pages' slug='terms-of-service' %}" title="">support@notes.tld</a>.</p> + <nav> + <ul> + <li><a href="{% url 'pages' slug='terms-of-service' %}" title="">Terms of Service</a></li> + <li><a href="{% url 'pages' slug='privacy' %}" title="">Privacy</a></li> + <li><a href="{% url 'pages' slug='about' %}" title="">About</a></li> + <li><a href="{% url 'pages' slug='faq' %}" title="">FAQ</a></li> + <li><a href="{% url 'pages' slug='resources' %}" title="">Resources</a></li> + <li><a href="{% url 'pages' slug='security' %}" title="">Security</a></li> + </ul> + </nav> + </footer> +</body> 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 %} +<main> +<h1>Your account is now active.</h1> +<p><a href="{% url 'login' %}">Login</a> and get started! <?p> +</main> +{% 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: + +<a href="{{scheme}}://{{site}}/activate/{{activation_key}}">{{scheme}}://{{site}}/register/{{activation_key}}</a> + + 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 %} +<main> +<h1>Thanks for signing up.</h1> +<p>Please check your email for a link to confirm you new account.<?p> +</main> +{% 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 %} +<form action="" method="post"> +{% csrf_token %} +{{ form.non_field_errors }} +{% for field in form %} +<fieldset {% if field.errors %}class="error"{%endif%}> +{{field.label_tag}} +{{field}} +{% if field.label == "Password" %}<span class="helptext">Password should be 8 or more characters.</span>{% endif %} +{% if field.errors %}{{field.errors}}{% endif %} +</fieldset> +{% endfor %} +<p><input class="btn" value="submit" type="submit" /></p> +</form> +<p class="text-muted">Already have an account? <a href="{% url 'login' %}">Log in</a>.</p> +{% 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 %} +<main> + <h1>Create a new note</h1> +<form action="" method="post"> +{% csrf_token %} +{{ form.non_field_errors }} +{% for field in form %} +<fieldset {% if field.errors %}class="error"{%endif%}> +{{field.label_tag}} +{{field}} +{% if field.errors %}{{field.errors}}{% endif %} +</fieldset> +{% endfor %} +<p><input class="btn" value="submit" type="submit" /></p> +</form> +</main> +{% 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 %} +<main> + <h1> Notes</h1> + <ul>{% for obj in object_list %} + <li>{{obj}}</li> + {% endfor %}</ul> +</main> +{% 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 %} +<main> + <h1>{{page.title}}</h1> + {{page.body_html|safe}} +</main> +{% 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 %} +<p>Your username and password didn't match. Please try again.</p> +{% endif %} + +{% if next %} + {% if user.is_authenticated %} + <p>Your account doesn't have access to this page. To proceed, + please login with an account that has access.</p> + {% else %} + <p>Please login to see this page.</p> + {% endif %} +{% endif %} + +<form method="post" action="{% url 'login' %}"> +{% csrf_token %} +<table> +<tr> + <td>{{ form.username.label_tag }}</td> + <td>{{ form.username }}</td> +</tr> +<tr> + <td>{{ form.password.label_tag }}</td> + <td>{{ form.password }}</td> +</tr> +</table> + +<input type="submit" value="login"> +<input type="hidden" name="next" value="{{ next }}"> +</form> + +{# Assumes you setup the password_reset view in your URLconf #} +<p><a href="{% url 'password_reset' %}">Lost password?</a></p> +{% endblock %} |