From d3a45393055c98fa28b1dd7aa287adee6bb1b33c Mon Sep 17 00:00:00 2001 From: ArtemB Date: Sat, 29 Jul 2023 17:50:32 +0300 Subject: [PATCH] 0.0.58 upd route_info --- static/css/styles.css | 81 +++++++++++++++++++- static/img/png/Airplane.png | Bin 0 -> 372 bytes static/img/png/Car.png | Bin 0 -> 330 bytes static/img/png/Scales.png | Bin 0 -> 508 bytes static/img/png/Tag.png | Bin 0 -> 346 bytes static/js/autocomlite.js | 9 +++ static/js/newRoute.js | 3 +- static/js/sendRoute.js | 39 ++++------ static/js/user_profile.js | 16 ++++ templates/blocks/profile/b_new_route.html | 1 + templates/widgets/w_route_info.html | 86 ++++++++++++++-------- 11 files changed, 174 insertions(+), 61 deletions(-) create mode 100644 static/img/png/Airplane.png create mode 100644 static/img/png/Car.png create mode 100644 static/img/png/Scales.png create mode 100644 static/img/png/Tag.png diff --git a/static/css/styles.css b/static/css/styles.css index 2c8a863..64c2910 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1118,10 +1118,16 @@ input#id_cargo_type{ width: 50%; } +.errorlist.hide { + display: none; +} + /*my routes*/ .my_route{ + width: 100%; + height: 296px; background-color: White; border-radius: 10px; margin: 2% 0 0 0; @@ -1129,16 +1135,85 @@ input#id_cargo_type{ } .route_info{ + vertical-align: top; border-style: inset; border-width: 1px; border-color: transparent #F8F8F8 transparent transparent; width: 59%; - float: left; + height: 280px; + display: inline-block; } +.route_info_about>span:first-child{ + background: url("/static/img/png/Tag.png") left center no-repeat; + margin: 0 20px 0 20px; + padding-left: 15px; + +} +.route_info_about>span:nth-child(2){ + background: url("/static/img/png/Scales.png") left center no-repeat; + padding-left: 20px; +} + +.route_info_about>span:last-child{ + background: url("/static/img/png/Airplane.png") left center no-repeat; + float: right; + margin-right: 20px; + padding-left: 15px; +} + .route_contact{ width: 40%; - float: right; + display: inline-block; } -/*my routes*/ +#edit_route { + display: block; + height: 44px; + width: 285px; + background: #FF613A; + color: #FFF; + font-family: Inter; + font-size: 18px; + font-style: normal; + font-weight: 600; + text-decoration: none; + line-height: 26px; + border-radius: 10px; + text-align: center; + margin-bottom: 5px; +} + +.button_remove_route { + display: inline-block; +} + + +button#remove_route { + height: 44px; + width: 285px; +} +.confirm_remove{ + width: 43% !important; + background: #ff0000a8; + border-radius: 10px; + color: white; + font-size: 18px; + font-style: normal; + font-weight: 600; + + + +} +button.cancel_remove{ + height: 44px; + width: 43%; + background: #808080cc; + border-radius: 10px; + color: white; + font-size: 18px; + font-style: normal; + font-weight: 600; +} + +/*my routes END*/ diff --git a/static/img/png/Airplane.png b/static/img/png/Airplane.png new file mode 100644 index 0000000000000000000000000000000000000000..d9b0ed7c1b97d81c627f92f28881abf01687eeb5 GIT binary patch literal 372 zcmeAS@N?(olHy`uVBq!ia0vp^JRr=$1|-8uW1a&k&H|6fVg?3oVGw3ym^DWND9BhG z3F*rlx4 z%9UibBfv4pF~;cn{^WE0wElxfnuYbAz z4t&6L#3x9At;jZF^T( zv;4^x)%doYna|ps*Isnu4*$BvP9uBYlhazfY~Rh|oionQR{kQR&w1g2kGf7lpHPwU zqO+$Q&eX2ZtIc}Do^onk_yVDNU*(rpZN)45d$a0-W>1f0K6AmVXp>yhhyPb)o7``G zU*q@u;=SGK?SU6+f2^JK;q9`&qWd_DJp zBI_}}Yg|j1y#=HVrX;Xe8OgnLu$r*AC}D1@p`ltDZ?VGZ^n3p|zu~fywDo7?d>9(+ zRd@ESm!-iqftyYb+Fjq?QBWvgjrgF^?)@s+^2D#{F=IepT-oCo}mfef#y)#O4E(EXQ4nD-AZe|s~O8(xezwd00vg@$O)yqu2dc!P# zuVZ-UkIQ*-S|#&-S(n-0Jo#Rt`kne`A+Jn{d);DYXS=HV8Upox?)FVdQ&MBb@07OoExBvhE literal 0 HcmV?d00001 diff --git a/static/img/png/Scales.png b/static/img/png/Scales.png new file mode 100644 index 0000000000000000000000000000000000000000..aacaf34c8f96caedf64cce6fb56b30703430f2e5 GIT binary patch literal 508 zcmVRMnpkI^xDBcL|Tt%bItlOvvI+3 z7Ha5AZBwEG=hI3=fHRG1OvqitoXin0WdmjJL8 z79=!w%LS{1(-jJAG6x_u_c-KI7b*NAam!j9k^@%xB5)UHh zl)_giY3_qGjW4)OB|gU*EM0$?Gs^@Ck^?|{-kzqLk!m;Wut|X@A&_As<_V%fLU+jKx3pbwL y4HgDX4C{yKZy>=A-TdbO?L=)a(Ve?=z`g)wah7^x!s(g-0000GZx^prwfgF}}M_)$E)e-c@N{P&(Njv*C{b0;3;J!HV+`j)FOo!M-G%!CEY zjTn_DY+@9?kavJZ!0aK5hfIUu42E|eGu{WNNG(;k8YFf6)8_rLi`b6+5;XRCc+A4q zCfH@S%BGav^Vt;*J$se}|J?Uzj(2_2j;B}kJ}(sWdt+1i<))lH!%3Z!o*9j^YYem& z?q-^#s&2>}&eCaVCCb2iU@Lp)xx&in`ThHMUu_gLTrTnJ*`zn$-o55;)VX=$(X2@} z#oOAOvV4~A4qS4#vtq9~M{dVrnbq+ujE}8eOzZBFdfSopsF`cWjyz+Xg{{ form.fields.from_place.label }}