From 7a4cb2ff6700e7131f4262c9b51cb3a10cd72550 Mon Sep 17 00:00:00 2001 From: gw3000 Date: Sat, 10 Jun 2023 22:24:53 +0200 Subject: [PATCH] bird forms --- .../fbf/{birds_all.html => bird_all.html} | 4 +-- fbf/templates/fbf/bird_delete.html | 26 +++++++++++++++++++ fbf/templates/fbf/bird_single.html | 18 +++++++++++++ fbf/templates/fbf/birds_single.html | 8 ------ rescuer/templates/rescuer/rescuer_single.html | 1 + 5 files changed, 47 insertions(+), 10 deletions(-) rename fbf/templates/fbf/{birds_all.html => bird_all.html} (87%) create mode 100644 fbf/templates/fbf/bird_delete.html create mode 100644 fbf/templates/fbf/bird_single.html delete mode 100644 fbf/templates/fbf/birds_single.html diff --git a/fbf/templates/fbf/birds_all.html b/fbf/templates/fbf/bird_all.html similarity index 87% rename from fbf/templates/fbf/birds_all.html rename to fbf/templates/fbf/bird_all.html index 81e8752..489cd3b 100644 --- a/fbf/templates/fbf/birds_all.html +++ b/fbf/templates/fbf/bird_all.html @@ -8,7 +8,7 @@ Vogel Finder Fundort - angelegt am + gefunden am @@ -21,7 +21,7 @@ {{ bird.rescuer }} {{ bird.place }} - {{ bird.created }} + {{ bird.date_found }} {% endfor %} diff --git a/fbf/templates/fbf/bird_delete.html b/fbf/templates/fbf/bird_delete.html new file mode 100644 index 0000000..d274339 --- /dev/null +++ b/fbf/templates/fbf/bird_delete.html @@ -0,0 +1,26 @@ +{% extends 'base.html' %} + +{% block content %} +

Patient löschen

+
+
+
+ {% csrf_token %} +
+

Warnung!

+

Wollen Sie den Vogel {{bird.bird}} + Reg-Num.: {{bird.id}} löschen?

+
+

+ Abbruch + +
+
+
+
Vogel löschen
+

+ Hinweis zum Löschen eines Vogels! +

+
+
+{% endblock content %} \ No newline at end of file diff --git a/fbf/templates/fbf/bird_single.html b/fbf/templates/fbf/bird_single.html new file mode 100644 index 0000000..cc0cb71 --- /dev/null +++ b/fbf/templates/fbf/bird_single.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} +{% load static %} +{% load crispy_forms_tags %} +{% block content %} +

Patient {{ bird.bird }} bearbeiten

+
+
+
+
+ {% csrf_token %} + {{form|crispy}} + + Löschen + +
+
+
+ {% endblock content %} \ No newline at end of file diff --git a/fbf/templates/fbf/birds_single.html b/fbf/templates/fbf/birds_single.html deleted file mode 100644 index 8f9953f..0000000 --- a/fbf/templates/fbf/birds_single.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "base.html" %} -{% load static %} -{% block content %} -

{{ bird.bird }}

-

{{ bird.id }}

-

form

-

änder und löschen

-{% endblock content %} \ No newline at end of file diff --git a/rescuer/templates/rescuer/rescuer_single.html b/rescuer/templates/rescuer/rescuer_single.html index 4dc1d4e..9bfaba7 100644 --- a/rescuer/templates/rescuer/rescuer_single.html +++ b/rescuer/templates/rescuer/rescuer_single.html @@ -1,5 +1,6 @@ {% extends "base.html" %} {% load static %} +{% load crispy_forms_tags %} {% block content %}

{{ rescuer.first_name }} {{ rescuer.last_name }}