Skip to content

Commit

Permalink
Fix display of ToS/publication error
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 16, 2018
1 parent ca6af2a commit 61a20d2
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions 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>
Expand Down

0 comments on commit 61a20d2

Please sign in to comment.