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">
 | 
					 | 
				
			||||||
    <div class="card-header">
 | 
					 | 
				
			||||||
        <div class="card-header-title">
 | 
					 | 
				
			||||||
            {% blocktrans %}
 | 
					 | 
				
			||||||
                Als {{ user }} kommentieren
 | 
					 | 
				
			||||||
            {% endblocktrans %}
 | 
					 | 
				
			||||||
        </div>
 | 
					 | 
				
			||||||
    </div>
 | 
					 | 
				
			||||||
    <div class="card-content">
 | 
					 | 
				
			||||||
<form method="POST">
 | 
					<form method="POST">
 | 
				
			||||||
    {% csrf_token %}
 | 
					    {% csrf_token %}
 | 
				
			||||||
    <input type="hidden" name="action" value="comment">
 | 
					    <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' %}">
 | 
					        <input type="submit" class="button is-primary" value="{% trans 'Kommentieren' %}">
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
</form>
 | 
					</form>
 | 
				
			||||||
    </div>
 | 
					 | 
				
			||||||
</div>
 | 
					 | 
				
			||||||
@@ -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 %}
 | 
				
			||||||
    </div>
 | 
					 | 
				
			||||||
</div>
 | 
					 | 
				
			||||||
<div class="block">
 | 
					 | 
				
			||||||
        {% if user.is_authenticated %}
 | 
					        {% if user.is_authenticated %}
 | 
				
			||||||
 | 
					            <hr>
 | 
				
			||||||
            {% include "fellchensammlung/forms/form-comment.html" %}
 | 
					            {% include "fellchensammlung/forms/form-comment.html" %}
 | 
				
			||||||
        {% else %}
 | 
					        {% else %}
 | 
				
			||||||
        <p class="card-footer-item">
 | 
					            <div class="card-footer-item">
 | 
				
			||||||
                {% translate 'Du musst dich einloggen um Kommentare zu hinterlassen' %}
 | 
					                {% translate 'Du musst dich einloggen um Kommentare zu hinterlassen' %}
 | 
				
			||||||
        </p>
 | 
					            </div>
 | 
				
			||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user