Proper display of save errors.
This commit is contained in:
parent
fce288dcee
commit
97e4501427
3 changed files with 33 additions and 3 deletions
18
templates/save_error.html
Normal file
18
templates/save_error.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="p-2">
|
||||
<h1>Error saving depicts statements to Wikidata</h1>
|
||||
|
||||
<p>It was not possible to save your edit to Wikidata. The details of the error returned by the Wikidata API are below.</p>
|
||||
|
||||
{% for message in error.messages %}
|
||||
<h4>{{ message.name }}</h4>
|
||||
<div class="mb-3">
|
||||
{{ message.html | safe }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue