From 86d72120601fac18b11e045da8cffa88dc9e0aed Mon Sep 17 00:00:00 2001 From: reverend Date: Mon, 10 Aug 2020 20:10:22 +0200 Subject: [PATCH] Adjusted templates --- lostplaces/lostplaces_app/static/main.css | 3 ++- .../templates/place/place_delete.html | 20 ++++++++-------- lostplaces/templates/registration/login.html | 23 +++++++++++++++---- 3 files changed, 31 insertions(+), 15 deletions(-) diff --git a/lostplaces/lostplaces_app/static/main.css b/lostplaces/lostplaces_app/static/main.css index d0c640b..87f6f12 100644 --- a/lostplaces/lostplaces_app/static/main.css +++ b/lostplaces/lostplaces_app/static/main.css @@ -100,7 +100,8 @@ body { border: none; padding: 8px 14px; border-radius: 2px; - font-weight: bold; } + font-weight: bold; + cursor: pointer; } .LP-Button:active { background-color: #76323F; color: #f9f9f9; } diff --git a/lostplaces/lostplaces_app/templates/place/place_delete.html b/lostplaces/lostplaces_app/templates/place/place_delete.html index af9e948..246fa69 100644 --- a/lostplaces/lostplaces_app/templates/place/place_delete.html +++ b/lostplaces/lostplaces_app/templates/place/place_delete.html @@ -4,15 +4,17 @@ {% block title %}Lost Place Deletion{% endblock %} {% block maincontent %} -
-
- Delete place + + +
+ Place löschen {% csrf_token %} -

Are you sure you want to delete {{place.name}}?

- {{ form.as_p }} -
- -
-
+
+

Are you sure you want to delete "{{place.name}}"?

+
+ +
+
+
{% endblock maincontent %} \ No newline at end of file diff --git a/lostplaces/templates/registration/login.html b/lostplaces/templates/registration/login.html index ffe8e03..15f0d77 100644 --- a/lostplaces/templates/registration/login.html +++ b/lostplaces/templates/registration/login.html @@ -5,11 +5,24 @@ {% block maincontent %} -

Login

-
- {% csrf_token %} - {{ form.as_p }} - + +
+ Login + {% csrf_token %} +
+
+ {% include 'partials/form/inputField.html' with field=form.username %} +
+
+ {% include 'partials/form/inputField.html' with field=form.password %} +
+
+ +
+ +
+
+
{% endblock maincontent %} \ No newline at end of file