Skip to content
Permalink
Browse files
Fix display of ToS/publication error
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 16, 2018
1 parent ca6af2a commit 61a20d260272ad6217e27f8c8d0b71e584e336e9
Showing with 5 additions and 11 deletions.
  1. +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>

0 comments on commit 61a20d2

Please sign in to comment.