Whole heap of registration and error template changes

This commit is contained in:
tomtom5152
2014-11-06 00:53:53 +00:00
parent 1443e26a35
commit d0ee5993b7
18 changed files with 43 additions and 46 deletions

BIN
RIGS/static/imgs/400.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

BIN
RIGS/static/imgs/401.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

BIN
RIGS/static/imgs/404.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

BIN
RIGS/static/imgs/500.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

9
templates/400.html Normal file
View File

@@ -0,0 +1,9 @@
{% extends 'base.html' %}
{% load staticfiles %}
{% block title %}Bad Request{% endblock %}
{% block content %}
<div class="text-center">
<img src="{% static 'imgs/400.jpg' %}"/>
</div>
{% endblock %}

9
templates/401.html Normal file
View File

@@ -0,0 +1,9 @@
{% extends 'base.html' %}
{% load staticfiles %}
{% block title %}Unauthorized{% endblock %}
{% block content %}
<div class="text-center">
<img src="{% static 'imgs/401.jpg' %}"/>
</div>
{% endblock %}

9
templates/403.html Normal file
View File

@@ -0,0 +1,9 @@
{% extends 'base.html' %}
{% load staticfiles %}
{% block title %}Forbidden{% endblock %}
{% block content %}
<div class="text-center">
<img src="{% static 'imgs/403.jpg' %}"/>
</div>
{% endblock %}

View File

@@ -1,6 +1,9 @@
{% extends 'base.html' %}
{% block title %}Page not found{% endblock %}
{% load staticfiles %}
{% block title %}Page Not Found{% endblock %}
{% block content %}
The page you requested could not be found.
<div class="text-center">
<img src="{% static 'imgs/404.jpg' %}"/>
</div>
{% endblock %}

View File

@@ -1,6 +1,9 @@
{% extends 'base.html' %}
{% load staticfiles %}
{% block title %}Server error{% endblock %}
{% block content %}
There was an error while handling your request.
<div class="text-center">
<img src="{% static 'imgs/500.jpg' %}"/>
</div>
{% endblock %}

View File

@@ -1,12 +0,0 @@
{% load url from future %}
Welcome {{ profile.first_name }},
You request to become a user on {{ site }} has been approved by an administrator.
To continue the registration process please visit http://{{ site.domain }}{% url 'registration_activate' activation_key=activation_key %}.
This link will be active for the next {{ expiration_days }} days.
{% if message %}
Message from administrator:
{{ message }}
{% endif %}

View File

@@ -1 +0,0 @@
{{ site }} user {{ user }} activation {{ activation_key }}

View File

@@ -1,5 +1,7 @@
Congratulations {{ user.first_name }}. You are now fully registered on {{ site }}.
{% load url from future %}
Welcome {{ user }},
{% if is_generated %}
You password for this site has been automatically set to {{ password }}. It is recommend you change this as soon as possible.
{% endif %}
Thank you for registering on {{ site }}
To continue the registration process please visit http://{{ site.domain }}{% url 'registration_activate' activation_key=activation_key %}.
This link will be active for the next {{ expiration_days }} days.

View File

@@ -1 +1 @@
{{ user }} activation successful
{{ user }} activation required

View File

@@ -1,17 +0,0 @@
{% extends 'base.html' %}
{% load widget_tweaks %}
{% block title %}Activation{% endblock %}
{% block content %}
<form action="" method="post" class="form-horizontal" role="form">{% csrf_token %}
{% for field in form %}
<div class="form-group">
<label for="{{ field.id_for_label }}" class="control-label col-sm-2">{{ field.label }}</label>
<div class="controls col-sm-10">
{% render_field field class+="form-control" placeholder=field.label %}
</div>
</div>
{% endfor %}
<p><input type="submit" value="Activate Account" class="btn btn-primary pull-right"></p>
</form>
{% endblock %}

View File

@@ -1,3 +0,0 @@
A new user has just registered on {{ site }} with username {{ user.username }} and email {{ user.email }}.
Please visit {{ site.domain }}{% url admin:registration_registrationprofile_change user.registration_profile.id %} to moderate this activation.

View File

@@ -1 +0,0 @@
{{ site }} New User Approval Require

View File

@@ -1,3 +0,0 @@
You account has been created but now requires approval by one of our moderation team.
Please wait while this is done.

View File

@@ -1 +0,0 @@
{{ site }} User Awaiting Approval