From dcead848c273d5b4b7f134ce8facee3d2ce599fa Mon Sep 17 00:00:00 2001 From: borissedw Date: Fri, 4 Aug 2023 16:15:54 +0300 Subject: [PATCH] 0.0.36 --- static/css/styles(boris).css | 57 +++++++++++++++++++ templates/pages/p_results_find_route.html | 5 ++ .../carrier_card/inf_about_moving.html | 10 ++++ templates/widgets/w_carrier_card.html | 27 +++++++++ 4 files changed, 99 insertions(+) create mode 100644 templates/small_INCLUDES/carrier_card/inf_about_moving.html create mode 100644 templates/widgets/w_carrier_card.html diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index 7e000e1..6debae9 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -26,6 +26,10 @@ margin: auto; } +.clear_both{ + clear: both; +} + /**/ .title-profile-cont{ @@ -672,4 +676,57 @@ .block-filters-find-route{ min-height: 660px; + background: #FFFFFF; + box-shadow: -1px 4px 10px 0 rgba(198, 199, 203, 0.20), 0 -1px 10px 0 rgba(198, 199, 203, 0.20); + width: 30%; + float: left; +} + +.block-finded-routes{ + width: 68%; + float: right; + /*display: inline-block;*/ +} + +.carrier-card{ + width: 100%; + /*height: 830px;*/ + background: #FFFFFF; + box-shadow: -1px 4px 10px 0 rgba(198, 199, 203, 0.20), 0 -1px 10px 0 rgba(198, 199, 203, 0.20); + margin-bottom: 20px; + border-radius: 10px; + padding: 20px; +} + +.left-part-carrier-card{ + width: 70%; + float: left; +} + +.first-line-card-carrier{ + margin-bottom: 20px; +} + +.carrier-title{ + font-size: 20px; + font-weight: 500; + color: #272424; + width: 50%; + float: left; + text-align: left; + display: block; +} + +.type_transportation_carrier{ + width: 50%; + float: right; + text-align: -webkit-right; + display: block; +} + +.from-to-country-container-carrier{ + width: 90%; + margin: auto; + background: #F8F8F8; + box-shadow: -1px 4px 10px 0 rgba(198, 199, 203, 0.20), 0 -1px 10px 0 rgba(198, 199, 203, 0.20); } \ No newline at end of file diff --git a/templates/pages/p_results_find_route.html b/templates/pages/p_results_find_route.html index 15e77fd..a03456d 100644 --- a/templates/pages/p_results_find_route.html +++ b/templates/pages/p_results_find_route.html @@ -13,8 +13,13 @@
+ {% for route in routes %} + {% include "widgets/w_carrier_card.html" %} + {% endfor %} +
+
diff --git a/templates/small_INCLUDES/carrier_card/inf_about_moving.html b/templates/small_INCLUDES/carrier_card/inf_about_moving.html new file mode 100644 index 0000000..d9224fb --- /dev/null +++ b/templates/small_INCLUDES/carrier_card/inf_about_moving.html @@ -0,0 +1,10 @@ +{% load static %} +
+
+ +
+ +
+ +
+
\ No newline at end of file diff --git a/templates/widgets/w_carrier_card.html b/templates/widgets/w_carrier_card.html new file mode 100644 index 0000000..8c1c504 --- /dev/null +++ b/templates/widgets/w_carrier_card.html @@ -0,0 +1,27 @@ +{% load static %} +
+
+
+
+ Перевозчик: +
+
+ {{ route.get_type_transport_display }} +
+
+
+
+ {{ route.get_from_place_display }} +
+
+
+ {{ route.get_to_place_display }} +
+
+ {% include "small_INCLUDES/carrier_card/inf_about_moving.html" %} +
+
+ +
+
+
\ No newline at end of file