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