diff --git a/ArticlesApp/views.py b/ArticlesApp/views.py index d9851f3..a9b1396 100644 --- a/ArticlesApp/views.py +++ b/ArticlesApp/views.py @@ -85,8 +85,8 @@ def ArticlesPageView(request, year=None): Dict = get_articles(art_kwargs=kwargs) Dict.update({ 'page': { - 'title': _('Новости сервиса доставки посылок | TWB'), - 'description': _('Обновления, полезные статьи и свежие новости от TWB ✓ Актуальные новости в мире доставок по всему СНГ ➡️ Следите за нашими новостями'), + 'title': _('Новости сервиса доставки посылок | TripWB'), + 'description': _('Обновления, полезные статьи и свежие новости от TripWB ✓ Актуальные новости в мире доставок по всему СНГ ➡️ Следите за нашими новостями'), 'keywords': _('Все новости сайта tripwb.com'), } }) diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po index 0a0bd9f..46da955 100644 --- a/locale/en/LC_MESSAGES/django.po +++ b/locale/en/LC_MESSAGES/django.po @@ -39,12 +39,12 @@ msgid "Статьи" msgstr "Articles" #: ArticlesApp/views.py:88 -msgid "Новости сервиса доставки посылок | TWB" -msgstr "Parcel Delivery Service News | TWB" +msgid "Новости сервиса доставки посылок | TripWB" +msgstr "Parcel Delivery Service News | TripWB" #: ArticlesApp/views.py:89 ArticlesApp/views.py:90 -msgid "Обновления, полезные статьи и свежие новости от TWB ✓ Актуальные новости в мире доставок по всему СНГ ➡️ Следите за нашими новостями" -msgstr "Updates, useful articles, and fresh news from TWB ✓ Current news in the world of deliveries throughout the CIS ➡️ Stay tuned for our updates" +msgid "Обновления, полезные статьи и свежие новости от TripWB ✓ Актуальные новости в мире доставок по всему СНГ ➡️ Следите за нашими новостями" +msgstr "Updates, useful articles, and fresh news from TripWB ✓ Current news in the world of deliveries throughout the CIS ➡️ Stay tuned for our updates" #: AuthApp/admin.py:52 diff --git a/static/css/mobile_styles.css b/static/css/mobile_styles.css index e15039d..f88e4b8 100644 --- a/static/css/mobile_styles.css +++ b/static/css/mobile_styles.css @@ -116,6 +116,10 @@ } @media (max-width: 1180px){ + .container_inf_about_moving{ + padding: 15px; + } + .input_list.find_route{ left: unset; width: 70%; @@ -1659,6 +1663,11 @@ } @media (max-width: 800px) { + + +.line_inf_about_moving{ + margin-bottom: 40px; +} .marker_messages_mobile{ position: absolute; top: 0; diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index 9f6bdb8..4355542 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -443,7 +443,7 @@ .block-chat{ width: 63%; - height: calc(100vh - 120px); + height: calc(100vh - 150px); border-radius: 10px; border: 1px solid #E6E6E6; background: #ffffff; @@ -2523,7 +2523,7 @@ a.open_inf_carrier{ background: #FFFFFF; border-radius: 10px; max-height: calc(100vh - 125px); - overflow: unset; + /*overflow: unset;*/ left: -19px; top: 0; } @@ -2596,6 +2596,9 @@ a.open_inf_carrier{ .menu_buttons.right.open .menu_profile{ padding-top: 45px; } +.menu_buttons.right.padding_remove.open .menu_profile{ + padding-top: unset; +} diff --git a/static/img/svg/Instagram.svg b/static/img/svg/Instagram.svg index 625c5c5..673aaf7 100644 --- a/static/img/svg/Instagram.svg +++ b/static/img/svg/Instagram.svg @@ -1,17 +1,17 @@ - + - + - - + + diff --git a/static/img/svg/Telegram.svg b/static/img/svg/Telegram.svg index 13e2e9d..db488df 100644 --- a/static/img/svg/Telegram.svg +++ b/static/img/svg/Telegram.svg @@ -1,17 +1,17 @@ - + - + - - + + diff --git a/static/img/svg/Youtube.svg b/static/img/svg/Youtube.svg new file mode 100644 index 0000000..45fc160 --- /dev/null +++ b/static/img/svg/Youtube.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/img/svg/facebook.svg b/static/img/svg/facebook.svg index ebe59ce..5e57501 100644 --- a/static/img/svg/facebook.svg +++ b/static/img/svg/facebook.svg @@ -1,17 +1,17 @@ - - + + - + - - + + diff --git a/static/img/svg/tiktok.svg b/static/img/svg/tiktok.svg new file mode 100644 index 0000000..cbbed6b --- /dev/null +++ b/static/img/svg/tiktok.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/img/svg/vk.svg b/static/img/svg/vk.svg new file mode 100644 index 0000000..712c1d5 --- /dev/null +++ b/static/img/svg/vk.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/js/registration.js b/static/js/registration.js index 422e3a8..a747787 100644 --- a/static/js/registration.js +++ b/static/js/registration.js @@ -20,6 +20,16 @@ function SendRegistrationForm(el){ // location.href = `/profile/page/dashboard/` window.sessionStorage.removeItem('mailingSubscribeRequired') window.sessionStorage.removeItem('email') + + + if(typeof ym === 'function'){ + ym(97070898,'reachGoal','Registration') + return true; + }else { + console.log('Скрипт Яндекс.Метрики не найден. Статистика не будет отправлена.'); + } + + }, error: function (data, exception){ document.querySelector(".register").innerHTML = data.responseJSON.html diff --git a/static/js/user_profile.js b/static/js/user_profile.js index c7b6747..f0101cd 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -541,7 +541,7 @@ function sendRoute(el, routeID = null){ // if (selected_owner_type[0].classList.contains('selected')){ // // }else{} - let owner_type_value = document.getElementById('hide_owner_type').value + let owner_type_value = document.getElementById('hide_owner_type').value let form = el.form let formData = new FormData(form); @@ -596,6 +596,18 @@ function sendRoute(el, routeID = null){ my_routes.classList.add('selected') middleWareJS() + if(owner_type_value === 'customer' && typeof ym === 'function' ){ + ym(97070898,'reachGoal','customer') + return true + } else if(owner_type_value === 'mover' && typeof ym === 'function'){ + ym(97070898,'reachGoal','mover') + return true + } + + + // + + }, error: function (data, exception){ document.querySelector(".info_profile").innerHTML = data.responseJSON.html; @@ -1067,6 +1079,8 @@ function RequestCommercialOffer (el){ data: formData, success: function(data){ + + // el.style.background = '#FF613A'; el.removeAttribute('style') @@ -1093,6 +1107,14 @@ function RequestCommercialOffer (el){ let hide_error_msg = document.getElementById('error_footer').classList.add('hide') } + if(typeof ym === 'function'){ + ym(97070898,'reachGoal','Message'); + return true; + }else { + console.log('Скрипт Яндекс.Метрики не найден. Статистика не будет отправлена.'); + } + + }, error: function (data, exception){ // document.querySelector(".login").innerHTML = data.responseJSON.html diff --git a/static/vk.svg b/static/vk.svg new file mode 100644 index 0000000..f70f8ee --- /dev/null +++ b/static/vk.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/blocks/b_footer.html b/templates/blocks/b_footer.html index aeff61e..a40ad90 100644 --- a/templates/blocks/b_footer.html +++ b/templates/blocks/b_footer.html @@ -17,9 +17,11 @@
@@ -62,7 +64,10 @@ {% if not user.is_authenticated %}
- {% trans "Регистрация" %} + {% trans "Регистрация" %} {% trans "Войти" %}
{% endif %} @@ -78,7 +83,7 @@
-
Copyright © 2023. {% trans "Все права защищены." %}
+
Copyright © 2023-{% now "Y" %}. {% trans "Все права защищены." %}
{% trans "Публичная оферта" %} diff --git a/templates/blocks/b_header.html b/templates/blocks/b_header.html index d7c6527..df67331 100644 --- a/templates/blocks/b_header.html +++ b/templates/blocks/b_header.html @@ -106,6 +106,7 @@
{% trans "Регистрация" %} diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html index e537e68..80f4980 100644 --- a/templates/blocks/profile/b_new_route.html +++ b/templates/blocks/profile/b_new_route.html @@ -463,7 +463,7 @@ {% endif %}
- +
diff --git a/templates/forms/f_feedback_form.html b/templates/forms/f_feedback_form.html index 02d8103..3348bf4 100644 --- a/templates/forms/f_feedback_form.html +++ b/templates/forms/f_feedback_form.html @@ -5,13 +5,15 @@
+ {% if form.form_name %}data-name="{{ form.form_name}}"{% endif %}> +
{{ form.errors.text_msg }} {% endif %}
- +
@@ -80,8 +82,4 @@ -
- - - - +
\ No newline at end of file diff --git a/templates/forms/f_registration.html b/templates/forms/f_registration.html index b1ee7d1..7d2f4f6 100644 --- a/templates/forms/f_registration.html +++ b/templates/forms/f_registration.html @@ -9,7 +9,12 @@

{% translate "Регистрация" %}

-
+ {% csrf_token %} @@ -108,7 +113,7 @@ {% endif %}
- +
{% trans 'На Вашу почту отправлено письмо для подтверждения регистрации.' %}
diff --git a/templates/pages/profile/p_user_profile.html b/templates/pages/profile/p_user_profile.html index f386b75..12914ad 100644 --- a/templates/pages/profile/p_user_profile.html +++ b/templates/pages/profile/p_user_profile.html @@ -4,9 +4,9 @@ {% block title %} {% if page_name == 'create_route_for_customer' %} - {% trans 'Отправить посылку в другие города| TWB' %} + {% trans 'Отправить посылку в другие города| TripWB' %} {% elif page_name == 'create_route_for_mover' %} - {% trans 'Перевезти посылку в другие города | TWB' %} + {% trans 'Перевезти посылку в другие города | TripWB' %} {% endif %} {% endblock %} diff --git a/templates/tb_base.html b/templates/tb_base.html index 08bae45..92a56bd 100644 --- a/templates/tb_base.html +++ b/templates/tb_base.html @@ -143,7 +143,7 @@ {% include 'blocks/b_header.html' %}
-