feat: Add basic reporting structure

This commit is contained in:
2024-03-22 12:45:50 +01:00
parent 86f02214d7
commit 3516ca1d29
15 changed files with 277 additions and 5 deletions

View File

@@ -0,0 +1,17 @@
{% extends "fellchensammlung/base_generic.html" %}
{% load i18n %}
{% block content %}
{% if form_complete %}
<h1>Erfolgreich gemeldet</h1>
Wenn du sehen willst welche Moderationsentscheidungen getroffen werden, schau zu einem späteren Zeitpunkt wieder auf dieser Seite vorbei.
Wenn du unzufrieden mit der Entscheidung bist kannst du per Mail an <a href="mailto:info@notfellchen.org">info@notfellchen.org</a> Einspruch einlegen.
{% endif %}
{% include "fellchensammlung/partial-report.html" %}
<h2>Moderationsverlauf</h2>
{% if report.get_moderation_actions %}
{% include "fellchensammlung/list-moderation-action.html" %}
{% else %}
Bisher wurden keine Maßnahmen vorgenommen
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,12 @@
{% extends "fellchensammlung/base_generic.html" %}
{% load i18n %}
{% block content %}
<h1>Melden</h1>
Wenn diese Vermittlung nicht unseren <a href='{% url "about" %}'>Regeln</a> entspricht, wähle bitte eine der folgenden Regeln aus und hinterlasse einen Kommentar der es detaillierter erklärt, insbesondere wenn der Regelverstoß nicht offensichtlich ist.
<form method = "post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<button class="button-report" type="submit">Melden</button>
</form>
{% endblock %}

View File

@@ -0,0 +1,5 @@
<div class="container-list-moderation-actions">
{% for moderation_action in moderation_actions %}
{% include "fellchensammlung/partial-moderation-action.html" %}
{% endfor %}
</div>

View File

@@ -0,0 +1,4 @@
<div class="card-animal">
<div class="tag">{{ moderation_action.action }}</div>
<p>{{ moderation_action.public_comment }}</p>
</div>

View File

@@ -0,0 +1,14 @@
<div class="report">
<h2>Meldung von {{ report.adoption_notice.name }}</h2>
{% if report.reported_broken_rules %}
Regeln gegen die Verstoßen wurde
<ul>
{% for rule in report.get_reported_rules %}
<li>{{ rule }}</li>
{% endfor %}
</ul>
{% endif %}
<p><b>Kommentar zur Meldung:</b>
{{ report.comment }}
</p>
</div>