mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Whole heap of registration and error template changes
This commit is contained in:
BIN
RIGS/static/imgs/400.jpg
Normal file
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
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
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
BIN
RIGS/static/imgs/500.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 119 KiB |
9
templates/400.html
Normal file
9
templates/400.html
Normal 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
9
templates/401.html
Normal 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
9
templates/403.html
Normal 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 %}
|
||||||
@@ -1,6 +1,9 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% block title %}Page not found{% endblock %}
|
{% load staticfiles %}
|
||||||
|
{% block title %}Page Not Found{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
The page you requested could not be found.
|
<div class="text-center">
|
||||||
|
<img src="{% static 'imgs/404.jpg' %}"/>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
|
{% load staticfiles %}
|
||||||
{% block title %}Server error{% endblock %}
|
{% block title %}Server error{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
There was an error while handling your request.
|
<div class="text-center">
|
||||||
|
<img src="{% static 'imgs/500.jpg' %}"/>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -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 %}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{{ site }} user {{ user }} activation {{ activation_key }}
|
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
Congratulations {{ user.first_name }}. You are now fully registered on {{ site }}.
|
{% load url from future %}
|
||||||
|
Welcome {{ user }},
|
||||||
|
|
||||||
{% if is_generated %}
|
Thank you for registering on {{ site }}
|
||||||
You password for this site has been automatically set to {{ password }}. It is recommend you change this as soon as possible.
|
|
||||||
{% endif %}
|
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.
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{{ user }} activation successful
|
{{ user }} activation required
|
||||||
@@ -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 %}
|
|
||||||
@@ -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.
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{{ site }} New User Approval Require
|
|
||||||
@@ -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.
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{{ site }} User Awaiting Approval
|
|
||||||
Reference in New Issue
Block a user