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:
tomtom5152
2015-03-05 18:20:43 +00:00
parent d6bcc2f5dd
commit 2568517a8f
7 changed files with 32 additions and 6 deletions

View File

@@ -4,6 +4,7 @@
{% block content %}
<div class="text-center">
<h1>400: Bad Request</h1>
<img src="{% static 'imgs/400.jpg' %}"/>
</div>
{% endblock %}

View File

@@ -4,6 +4,7 @@
{% block content %}
<div class="text-center">
<h1>401: Unauthorized</h1>
<img src="{% static 'imgs/401.jpg' %}"/>
</div>
{% endblock %}

View File

@@ -4,6 +4,7 @@
{% block content %}
<div class="text-center">
<h1>403: Forbidden</h1>
<img src="{% static 'imgs/403.jpg' %}"/>
</div>
{% endblock %}

View File

@@ -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 %}

View File

@@ -4,6 +4,7 @@
{% block content %}
<div class="text-center">
<h1>500: Server error</h1>
<img src="{% static 'imgs/500.jpg' %}"/>
</div>
{% endblock %}

View File

@@ -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">&times;</span></button>
{{ message }}
</div>
{% endfor %}
{% endif %}
{% endblock %}