feat: Re-style comment field to be inside comment box
This commit is contained in:
@@ -1,19 +1,13 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load widget_tweaks %}
|
||||||
|
|
||||||
<div class="card">
|
<form method="POST">
|
||||||
<div class="card-header">
|
{% csrf_token %}
|
||||||
<div class="card-header-title">
|
<input type="hidden" name="action" value="comment">
|
||||||
{% blocktrans %}
|
<div class="field">
|
||||||
Als {{ user }} kommentieren
|
{{ comment_form.text |add_class:"input textarea"|attr:"rows:3"|attr:"placeholder:Neuer Kommentar" }}
|
||||||
{% endblocktrans %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="card-content">
|
<div class="control">
|
||||||
<form method="POST">
|
<input type="submit" class="button is-primary" value="{% trans 'Kommentieren' %}">
|
||||||
{% csrf_token %}
|
|
||||||
<input type="hidden" name="action" value="comment">
|
|
||||||
{{ comment_form }}
|
|
||||||
<input type="submit" class="button is-primary" value="{% trans 'Kommentieren' %}">
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</form>
|
@@ -12,14 +12,13 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<p class="is-italic">{% translate 'Noch keine Kommentare' %}</p>
|
<p class="is-italic">{% translate 'Noch keine Kommentare' %}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if user.is_authenticated %}
|
||||||
|
<hr>
|
||||||
|
{% include "fellchensammlung/forms/form-comment.html" %}
|
||||||
|
{% else %}
|
||||||
|
<div class="card-footer-item">
|
||||||
|
{% translate 'Du musst dich einloggen um Kommentare zu hinterlassen' %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="block">
|
|
||||||
{% if user.is_authenticated %}
|
|
||||||
{% include "fellchensammlung/forms/form-comment.html" %}
|
|
||||||
{% else %}
|
|
||||||
<p class="card-footer-item">
|
|
||||||
{% translate 'Du musst dich einloggen um Kommentare zu hinterlassen' %}
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
Reference in New Issue
Block a user