Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix display of ToS/publication error
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
- Loading branch information
Showing
with
5 additions
and
11 deletions.
-
+5
−11
templates/add-error.html
|
|
@@ -1,22 +1,16 @@ |
|
|
{% extends "base.html" %} |
|
|
{% block content %} |
|
|
<p class="text-danger lead">Something went wrong.</p> |
|
|
{% if reason == 'tos' %} |
|
|
{% if reason == 'tos_pub' %} |
|
|
<p class="text-danger">You need to accept the Terms of Service and acknowledge data publication.</p> |
|
|
{% elif reason == 'duplicate' %} |
|
|
<p class="text-danger">There is an entry for this page already — you should <a href="/edit/">request an edit</a>.</p> |
|
|
{% else %} |
|
|
<p class="text-danger">Possible causes include:</p> |
|
|
|
|
|
<ul> |
|
|
<li><p class="text-danger">This page already exists in our database (and you |
|
|
should <a href="/edit/">request an edit</a>)</p></li> |
|
|
<li><p class="text-danger">Some fields were empty</p></li> |
|
|
<li><p class="text-danger">Some fields were too long</p></li> |
|
|
<li><p class="text-danger">Some fields were missing</p></li> |
|
|
</ul> |
|
|
<p>Error list:</p> |
|
|
<p class="text-danger">The following errors occurred:</p> |
|
|
<div class="text-danger"> |
|
|
{{ reason }} |
|
|
</div> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
<p>Please press the Back button and fix those problems.</p> |
|
|