feat: Add overview of missing texts
This commit is contained in:
@@ -1,15 +1,37 @@
|
||||
{% extends "fellchensammlung/base_generic.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<div class="card">
|
||||
<h1>{% translate "Instanz-Check" %}</h1>
|
||||
<p>{% translate "Nicht-lokalisierte Vermittlungen" %}: {{ number_not_geocoded_adoption_notices }}/{{ number_of_adoption_notices }}</p>
|
||||
<p>{% translate "Nicht-lokalisierte Tierschutzorganisationen" %}: {{ number_not_geocoded_rescue_orgs }}/{{ number_of_rescue_orgs }}</p>
|
||||
{% if missing_texts|length > 0 %}
|
||||
<h2>{% trans "Fehlende Texte" %}</h2>
|
||||
<p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>{% translate "Text Code" %}</th>
|
||||
<th>{% translate "Sprache" %}</th>
|
||||
</tr>
|
||||
{% for missing_text in missing_texts %}
|
||||
<tr>
|
||||
<td>{{ missing_text.0 }}</td>
|
||||
<td>{{ missing_text.1 }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</p>
|
||||
{% else %}
|
||||
<p>{% translate "Texte scheinen vollständig" %}</p>
|
||||
{% endif %}
|
||||
<h2>{% translate "Nicht-lokalisierte Vermittlungen" %}</h2>
|
||||
<p>{{ number_not_geocoded_adoption_notices }}/{{ number_of_adoption_notices }}</p>
|
||||
<h2>{% translate "Nicht-lokalisierte Tierschutzorganisationen" %}</h2>
|
||||
<p>{{ number_not_geocoded_rescue_orgs }}/{{ number_of_rescue_orgs }}</p>
|
||||
<form class="notification-card-mark-read" method="post">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="action" value="clean_locations">
|
||||
<button class="btn" type="submit" id="submit">
|
||||
<i class="fa-solid fa-broom"></i> {% translate "Erneut lokalisieren" %}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
<form class="notification-card-mark-read" method="POST">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="action" value="clean_locations">
|
||||
<button class="btn2" type="submit" id="submit"><i class="fa-solid fa-broom"></i> {% translate "Erneut lokalisieren" %}</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
{% endblock content %}
|
||||
|
Reference in New Issue
Block a user