59 lines
2.3 KiB
HTML
59 lines
2.3 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n static %}
|
|
{% block head %}
|
|
<title> TipPy Blog</title>
|
|
{% endblock %}
|
|
|
|
{% block nav %}
|
|
{% include "nav.html" with ls=ls season=season %}
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
<div id="content-main">
|
|
{% if form_bp.errors %}
|
|
<div>
|
|
<p class="errornote">
|
|
{% if form_bp.errors.items|length == 1 %}
|
|
{% trans "Please correct the error below." %}
|
|
{% else %}
|
|
{% trans "Please correct the errors below." %}
|
|
{% endif %}</p>
|
|
</div>
|
|
{% endif %}
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<form class="form-horizontal" action="" method="post">{% csrf_token %}
|
|
<div class="form-group">
|
|
{{ form_bp.content.errors }}
|
|
<div class="col-sm-5">
|
|
<div class="panel-body">
|
|
<textarea class="form-control" placeholder="Schreibe einen Kommentar..." id="id_content"
|
|
name="content" maxlength="100" rows="2"></textarea>
|
|
{% if cnt_mandants > 1 %}
|
|
{{ form_mandants.mandants.label_tag }}
|
|
{% for choice in form_mandants.mandants %}
|
|
<label for="{{ choice.id_for_label }}">
|
|
{{ choice.tag }} {{ choice.choice_label }}
|
|
</label>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
<button type="submit" class="btn btn-default">{% trans 'Sent' %}</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% if debug %}
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<p>{{ debug }}</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|