Initial commit

This commit is contained in:
2020-02-19 10:34:17 +01:00
commit 85d5f0b123
43 changed files with 15041 additions and 0 deletions

View File

@ -0,0 +1,17 @@
{% extends "app/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block title %}{{ site.title }} - {{ title }}{% endblock %}
{% block content %}
<h1>{{ title }}</h1>
<form method="post" action="{% url "edit_profile" %}">
{% csrf_token %}
{{ user_form|crispy }}
{{ profile_form|crispy }}
<button type="submit" class="btn btn-primary">{% trans "Submit" %}</button>
</form>
{% endblock %}

View File

@ -0,0 +1,17 @@
{% extends "app/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block title %}{{ site.title }} - {{ title }}{% endblock %}
{% block content %}
<h1>{{ title }}</h1>
<form method="post" action="{% url "login" %}">
{% csrf_token %}
{{ form|crispy }}
<input type="hidden" name="next" value="{{ next }}" />
<button type="submit" class="btn btn-primary">{% trans "Login" %}</button>
<a href="{% url "password_reset" %}">{% trans "Forgot password?" %}</a>
</form>
{% endblock %}

View File

@ -0,0 +1,15 @@
{% extends "app/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block title %}{{ site_name }} - {{ title }}{% endblock %}
{% block content %}
<h1>{{ title }}</h1>
<form method="post">
{% csrf_token %}
{{ form|crispy }}
<button type="submit" class="btn btn-primary">{% trans "Change password" %}</button>
</form>
{% endblock %}

View File

@ -0,0 +1,13 @@
{% extends "app/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block title %}{{ site.title }} - {{ title }}{% endblock %}
{% block content %}
<h1>{{ title }}</h1>
<p>{% trans "Your password has been set. You may go ahead and log in now." %}</p>
<p><a href="{{ login_url }}">{% trans 'Log in' %}</a></p>
{% endblock %}

View File

@ -0,0 +1,19 @@
{% extends "app/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block title %}{{ site.title }} - {{ title }}{% endblock %}
{% block content %}
<h1>{{ title }}</h1>
{% if validlink %}
<p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
<form method="post" action="{% url "password_reset" %}">
{% csrf_token %}
{{ form|crispy }}
<button type="submit" class="btn btn-primary">{% trans "Change my password" %}</button>
</form>
{% else %}
<p>{% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %}</p>
{% endif %}
{% endblock %}

View File

@ -0,0 +1,13 @@
{% extends "app/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block title %}{{ site.title }} - {{ title }}{% endblock %}
{% block content %}
<h1>{{ title }}</h1>
<p>{% trans 'Weve emailed you instructions for setting your password. If an account exists with the email you entered you should receive them shortly.' %}</p>
<p>{% trans 'If you dont receive an email, please make sure youve entered the address you registered with, and check your spam folder.' %}</p>
{% endblock %}

View File

@ -0,0 +1,17 @@
{% extends "app/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block title %}{{ site.title }} - {{ title }}{% endblock %}
{% block content %}
<h1>{{ title }}</h1>
<p>{% trans 'Forgotten your password? Enter your email address below, and well email instructions for setting a new one.' %}</p>
<form method="post" action="{% url "password_reset" %}">
{% csrf_token %}
{{ form|crispy }}
<button type="submit" class="btn btn-primary">{% trans "Password reset" %}</button>
</form>
{% endblock %}

View File

@ -0,0 +1,16 @@
{% extends "app/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block title %}{{ site.title }} - {% trans "Register" %}{% endblock %}
{% block content %}
<h1>{% trans "Register a new user" %}</h1>
<form method="post" action="{% url "register" %}">
{% csrf_token %}
{{ user_form|crispy }}
{{ profile_form|crispy }}
<button type="submit" class="btn btn-primary">{% trans "Register" %}</button>
</form>
{% endblock %}