feat: Convert report detail to bulma

This commit is contained in:
2025-06-17 05:57:43 +02:00
parent c038370602
commit 0bd321e5ec
4 changed files with 14 additions and 13 deletions

View File

@@ -1,9 +1,9 @@
{% extends "fellchensammlung/base_generic.html" %} {% extends "fellchensammlung/base_bulma.html" %}
{% load i18n %} {% load i18n %}
{% block content %} {% block content %}
{% if form_complete %} {% if form_complete %}
<h1>{% translate "Erfolgreich gemeldet" %}</h1> <h1 class="title is-2">{% translate "Erfolgreich gemeldet" %}</h1>
{% blocktranslate %} {% blocktranslate %}
Wenn du sehen willst welche Moderationsentscheidungen getroffen werden, schau zu einem späteren Zeitpunkt Wenn du sehen willst welche Moderationsentscheidungen getroffen werden, schau zu einem späteren Zeitpunkt
wieder auf dieser Seite vorbei. wieder auf dieser Seite vorbei.
@@ -11,8 +11,10 @@
<a href="mailto:info@notfellchen.org">info@notfellchen.org</a> Einspruch einlegen. <a href="mailto:info@notfellchen.org">info@notfellchen.org</a> Einspruch einlegen.
{% endblocktranslate %} {% endblocktranslate %}
{% endif %} {% endif %}
<hr>
{% include "fellchensammlung/partials/partial-report.html" %} {% include "fellchensammlung/partials/partial-report.html" %}
<h2>{% translate "Moderationsverlauf" %}</h2> <hr>
<h1 class="title is-1">{% translate "Moderationsverlauf" %}</h1>
{% if report.get_moderation_actions %} {% if report.get_moderation_actions %}
{% include "fellchensammlung/lists/list-moderation-action.html" %} {% include "fellchensammlung/lists/list-moderation-action.html" %}
{% else %} {% else %}

View File

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

View File

@@ -1,5 +1,5 @@
{% load i18n %} {% load i18n %}
<div class="card-animal"> <div class="block">
<div class="tag">{{ moderation_action.action }}</div> <h3 class="title is-4">{{ moderation_action.get_action_display }}</h3>
<p>{{ moderation_action.public_comment }}</p> <p>{{ moderation_action.public_comment }}</p>
</div> </div>

View File

@@ -1,6 +1,6 @@
{% load i18n %} {% load i18n %}
<div class="report card"> <div class="block">
<h2> <h2 class="title is-3">
{% translate 'Meldung von ' %} <a href="{{ report.reported_content_url }}"><i>{{ report.reported_content }}</i></a> {% translate 'Meldung von ' %} <a href="{{ report.reported_content_url }}"><i>{{ report.reported_content }}</i></a>
</h2> </h2>
{% if report.reported_broken_rules %} {% if report.reported_broken_rules %}
@@ -19,16 +19,16 @@
{% endif %} {% endif %}
</p> </p>
{% if is_mod_or_above %} {% if is_mod_or_above %}
<div class="container-edit-buttons"> <div class="field is-grouped">
<form action="allow" class=""> <form action="allow" class="">
{% csrf_token %} {% csrf_token %}
<input type="hidden" name="report_id" value="{{ report.pk }}"> <input type="hidden" name="report_id" value="{{ report.pk }}">
<button class="btn allow" type="submit">{% translate "Inhalt genehmigen" %}</button> <button class="button is-primary" type="submit">{% translate "Inhalt genehmigen" %}</button>
</form> </form>
<form action="disallow" class=""> <form action="disallow" class="">
{% csrf_token %} {% csrf_token %}
<input type="hidden" name="report_id" value="{{ report.pk }}"> <input type="hidden" name="report_id" value="{{ report.pk }}">
<button class="btn allow" type="submit">{% translate "Inhalt als gesperrt kennzeichnen" %}</button> <button class="button is-danger" type="submit">{% translate "Inhalt als gesperrt kennzeichnen" %}</button>
</form> </form>
</div> </div>
{% endif %} {% endif %}