0.8.398
This commit is contained in:
@@ -740,14 +740,19 @@
|
|||||||
/*padding: 20px;*/
|
/*padding: 20px;*/
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.name_ticket > span{
|
.name_ticket > span{
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
display: block;
|
display: block;
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
text-wrap: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
width: calc(100% - 18px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.insert_users{
|
.insert_users{
|
||||||
@@ -2605,10 +2610,10 @@
|
|||||||
.menu_profile{
|
.menu_profile{
|
||||||
width: 320px;
|
width: 320px;
|
||||||
text-align: -webkit-center;
|
text-align: -webkit-center;
|
||||||
padding: 14px 0;
|
padding: 0;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
height: calc(100vh - 120px);
|
height: calc(100vh - 120px);
|
||||||
max-height: 667px;
|
max-height: 697px;
|
||||||
background: #F8F8F8;
|
background: #F8F8F8;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2637,7 +2642,16 @@
|
|||||||
/*font-size: 12px;*/
|
/*font-size: 12px;*/
|
||||||
line-height: 13px;
|
line-height: 13px;
|
||||||
}
|
}
|
||||||
|
.menu_profile>div>.logout{
|
||||||
|
height: 100%;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
.logout_span{
|
||||||
|
position: absolute;
|
||||||
|
top: 20px;
|
||||||
|
left: 42%;
|
||||||
|
}
|
||||||
/*left panel of users*/
|
/*left panel of users*/
|
||||||
|
|
||||||
.menu_buttons.left.close .container_block_list_of_users{
|
.menu_buttons.left.close .container_block_list_of_users{
|
||||||
|
|||||||
@@ -1181,6 +1181,7 @@ h2.title_new_route{
|
|||||||
position: unset;
|
position: unset;
|
||||||
height: unset;
|
height: unset;
|
||||||
width: 274px;
|
width: 274px;
|
||||||
|
padding-top: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*.menu_profile>div>a {*/
|
/*.menu_profile>div>a {*/
|
||||||
|
|||||||
@@ -22,7 +22,9 @@ function select_tab_profile (el,url,owner_type=null) {
|
|||||||
} else if (url.includes('get_routes')){
|
} else if (url.includes('get_routes')){
|
||||||
confirm_url = `/routes/${url}/`
|
confirm_url = `/routes/${url}/`
|
||||||
}
|
}
|
||||||
document.querySelector(".info_profile").innerHTML = '<img src="/static/img/svg/loader.svg" style="height: 30px;position: absolute;top: 50%;left: 50%;"/>'
|
if (window.location.href.includes("profile")){
|
||||||
|
document.querySelector(".info_profile").innerHTML = '<img src="/static/img/svg/loader.svg" style="height: 30px;position: absolute;top: 50%;left: 50%;"/>'
|
||||||
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||||
url: confirm_url,
|
url: confirm_url,
|
||||||
@@ -706,7 +708,7 @@ function open_overlay (curtain) {
|
|||||||
overlay.classList.toggle('hidden')
|
overlay.classList.toggle('hidden')
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (document.querySelector(".menu_buttons.left.open") && curtain.classList.contains('open')){
|
if (!document.querySelector(".menu_buttons.left.first.open") && document.querySelector(".menu_buttons.left.open") && curtain.classList.contains('open')){
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
overlay.classList.toggle("show")
|
overlay.classList.toggle("show")
|
||||||
@@ -716,6 +718,7 @@ function open_overlay (curtain) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function toggle_cut_width_curtain (el) {
|
function toggle_cut_width_curtain (el) {
|
||||||
let parent = el.parentNode
|
let parent = el.parentNode
|
||||||
parent.classList.toggle('open')
|
parent.classList.toggle('open')
|
||||||
@@ -763,11 +766,13 @@ function close_open_curtain (){
|
|||||||
last_open_curtain.classList.toggle('open')
|
last_open_curtain.classList.toggle('open')
|
||||||
last_open_curtain.classList.toggle('close')
|
last_open_curtain.classList.toggle('close')
|
||||||
open_overlay(last_open_curtain)
|
open_overlay(last_open_curtain)
|
||||||
|
toggle_cut_width_curtain(last_open_curtain)
|
||||||
} else if (window.location.href.includes('profile')) {
|
} else if (window.location.href.includes('profile')) {
|
||||||
let curtain = document.querySelector('.menu_buttons.right')
|
let curtain = document.querySelector('.menu_buttons.right')
|
||||||
curtain.classList.toggle('open')
|
curtain.classList.toggle('open')
|
||||||
curtain.classList.toggle('close')
|
curtain.classList.toggle('close')
|
||||||
open_overlay(curtain)
|
open_overlay(curtain)
|
||||||
|
toggle_cut_width_curtain(curtain)
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -775,8 +780,19 @@ function close_open_curtain (){
|
|||||||
curtain.classList.toggle("open")
|
curtain.classList.toggle("open")
|
||||||
curtain.classList.toggle("close")
|
curtain.classList.toggle("close")
|
||||||
open_overlay(curtain)
|
open_overlay(curtain)
|
||||||
|
toggle_cut_width_curtain(curtain)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function reAdressClickOnbackrground (event,el) {
|
||||||
|
// let overlay = document.querySelector(".block_overlay")
|
||||||
|
let element_click = document.elementFromPoint(event.pageX, event.pageY)
|
||||||
|
if (!element_click || element_click === el){
|
||||||
|
element_click = document.querySelector(".block_overlay")
|
||||||
|
}
|
||||||
|
element_click.click()
|
||||||
}
|
}
|
||||||
|
|
||||||
// function show_header_list () {
|
// function show_header_list () {
|
||||||
|
|||||||
@@ -56,9 +56,9 @@
|
|||||||
<div class="block_overlay {% if page_type == 'profile' %}show{% elif page_type == 'routes' %} routes n_profile hidden{% else %}hidden n_profile{% endif %}" onclick="close_open_curtain()"></div>
|
<div class="block_overlay {% if page_type == 'profile' %}show{% elif page_type == 'routes' %} routes n_profile hidden{% else %}hidden n_profile{% endif %}" onclick="close_open_curtain()"></div>
|
||||||
<div class="wrapper_main">
|
<div class="wrapper_main">
|
||||||
|
|
||||||
{% include 'blocks/b_header.html' %}
|
{% include 'blocks/b_header.html' %}s
|
||||||
|
|
||||||
<div class="cut_width_f_curtain close{% if page_type == 'profile' %}{% else %} n_profile{% endif %} right">
|
<div class="cut_width_f_curtain close{% if page_type == 'profile' %}{% else %} n_profile{% endif %} right" onclick="reAdressClickOnbackrground(event,this)">
|
||||||
<div class="menu_buttons curtain right {% if page_type == 'profile' %}open{% else %} n_profile close{% endif %}" data-name="<img style='width: 25px;display: block;position: relative;bottom: 2px;transform: rotate(270deg);' src='{% static "/img/svg/burger.svg" %}'>">
|
<div class="menu_buttons curtain right {% if page_type == 'profile' %}open{% else %} n_profile close{% endif %}" data-name="<img style='width: 25px;display: block;position: relative;bottom: 2px;transform: rotate(270deg);' src='{% static "/img/svg/burger.svg" %}'>">
|
||||||
|
|
||||||
{% include "blocks/profile/b_buttons_menu_profile.html" %}
|
{% include "blocks/profile/b_buttons_menu_profile.html" %}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<div
|
<div
|
||||||
{% if dom_id %}id="{{ dom_id }}"{% endif %}
|
{% if dom_id %}id="{{ dom_id }}"{% endif %}
|
||||||
{% if ajax_url %}onclick="select_tab_profile(this,'{{ ajax_url }}'{% if owner_type %},'{{ owner_type }}'{% endif %})"{% endif %}
|
{% if ajax_url and page_type == 'profile' %}onclick="select_tab_profile(this,'{{ ajax_url }}'{% if owner_type %},'{{ owner_type }}'{% endif %})"{% endif %}
|
||||||
{% if page_name == sel_page_name %}
|
{% if page_name == sel_page_name %}
|
||||||
class="selected"
|
class="selected"
|
||||||
{% endif %} >
|
{% endif %} >
|
||||||
@@ -9,13 +9,16 @@
|
|||||||
{% if page_type and page_type == 'profile' or not sel_page_name %}
|
{% if page_type and page_type == 'profile' or not sel_page_name %}
|
||||||
|
|
||||||
{% if sel_page_name == 'logout' %}
|
{% if sel_page_name == 'logout' %}
|
||||||
<a href="/profile/logout/" class="text_btn_profile">
|
<a href="/profile/logout/" class="text_btn_profile logout">
|
||||||
|
<span class="logout_span">
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="text_btn_profile">
|
<span class="text_btn_profile">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if sel_page_name == 'logout' %}
|
||||||
{% if sel_page_name != 'logoout' %}
|
<a href="/profile/logout/" class="text_btn_profile logout">
|
||||||
|
<span class="logout_span">
|
||||||
|
{% elif sel_page_name != 'logoout' %}
|
||||||
<a href="{% url "profile_page" sel_page_name %}" class="text_btn_profile">
|
<a href="{% url "profile_page" sel_page_name %}" class="text_btn_profile">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -29,6 +32,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page_type and page_type == 'profile' or not sel_page_name %}
|
{% if page_type and page_type == 'profile' or not sel_page_name %}
|
||||||
{% if sel_page_name == 'logout' %}
|
{% if sel_page_name == 'logout' %}
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user