Update templates

This commit is contained in:
Livvy Mackintosh 2017-10-09 20:23:03 +01:00
parent c0f7107517
commit 8c38748347
17 changed files with 104 additions and 35 deletions

View File

@ -15,7 +15,7 @@
{% block title %}{% trans "Submit a Case Study" %}{% endblock %}
{% block description %}{% trans "Here you can submit a case study for review and it will be added to the map." %}{% endblock %}
{% block content %}
{% block inner %}
{% crispy form %}
{% endblock %}

View File

@ -33,7 +33,7 @@
{% block description %}
{% trans "A complete picture is always more helpful but sometimes you don't have the time" %}
{% endblock %}
{% block content %}
{% block inner %}
<div class="btn-jumbo-group">
<a class="btn btn-jumbo bg-warning" href="{% url 'long-form' %}" role="button">
<h2>20+ Minutes</h2>

View File

@ -11,7 +11,7 @@
</style>
{% endblock %}
{% block body %}
{% block content %}
<div class="container">
@ -20,7 +20,7 @@
<p class="lead text-center">{% block description %}{% endblock %}</p>
</div>
{% block content %}
{% block inner %}
{% endblock %}
</div><!-- /.container -->

View File

@ -1 +1,8 @@
{% extends 'base_page.html' %}
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<p>{% trans "Account activation failed" %}</p>
{% endblock %}

View File

@ -1 +1,6 @@
{% extends 'base_page.html' %}
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<p>{% trans "Your account is now activated." %}</p>
{% endblock %}

View File

@ -0,0 +1,6 @@
{% load i18n %}
{% trans "Activate account at" %} {{ site.name }}:
http://{{ site.domain }}{% url 'registration_activate' activation_key %}
{% blocktrans %}Link is valid for {{ expiration_days }} days.{% endblocktrans %}

View File

@ -1 +1 @@
Activate your Ojuso Identity account.
{% load i18n %}{% trans "Account activation on" %} {{ site.name }}

View File

@ -1,11 +1,6 @@
{% extends "base_page.html" %}
{% load bootstrap3 %}
{% load crispy_forms_tags %}
{% load envelope_tags %}
{% extends "base.html" %}
{% load i18n %}
{% block page_name %}Registration{% endblock %}
{% block content %}
<p class="text-center">{% trans "You've just been logged out." %} <a href="{% url 'auth_login' %}">{% trans "Click here to login again." %}</p>
<p>{% trans "Logged out" %}</p>
{% endblock %}

View File

@ -0,0 +1,6 @@
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<p>{% trans "Password changed" %}</p>
{% endblock %}

View File

@ -0,0 +1,11 @@
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<form method="post" action=".">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="{% trans 'Submit' %}" />
</form>
{% endblock %}

View File

@ -0,0 +1,10 @@
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<p>{% trans "Password reset successfully" %}</p>
<p><a href="{% url 'auth_login' %}">{% trans "Log in" %}</a></p>
{% endblock %}

View File

@ -0,0 +1,21 @@
{% extends "base.html" %}
{% load i18n %}
{% block content %}
{% if validlink %}
<form method="post" action=".">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="{% trans 'Submit' %}" />
</form>
{% else %}
<p>{% trans "Password reset failed" %}</p>
{% endif %}
{% endblock %}

View File

@ -0,0 +1,6 @@
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<p>{% trans "Email with password reset instructions has been sent." %}</p>
{% endblock %}

View File

@ -1,14 +1,5 @@
{% load i18n %}{% autoescape off %}
{% blocktrans %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.{% endblocktrans %}
{% trans "Please go to the following page and choose a new password:" %}
{% load i18n %}
{% blocktrans %}Reset password at {{ site_name }}{% endblocktrans %}:
{% block reset_link %}
{{ protocol }}://{{ domain }}{% url 'auth_password_reset_confirm' uidb64=uid token=token %}
{{ protocol }}://{{ domain }}{% url 'auth_password_reset_confirm' uid token %}
{% endblock %}
{% trans "Your username, in case you've forgotten:" %} {{ user.get_username }}
{% trans "Thanks for using our site!" %}
{% blocktrans %}The {{ site_name }} team{% endblocktrans %}
{% endautoescape %}

View File

@ -0,0 +1,11 @@
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<form method="post" action=".">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="{% trans 'Submit' %}" />
</form>
{% endblock %}

View File

@ -1,12 +1,6 @@
{% extends "base_page.html" %}
{% load bootstrap3 %}
{% block page_name %}Registration{% endblock %}
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<div class="container">
<div class="page-lead">
<h2>Registration</h2>
<p class="lead">Account registration is currently closed. Come back soon!</p>
</div>
</div>
<p>{% trans "Registration is currently closed." %}</p>
{% endblock %}

View File

@ -0,0 +1,6 @@
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<p>{% trans "You are now registered. Activation email sent." %}</p>
{% endblock %}