diff --git a/fet2020/finance/forms.py b/fet2020/finance/forms.py index 1a49bc30..9535e553 100644 --- a/fet2020/finance/forms.py +++ b/fet2020/finance/forms.py @@ -51,7 +51,7 @@ class BillCreateForm(forms.ModelForm): "amount": "Betrag (EUR)", "purpose": "Verwendungszweck", "affiliation": "Abrechnungsbudget", - "payer": "Wie wurde die Rechnung bezahlt?", + "payer": "Ursprüngliche Bezahlmethode", "only_digital": "Ich habe nur eine digitale Rechnung.", "file_field": "Rechnung hochladen (PDF)", "comment": "Kommentar", @@ -74,8 +74,9 @@ class BillCreateForm(forms.ModelForm): self.fields["bill_creator"].initial = member self.fields["bill_creator"].disabled = True - self.fields["invoice"].placeholder = "Firmenname\nStraße\nPLZ Ort" - self.fields["invoice"].rows = 3 + self.fields["invoice"].placeholder = "Firmenname\nStraße\nPLZ und Ort" + self.fields["invoice"].cols = 30 + self.fields["invoice"].rows = 4 # bank data fields self.fields["payer"].autofocus = True diff --git a/fet2020/templates/baseform/checkbox.html b/fet2020/templates/baseform/checkbox.html index c76f96cf..8db6190b 100644 --- a/fet2020/templates/baseform/checkbox.html +++ b/fet2020/templates/baseform/checkbox.html @@ -13,5 +13,5 @@ {% if field.field.autofocus %}autofocus{% endif %} class="rounded border-gray-300 dark:border-none text-proprietary shadow-sm focus:border-blue-300 focus:ring focus:ring-offset-0 focus:ring-blue-200 dark:focus:ring-sky-700 focus:ring-opacity-50" > - {{ field.label }} {% if not field.field.required %}(optional){% endif %} + {{ field.label }} {% if not field.field.required %}(optional){% endif %} diff --git a/fet2020/templates/baseform/text_with_suggestions.html b/fet2020/templates/baseform/text_with_suggestions.html deleted file mode 100644 index 29aab705..00000000 --- a/fet2020/templates/baseform/text_with_suggestions.html +++ /dev/null @@ -1,25 +0,0 @@ - diff --git a/fet2020/templates/baseform/textarea.html b/fet2020/templates/baseform/textarea.html index 57821405..123d5229 100644 --- a/fet2020/templates/baseform/textarea.html +++ b/fet2020/templates/baseform/textarea.html @@ -11,6 +11,7 @@ {% if field.field.disabled %}disabled{% endif %} {% if field.field.autofocus %}autofocus{% endif %} {% if field.field.placeholder %}placeholder="{{ field.field.placeholder }}"{% endif %} + {% if field.field.cols %}cols="{{ field.field.cols }}"{% endif %} {% if field.field.rows %}rows="{{ field.field.rows }}"{% endif %} class="mt-1 block w-full disabled:bg-gray-200 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" >{% if field.value %}{{ field.value }}{% endif %} diff --git a/fet2020/templates/finance/bill_create.html b/fet2020/templates/finance/bill_create.html index 2fc9023a..61859b31 100644 --- a/fet2020/templates/finance/bill_create.html +++ b/fet2020/templates/finance/bill_create.html @@ -7,60 +7,103 @@

Neue Rechnung einreichen

-
+ {% csrf_token %} {% include "baseform/non_field_errors.html" %} - {% include "baseform/select.html" with field=form.bill_creator %} - -
- Bankdaten - - {% include "baseform/select.html" with field=form.payer %} - {% include "baseform/text_with_suggestions.html" with field=form.name_text %} - {% include "baseform/text.html" with field=form.iban_text %} - {% include "baseform/text.html" with field=form.bic_text %} - -
- Rechnung - - {% include "baseform/date.html" with field=form.date %} - {% include "baseform/textarea.html" with field=form.invoice %} - {% include "baseform/text.html" with field=form.purpose %} - -