71 lines
3.0 KiB
HTML
71 lines
3.0 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block title %}Rechnung {{ object.pk }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<!-- Main Content -->
|
|
<main class="container mx-auto w-full px-4 my-8 flex-1">
|
|
<h1 class="page-title">Rechnung {{ object.pk }}</h1>
|
|
<div class="w-full h-full flex-1 flex justify-center items-center">
|
|
<form action="" enctype="multipart/form-data" method="POST" class="w-full max-w-xs sm:max-w-prose sm:px-28 sm:py-4 grid grid-cols-1 gap-y-3 sm:gap-y-6 text-gray-900">
|
|
{% csrf_token %}
|
|
{% include "baseform/non_field_errors.html" %}
|
|
|
|
{% include "baseform/select.html" with field=form.bill_creator %}
|
|
|
|
<hr>
|
|
<span class="text-gray-700 dark:text-gray-200">Bankdaten</span>
|
|
|
|
{% include "baseform/select.html" with field=form.payer %}
|
|
{% if form.name_text.value %}
|
|
{% include "baseform/text.html" with field=form.name_text %}
|
|
{% endif %}
|
|
{% if form.iban_text.value %}
|
|
{% include "baseform/text.html" with field=form.iban_text %}
|
|
{% endif %}
|
|
{% if form.bic_text.value %}
|
|
{% include "baseform/text.html" with field=form.bic_text %}
|
|
{% endif %}
|
|
|
|
<hr>
|
|
<span class="text-gray-700 dark:text-gray-200">Rechnung</span>
|
|
|
|
{% include "baseform/text.html" with field=form.date %}
|
|
{% include "baseform/textarea.html" with field=form.invoice %}
|
|
{% include "baseform/text.html" with field=form.purpose %}
|
|
{% include "baseform/text.html" with field=form.amount %}
|
|
|
|
{% if form.file_field.value %}
|
|
{% include "baseform/checkbox.html" with field=form.only_digital %}
|
|
|
|
<label>
|
|
<span class="text-gray-700 dark:text-gray-200">Derzeit:</span>
|
|
|
|
<a
|
|
href="{{ form.file_field.value.url }}"
|
|
class="text-gray-700 dark:text-gray-200 block w-full mt-1 rounded-md border-gray-300 dark:border-none shadow-sm focus:border-none focus:ring focus:ring-blue-200 dark:focus:ring-sky-700 focus:ring-opacity-50"
|
|
>{{ form.file_field.value }}</a>
|
|
</label>
|
|
{% else %}
|
|
<span class="text-gray-700 dark:text-gray-200">Keine digitale Rechnung eingereicht.</span>
|
|
{% endif %}
|
|
|
|
<hr>
|
|
<span class="text-gray-700 dark:text-gray-200">Beschlusslage</span>
|
|
|
|
{% include "baseform/select.html" with field=form.affiliation %}
|
|
{% if form.resolution_text.value %}
|
|
{% include "baseform/text.html" with field=form.resolution_text %}
|
|
{% endif %}
|
|
|
|
<hr>
|
|
{% include "baseform/textarea.html" with field=form.comment %}
|
|
|
|
<div class="flex flex-col-reverse sm:flex-row gap-3 justify-end pt-4 sm:pt-0">
|
|
<input type="submit" class="block btn btn-primary" value="Speichern">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</main>
|
|
{% endblock %}
|