0.1.333 upd 404_page and create conditions for unfound routes
This commit is contained in:
@@ -1240,7 +1240,7 @@
|
|||||||
|
|
||||||
.not_found_routes{
|
.not_found_routes{
|
||||||
width: 96%;
|
width: 96%;
|
||||||
height: 250px;
|
min-height: 250px;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
box-shadow: -1px 4px 10px 0 rgba(198, 199, 203, 0.20), 0 -1px 10px 0 rgba(198, 199, 203, 0.20);
|
box-shadow: -1px 4px 10px 0 rgba(198, 199, 203, 0.20), 0 -1px 10px 0 rgba(198, 199, 203, 0.20);
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -772,6 +772,20 @@ span.btn_profile_name {
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#create_route{
|
||||||
|
border-radius: 10px;
|
||||||
|
color: #FFFFFF;
|
||||||
|
background: #FF613A;
|
||||||
|
/*height: 60px;*/
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 500;
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 10px;
|
||||||
|
display: inline-block;
|
||||||
|
|
||||||
|
padding: 15px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Change color of dropdown links on hover */
|
/* Change color of dropdown links on hover */
|
||||||
.dropdown-content-lang a:hover {background-color: #f1f1f1}
|
.dropdown-content-lang a:hover {background-color: #f1f1f1}
|
||||||
|
|
||||||
@@ -2055,6 +2069,26 @@ button.cancel_remove.show, button.confirm_remove.show{
|
|||||||
|
|
||||||
|
|
||||||
/*Static_pages*/
|
/*Static_pages*/
|
||||||
|
|
||||||
|
.not_found_wrap{
|
||||||
|
padding-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.not_found_text{
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 52px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.not_found_title{
|
||||||
|
font-size: 60px;
|
||||||
|
}
|
||||||
|
.not_found_sub_title{
|
||||||
|
font-size: 26px;
|
||||||
|
}
|
||||||
|
|
||||||
#title_static{
|
#title_static{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 44px;
|
font-size: 44px;
|
||||||
|
|||||||
@@ -1,8 +1,27 @@
|
|||||||
{% extends "tb_base.html" %}
|
{% extends "tb_base.html" %}
|
||||||
|
{% load i18n %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
404
|
<div class="not_found_wrap">
|
||||||
|
<div class="not_found_text">
|
||||||
|
<div
|
||||||
|
class="not_found_title">
|
||||||
|
404
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="not_found_sub_title">
|
||||||
|
{% translate "Страница не найдена" %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="button_container">
|
||||||
|
<a
|
||||||
|
class="a_btn_standart"
|
||||||
|
href="{% url 'main' %}">
|
||||||
|
{% translate "Вернуться на главную" %}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -11,8 +11,43 @@
|
|||||||
<div class="text-align-center fw-700 font-large c-txt-b2 m-a w-80 m-t-8p">
|
<div class="text-align-center fw-700 font-large c-txt-b2 m-a w-80 m-t-8p">
|
||||||
{% blocktranslate %}
|
{% blocktranslate %}
|
||||||
Упс... <span class="orange-text">Ничего не найдено</span>, попробуйте
|
Упс... <span class="orange-text">Ничего не найдено</span>, попробуйте
|
||||||
изменить параметры поиска
|
изменить параметры поиска <span class="orange-text"> или создайте своё собственное объявление, чтобы все могли найти
|
||||||
{% endblocktranslate %}
|
{% endblocktranslate %}
|
||||||
|
|
||||||
|
{% if owner_type == "mover" %}
|
||||||
|
{% translate "Отправителя" %}
|
||||||
|
{% elif owner_type == "customer" %}
|
||||||
|
{% translate "Перевозчика" %}
|
||||||
|
{% endif %}
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{% if user.is_authenticated %}
|
||||||
|
<a
|
||||||
|
id="create_route"
|
||||||
|
{% if owner_type == "mover" %}
|
||||||
|
href="{% url 'profile_page' 'create_route_for_customer' %}"
|
||||||
|
{% elif owner_type == "customer" %}
|
||||||
|
href="{% url 'profile_page' 'create_route_for_mover' %}"
|
||||||
|
{% endif %}
|
||||||
|
>
|
||||||
|
{% translate "Создать объявление" %}
|
||||||
|
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if not user.is_authenticated %}
|
||||||
|
<a
|
||||||
|
id="create_route"
|
||||||
|
href="{% url "login_profile" %}"
|
||||||
|
>
|
||||||
|
{% translate " Войти и Создать объявление" %}
|
||||||
|
|
||||||
|
</a>
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<img class="boxes_not_fond_routes left" src="{% static "/img/boxes_for_not_found_routes/b_1.svg" %}">
|
<img class="boxes_not_fond_routes left" src="{% static "/img/boxes_for_not_found_routes/b_1.svg" %}">
|
||||||
<img class="boxes_not_fond_routes right" src="{% static "/img/boxes_for_not_found_routes/b_2.svg" %}">
|
<img class="boxes_not_fond_routes right" src="{% static "/img/boxes_for_not_found_routes/b_2.svg" %}">
|
||||||
|
|||||||
@@ -107,7 +107,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="wrapper_content {% if page.url == 'customer_service'%} m_h_0 {% elif page.url == 'contacts' %}m_h_0{% endif %}">
|
<div class="wrapper_content {% if page.url == 'customer_service'%} m_h_0 {% elif page.url == 'contacts' %}m_h_0{% elif request.path == '/test_404' %}m_h_0{% endif %}">
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user