From 21b959e6a33716d5a22ae08b3d1b9f17f35537d7 Mon Sep 17 00:00:00 2001 From: SBD Date: Sun, 3 Dec 2023 16:09:24 +0300 Subject: [PATCH 1/6] 0.8.461 --- static/css/styles(boris).css | 6 ++++++ templates/blocks/profile/b_profile_first_page.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index 287fc6a..dcd277f 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -2875,4 +2875,10 @@ color: #f00; margin-bottom: 20px; display: block; +} + +/*b_profile_first_page*/ + +.title_b_first_page{ + margin-top: 70px; } \ No newline at end of file diff --git a/templates/blocks/profile/b_profile_first_page.html b/templates/blocks/profile/b_profile_first_page.html index 1a26764..d60f477 100644 --- a/templates/blocks/profile/b_profile_first_page.html +++ b/templates/blocks/profile/b_profile_first_page.html @@ -1,7 +1,7 @@ {% load static %} {% load i18n %} -

{% translate "Добро пожаловать:" %} {{ user.first_name }} {{ user.last_name }} ({{ user.username }})

+

{% translate "Добро пожаловать:" %} {{ user.first_name }} {{ user.last_name }} ({{ user.username }})

From f0681825579e8187e8c036ea134476b4318469ff Mon Sep 17 00:00:00 2001 From: SDE Date: Sun, 3 Dec 2023 16:37:24 +0300 Subject: [PATCH 2/6] 0.8.28 switch off passanger in airport route --- RoutesApp/funcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RoutesApp/funcs.py b/RoutesApp/funcs.py index 0cd4c08..34ceecc 100644 --- a/RoutesApp/funcs.py +++ b/RoutesApp/funcs.py @@ -36,7 +36,6 @@ def get_profile_new_route_page_html(request, data): ) cargo_type_choices = ( - ('passenger', _('Пассажир')), ('cargo', _('Груз')), ('parcel', _('Бандероль')), ('package', _('Посылка')), @@ -51,6 +50,7 @@ def get_profile_new_route_page_html(request, data): ) cargo_type_choices = ( + ('passenger', _('Пассажир')), ('cargo', _('Груз')), ('parcel', _('Бандероль')), ('package', _('Посылка')), From 7fd2c60ddbc8a6353e2096d8675a57627a0427fb Mon Sep 17 00:00:00 2001 From: SBD Date: Sun, 3 Dec 2023 16:53:23 +0300 Subject: [PATCH 3/6] 0.8.462 --- static/js/user_profile_2.js | 6 ++++-- templates/blocks/profile/b_new_route.html | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index be0c599..42c8c2a 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -92,8 +92,10 @@ function select_tab_profile (el,url,owner_type=null) { function selectTabProfileIfHisNotSelected (url) { - let el_f_select = document.querySelector(`[data-ajax-url=${url}]`) - el_f_select.classList.add('selected') + if (url !== 'new_route_view') { + let el_f_select = document.querySelector(`[data-ajax-url=${url}]`) + el_f_select.classList.add('selected') + } } function clickONTHEAPROfileBTN (el) { diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html index 8167f3d..88eb714 100644 --- a/templates/blocks/profile/b_new_route.html +++ b/templates/blocks/profile/b_new_route.html @@ -60,7 +60,7 @@
- + {#
- + {#
- +
- + Date: Sun, 3 Dec 2023 17:09:16 +0300 Subject: [PATCH 4/6] 0.8.463 --- templates/blocks/profile/b_new_route.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html index 88eb714..2d4485e 100644 --- a/templates/blocks/profile/b_new_route.html +++ b/templates/blocks/profile/b_new_route.html @@ -131,6 +131,7 @@ class="from_address_point_txt post_route el_form_b_new_route" {% if form.fields.from_address_point.required %} required{% endif %} id="id_from_address_point_txt" + placeholder="{% translate "Выберите страну и город" %}" {% if form.initial.from_address_point_txt %}value="{{ form.initial.from_address_point_txt }}"{% endif %} /> @@ -166,6 +167,7 @@ {% if form.fields.to_address_point.required %} required{% endif %} id="id_to_address_point_txt" class="to_address_point_txt post_route el_form_b_new_route" + placeholder="{% translate "Выберите страну и город" %}" {% if form.initial.to_address_point_txt %}value="{{ form.initial.to_address_point_txt}}"{% endif %} /> From 92b92f2d65f9baa2f10b07c5a838ac1c9804bb82 Mon Sep 17 00:00:00 2001 From: SDE Date: Sun, 3 Dec 2023 17:12:32 +0300 Subject: [PATCH 5/6] 0.8.29 admin airport change city --- ReferenceDataApp/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ReferenceDataApp/admin.py b/ReferenceDataApp/admin.py index 2d5e239..3b2bf3e 100644 --- a/ReferenceDataApp/admin.py +++ b/ReferenceDataApp/admin.py @@ -61,8 +61,8 @@ class Admin_Airport(Admin_Trans_BaseModel): 'order', 'modifiedDT', 'createDT'] search_fields = ['id', 'name_en', 'name_ru', 'city__name', 'city__country__name', 'iata_code', 'icao_code', 'international_name'] list_filter = ['city__country'] - raw_id_fields = [ - 'city' - ] + # raw_id_fields = [ + # 'city' + # ] admin.site.register(Airport, Admin_Airport) \ No newline at end of file From 66d718327890c035a61d72031ed39f97c8f4e880 Mon Sep 17 00:00:00 2001 From: SBD Date: Sun, 3 Dec 2023 17:12:35 +0300 Subject: [PATCH 6/6] 0.8.464 --- templates/blocks/profile/b_profile.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/blocks/profile/b_profile.html b/templates/blocks/profile/b_profile.html index 0c71608..1d2fa2a 100644 --- a/templates/blocks/profile/b_profile.html +++ b/templates/blocks/profile/b_profile.html @@ -41,7 +41,7 @@
- + {% if profileForm.errors.email %}
{{ profileForm.errors.email }}
{% endif %}