initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{% load static %}
|
||||
<html>
|
||||
<head>
|
||||
<title>Wallet Monitor</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="{% static 'Skeleton/css/normalize.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'Skeleton/css/skeleton.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'css/style.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'css/topnav.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'css/accordion.css' %}">
|
||||
</head>
|
||||
<body>
|
||||
{% if user.is_authenticated %}
|
||||
<nav class="topnav">
|
||||
<a href="/monitor">Monitor</a>
|
||||
<a href="/transactions/show">Transactions</a>
|
||||
<a class="right" href="/accounts/logout/">Logout</a>
|
||||
</nav>
|
||||
{% endif %}
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="form-box">
|
||||
<h2>Success!</h2>
|
||||
|
||||
<p>Now you can <a href="{% url 'login' %}">Login</a></p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
Hello {{ user.username }},
|
||||
|
||||
you have registered at {{ site }}
|
||||
|
||||
If this was not you, please ignore this email!
|
||||
|
||||
If you want to activate your account at https://{{ site }}, please click on this link:
|
||||
|
||||
{% autoescape off %}
|
||||
Please click on the link to confirm your registration, https://{{ site }}{% url 'django_registration_activate' activation_key=activation_key %}
|
||||
{% endautoescape %}
|
||||
|
||||
All the best!
|
||||
|
||||
The team at {{ site }}
|
||||
|
||||
PS: this is an automated E-Mail, please do not reply.
|
||||
You can contact us at info@{{ site }}
|
||||
@@ -0,0 +1 @@
|
||||
Confirm your registration for {{ site }}
|
||||
@@ -0,0 +1,11 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="form-box">
|
||||
<h2>Something went wrong.</h2>
|
||||
|
||||
<p>Perhaps you have confirmed already?</p>
|
||||
|
||||
<p>Please try to <a href="{% url 'login' %}">Login</a></p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,9 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="form-box">
|
||||
<h2>Success!</h2>
|
||||
|
||||
<p>An E-Mail has been sent to. Please confirm by clicking on the link in that E-Mail!</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,33 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="form-box">
|
||||
{% if form.errors %}
|
||||
<p>{{ form.errors }}</p>
|
||||
{% endif %}
|
||||
|
||||
<form method="post" action="{% url 'django_registration_register' %}">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ form.username.label_tag }}</td>
|
||||
<td>{{ form.username }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ form.email.label_tag }}</td>
|
||||
<td>{{ form.email }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ form.password1.label_tag }}</td>
|
||||
<td>{{ form.password1 }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ form.password2.label_tag }}</td>
|
||||
<td>{{ form.password2 }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" value="Register" />
|
||||
<input type="hidden" name="next" value="{{ next }}" />
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,38 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="form-box">
|
||||
{% 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>
|
||||
<p><a href="{% url 'django_registration_register' %}">Create a free account</a></p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user