From 06b768626471af6ee3bce8fc1b4e57c0263e62e6 Mon Sep 17 00:00:00 2001 From: reverend Date: Mon, 10 Aug 2020 19:06:45 +0200 Subject: [PATCH] Adjusted template --- lostplaces/lostplaces_app/static/main.css | 5 +- .../templates/placeOverview.html | 103 ++++++------------ 2 files changed, 37 insertions(+), 71 deletions(-) diff --git a/lostplaces/lostplaces_app/static/main.css b/lostplaces/lostplaces_app/static/main.css index 3d6efa1..d0c640b 100644 --- a/lostplaces/lostplaces_app/static/main.css +++ b/lostplaces/lostplaces_app/static/main.css @@ -18,10 +18,11 @@ body { .LP-Main { display: table; flex-direction: row-reverse; - height: calc(100% - 61px); } + height: calc(100% - 61px); + width: 100%; } .LP-Main .LP-Main__Content { display: table-cell; - width: calc(100% -300px); + width: calc(100% - 300px); min-height: 1px; padding: 25px; } .LP-Main .LP-Main__Sidebar { diff --git a/lostplaces/lostplaces_app/templates/placeOverview.html b/lostplaces/lostplaces_app/templates/placeOverview.html index 47a92b4..fc44054 100644 --- a/lostplaces/lostplaces_app/templates/placeOverview.html +++ b/lostplaces/lostplaces_app/templates/placeOverview.html @@ -5,79 +5,44 @@ {% block title %}{{place.name}}{% endblock %} {% block maincontent %} +
+
+

{{ place.name }}

+ {% if place.images.first.filename.hero.url %} +
+ +
+ {% endif %} +
- -
-
- {% if place.images.first.filename.hero.url %} -
- -
- {% endif %} -
-
-

{{place.name}}

-

{{place.description}}

-
-
+
+

{{ place.description }}

-
-

Sicherheitsmaßnahmen

-
-
-
-
    -
  • -
    -

    Kamera

    -
    -
  • -
  • -
    -

    Wachhund

    -
    -
  • -
  • -
    -

    Zaun

    -
    -
  • -
  • -
    -

    Security

    -
    -
  • -
-
-
+ +
+

Map-Links

+ -
-
-

Links

-
-
- -
+ + +
+

Bilder

+
+
    + {% for place_image in place.images.all %} +
  • + +
  • + {% endfor %} +
-
-
-

Bilder

-
-
-
    - {% for place_image in place.images.all %} -
  • - -
  • - {% endfor %} -
-
-
-
+ +
{% endblock maincontent %} \ No newline at end of file