mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Readded start>end checking. Template improvements
Added descritpions of all error for the user as well as the image. Added contextual alert boxes for messages in base. If start>end start<=>end. Very simple fix, thanks Charlie.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="text-center">
|
||||
<h1>400: Bad Request</h1>
|
||||
<img src="{% static 'imgs/400.jpg' %}"/>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="text-center">
|
||||
<h1>401: Unauthorized</h1>
|
||||
<img src="{% static 'imgs/401.jpg' %}"/>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="text-center">
|
||||
<h1>403: Forbidden</h1>
|
||||
<img src="{% static 'imgs/403.jpg' %}"/>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@@ -3,7 +3,11 @@
|
||||
{% block title %}Page Not Found{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="text-center">
|
||||
<img src="{% static 'imgs/404.jpg' %}"/>
|
||||
<div class="col-sm-12">
|
||||
<h1>404: Not Found</h1>
|
||||
|
||||
<div class="text-center">
|
||||
<img src="{% static 'imgs/404.jpg' %}"/>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="text-center">
|
||||
<h1>500: Server error</h1>
|
||||
<img src="{% static 'imgs/500.jpg' %}"/>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@@ -110,7 +110,11 @@
|
||||
<div class="info">{{ info }}</div>{% endif %}
|
||||
{% if messages %}
|
||||
{% for message in messages %}
|
||||
<div class="info">{{ message }}</div>
|
||||
<div class="alert alert-{{ message.level_tag }} alert-dismissible" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
|
||||
aria-hidden="true">×</span></button>
|
||||
{{ message }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user