From 5a6294adf62b5e6c3f111a0fe2e9863ebd733c55 Mon Sep 17 00:00:00 2001 From: moanos Date: Mon, 23 Jun 2025 17:50:15 +0200 Subject: [PATCH] fix: Add asterix for mandatory fields --- .../forms/form-add-adoption.html | 47 +++++++++++++++---- 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/src/fellchensammlung/templates/fellchensammlung/forms/form-add-adoption.html b/src/fellchensammlung/templates/fellchensammlung/forms/form-add-adoption.html index 78808a8..6be66f5 100644 --- a/src/fellchensammlung/templates/fellchensammlung/forms/form-add-adoption.html +++ b/src/fellchensammlung/templates/fellchensammlung/forms/form-add-adoption.html @@ -30,29 +30,44 @@
- + {{ form.description|add_class:"input textarea"|attr:"rows:3"|attr:"id:an-description" }}
- + {{ form.location_string|add_class:"input"|attr:"id:an-location" }}
- + {{ form.group_only|add_class:"checkbox"|attr:"id:an-group-only" }}
- + {{ form.searching_since|add_class:"input"|attr:"id:an-searching-since"|attr:"type:date" }}
- + {{ form.further_information|add_class:"input"|attr:"id:an-further-information"|attr:"type:url" }}
{{ form.further_information.help_text }} @@ -74,7 +89,10 @@
- +
{{ form.species|attr:"id:an-species" }}
@@ -82,19 +100,28 @@
- - {{ form.num_animals|add_class:"input"|attr:"id:an-num-animals" }} + + {{ form.num_animals|add_class:"input"|attr:"id:an-num-animals" }}{% endif %}
- +
{{ form.sex|attr:"id:an-sex" }}
- + {{ form.date_of_birth|add_class:"input"|attr:"id:an-date-of-birth"|attr:"type:date" }}