From 35da421ad269bb227f55535cf799dad470b3cf22 Mon Sep 17 00:00:00 2001 From: ArtemB Date: Tue, 15 Aug 2023 15:10:40 +0300 Subject: [PATCH] 0.0.94 --- static/img/svg/loader.svg | 1 + static/js/user_profile.js | 1 + templates/blocks/profile/b_new_route.html | 55 ++++++++++++----------- 3 files changed, 31 insertions(+), 26 deletions(-) create mode 100644 static/img/svg/loader.svg diff --git a/static/img/svg/loader.svg b/static/img/svg/loader.svg new file mode 100644 index 0000000..c25d5f3 --- /dev/null +++ b/static/img/svg/loader.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/js/user_profile.js b/static/js/user_profile.js index c0c66c9..3e51df8 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -167,6 +167,7 @@ function confirmRemove(el) { function searchTown(el){ + if(el.value.length>=3){ let timer = null if (timer) { diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html index c848142..a9df2e1 100644 --- a/templates/blocks/profile/b_new_route.html +++ b/templates/blocks/profile/b_new_route.html @@ -59,35 +59,37 @@ {% if form.initial and form.initial.type_transport and form.initial.type_transport != '' %}
-
- +
+ - + - {% if not errors_off and form.errors and form.errors.departure_DT %} - {{ form.errors.departure_DT }} - {% endif %} -
-
- - - {% if not errors_off and form.errors and form.errors.arrival_DT %} - {{ form.errors.arrival_DT }} - {% endif %} + {% if not errors_off and form.errors and form.errors.departure_DT %} + {{ form.errors.departure_DT }} + {% endif %} + +
+
+ + + {% if not errors_off and form.errors and form.errors.arrival_DT %} + {{ form.errors.arrival_DT }} + {% endif %} +
+
-

@@ -118,6 +120,7 @@
+
{% if not errors_off and form.errors and form.errors.from_address_point %} {{ form.errors.from_address_point}}