Move the templates to their respective apps
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
{% extends 'appearance/base_plain.html' %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load static %}
|
||||
|
||||
{% load autoadmin_tags %}
|
||||
{% load common_tags %}
|
||||
{% load motd_tags %}
|
||||
{% load smart_settings_tags %}
|
||||
|
||||
{% block base_title %}{% trans 'Login' %}{% endblock %}
|
||||
|
||||
{% block project_name %}{% endblock %}
|
||||
|
||||
{% block content_plain %}
|
||||
{% autoadmin_properties %}
|
||||
{% if autoadmin_properties.account %}
|
||||
<div class="row">
|
||||
<div class="col-xs-10 col-xs-offset-1 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{% trans "First time login" %}</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{% smart_setting 'COMMON_PROJECT_TITLE' as project_title %}
|
||||
<p>{% blocktrans %}You have just finished installing <strong>{{ project_title }}</strong>, congratulations!{% endblocktrans %}</p>
|
||||
<p>{% trans 'Login using the following credentials:' %}</p>
|
||||
<p>{% blocktrans with autoadmin_properties.account as account %}Username: <strong>{{ account }}</strong>{% endblocktrans %}</p>
|
||||
<p>{% blocktrans with autoadmin_properties.account.email as email %}Email: <strong>{{ email }}</strong>{% endblocktrans %}</p>
|
||||
<p>{% blocktrans with autoadmin_properties.password as password %}Password: <strong>{{ password }}</strong>{% endblocktrans %}</p>
|
||||
<p>{% trans 'Be sure to change the password to increase security and to disable this message.' %}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% motd %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 col-lg-4 col-lg-offset-4">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"> </h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<h2>{% trans 'Sign in' %}</h2>
|
||||
<hr>
|
||||
<div class="content login">
|
||||
<form action="." method="post" class="form login">{% csrf_token %}
|
||||
<div class="group wat-cf">
|
||||
{% include 'appearance/generic_form_instance.html' %}
|
||||
<input type="hidden" name="next" value="{{ next|escape }}" />
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" name="{% if form.prefix %}{{ form.prefix }}-submit{% else %}submit{% endif %}" type="submit"><i class="fa fa-sign-in-alt"></i> {% trans 'Sign in' %}</button>
|
||||
</div>
|
||||
</form>
|
||||
<hr>
|
||||
<div>
|
||||
<a class="pull-right" href="{% url 'authentication:password_reset_view' %}">{% trans 'Forgot your password?' %}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,21 @@
|
||||
{% extends 'appearance/base_plain.html' %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load static %}
|
||||
|
||||
{% load common_tags %}
|
||||
|
||||
{% block base_title %}{% trans 'Password reset' %}{% endblock %}
|
||||
|
||||
{% block project_name %}{% endblock %}
|
||||
|
||||
{% block content_plain %}
|
||||
<div class="row">
|
||||
<div class="col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 col-lg-4 col-lg-offset-4">
|
||||
<div class="alert alert-success" role="alert">{% trans 'Password reset complete! Click the link below to login.' %}</div>
|
||||
|
||||
<div class="text-center"><a class="btn btn-primary" href="{% url 'authentication:logout_view' %}">{% trans 'Login page' %}</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock content_plain %}
|
||||
@@ -0,0 +1,37 @@
|
||||
{% extends 'appearance/base_plain.html' %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load static %}
|
||||
|
||||
{% load common_tags %}
|
||||
|
||||
{% block base_title %}{% trans 'Password reset' %}{% endblock %}
|
||||
|
||||
{% block project_name %}{% endblock %}
|
||||
|
||||
{% block content_plain %}
|
||||
<div class="row">
|
||||
<div class="col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 col-lg-4 col-lg-offset-4">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"> </h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<h2>{% trans 'Password reset' %}</h2>
|
||||
<hr>
|
||||
<div class="content login">
|
||||
<form action="." method="post" class="form login">{% csrf_token %}
|
||||
<div class="group wat-cf">
|
||||
{% include 'appearance/generic_form_instance.html' %}
|
||||
<input type="hidden" name="next" value="{{ next|escape }}" />
|
||||
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" name="{% if form.prefix %}{{ form.prefix }}-submit{% else %}submit{% endif %}" type="submit"><i class="fa fa-check"></i> {% trans 'Submit' %}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content_plain %}
|
||||
@@ -0,0 +1,18 @@
|
||||
{% extends 'appearance/base_plain.html' %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load static %}
|
||||
|
||||
{% load common_tags %}
|
||||
|
||||
{% block base_title %}{% trans 'Password reset' %}{% endblock %}
|
||||
|
||||
{% block project_name %}{% endblock %}
|
||||
|
||||
{% block content_plain %}
|
||||
<div class="row">
|
||||
<div class="col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 col-lg-4 col-lg-offset-4">
|
||||
<div class="alert alert-success" role="alert">{% trans 'Password reset email sent!' %}</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content_plain %}
|
||||
@@ -0,0 +1,6 @@
|
||||
Hello {{ user.full_name|default:user }},
|
||||
|
||||
We received a request to reset your {{ project_title }} password.
|
||||
Click the link below to choose a new one:
|
||||
|
||||
{{ project_website }}{% url 'authentication:password_reset_confirm_view' uid token %}
|
||||
@@ -0,0 +1,37 @@
|
||||
{% extends 'appearance/base_plain.html' %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load static %}
|
||||
|
||||
{% load common_tags %}
|
||||
|
||||
{% block base_title %}{% trans 'Password reset' %}{% endblock %}
|
||||
|
||||
{% block project_name %}{% endblock %}
|
||||
|
||||
{% block content_plain %}
|
||||
<div class="row">
|
||||
<div class="col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 col-lg-4 col-lg-offset-4">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"> </h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<h2>{% trans 'Password reset' %}</h2>
|
||||
<hr>
|
||||
<div class="content login">
|
||||
<form action="." method="post" class="form login">{% csrf_token %}
|
||||
<div class="group wat-cf">
|
||||
{% include 'appearance/generic_form_instance.html' %}
|
||||
<input type="hidden" name="next" value="{{ next|escape }}" />
|
||||
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" name="{% if form.prefix %}{{ form.prefix }}-submit{% else %}submit{% endif %}" type="submit"><i class="fa fa-check"></i> {% trans 'Submit' %}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content_plain %}
|
||||
@@ -0,0 +1 @@
|
||||
{{ project_title }} password reset link
|
||||
Reference in New Issue
Block a user