generated from 2martens/django-template
Initial commit
This commit is contained in:
17
app/templates/registration/edit_profile.html
Normal file
17
app/templates/registration/edit_profile.html
Normal 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 %}
|
||||
|
||||
17
app/templates/registration/login.html
Normal file
17
app/templates/registration/login.html
Normal 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 %}
|
||||
15
app/templates/registration/password_change_form.html
Normal file
15
app/templates/registration/password_change_form.html
Normal 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 %}
|
||||
13
app/templates/registration/password_reset_complete.html
Normal file
13
app/templates/registration/password_reset_complete.html
Normal 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 %}
|
||||
19
app/templates/registration/password_reset_confirm.html
Normal file
19
app/templates/registration/password_reset_confirm.html
Normal 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 %}
|
||||
13
app/templates/registration/password_reset_done.html
Normal file
13
app/templates/registration/password_reset_done.html
Normal 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 'We’ve 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 don’t receive an email, please make sure you’ve entered the address you registered with, and check your spam folder.' %}</p>
|
||||
|
||||
{% endblock %}
|
||||
17
app/templates/registration/password_reset_form.html
Normal file
17
app/templates/registration/password_reset_form.html
Normal 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 we’ll 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 %}
|
||||
16
app/templates/registration/register.html
Normal file
16
app/templates/registration/register.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user