Files
Fil-A-Management/templates/filament/form.html
T

30 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% block title %}{{ title }} · Fil-A-Management{% endblock %}
{% block content %}
<a class="back-link" href="{% if back_url %}{{ back_url }}{% else %}{% url back_name %}{% endif %}">← Zurück</a>
<div class="page-heading">
<div>
<p class="eyebrow">DEIN PRIVATER BEREICH</p>
<h1>{{ title }}</h1>
<p class="muted">{{ description }}</p>
</div>
</div>
<section class="panel form-panel">
{% if empty_message %}
<p>{{ empty_message }}</p>
{% else %}
<form method="post">
{% csrf_token %}{{ form.non_field_errors }}
{% for field in form.hidden_fields %}{{ field }}{{ field.errors }}{% endfor %}
{% for field in form.visible_fields %}
<div class="field">
{{ field.label_tag }}{{ field }}{{ field.errors }}
{% if field.help_text %}<div class="helptext" id="{{ field.auto_id }}_helptext">{{ field.help_text }}</div>{% endif %}
</div>
{% endfor %}
<button class="button" type="submit">{{ submit_label|default:"Speichern" }}</button>
</form>
{% endif %}
</section>
{% endblock %}