diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index a695aef..15395cb 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -90,7 +90,6 @@ .el-form-create-ticket{ width: 100%; height: 60px; - background: #FFFFFF; filter: drop-shadow(-1px 4px 10px rgba(198, 199, 203, 0.20)) drop-shadow(0px -1px 10px rgba(198, 199, 203, 0.20)); border-radius: 3px; } \ No newline at end of file diff --git a/static/css/styles.css b/static/css/styles.css index ae5b990..099b7e4 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -216,6 +216,10 @@ section.register>h1 { line-height: 22px; } +@font-face { + font-family: "mr_NorwesterG"; + src: url("/static/fonts/mr_NorwesterG.ttf"); +} .first-column>div:nth-child(2)>div:first-child { color: #FFF; diff --git a/static/js/user_profile(boris).js b/static/js/user_profile(boris).js new file mode 100644 index 0000000..addbea2 --- /dev/null +++ b/static/js/user_profile(boris).js @@ -0,0 +1,18 @@ +function createTicketShow () { + $.ajax({ + headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() }, + url: '/ru/user_account/support_create_ticket_ajax/', + type: "POST", + // async: true, + cache: false, + processData: false, + contentType: false, + // enctype: 'json', + // data: formData, + success: function(data){ + + document.querySelector(".insert-tech-place").innerHTML = data.html; + + }, + }); +} \ No newline at end of file diff --git a/static/js/user_profile.js b/static/js/user_profile.js index ee7e0fc..2f18ddb 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -100,14 +100,17 @@ function confirmRemove(el) { // if(!new_button){ // } - if(!el.classList.contains('confirm_remove')){ - el.classList.add('confirm_remove') - el.innerText = 'Подтвердить удаление' + el.setAttribute("id", "select-remove"); + let btn = document.querySelector("#select-remove"); + + if(!btn.classList.contains('confirm_remove')){ + btn.classList.add('confirm_remove') + btn.innerText = 'Подтвердить удаление' let place = document.querySelector('.button_remove_route') let cancel_button = document.createElement('button') cancel_button.className = "cancel_remove"; cancel_button.innerText = "Отменить удаление"; - place.appendChild(cancel_button); + btn.appendChild(cancel_button); } } diff --git a/templates/blocks/profile/b_create_ticket.html b/templates/blocks/profile/b_create_ticket.html index 49a937e..ac0ca25 100644 --- a/templates/blocks/profile/b_create_ticket.html +++ b/templates/blocks/profile/b_create_ticket.html @@ -1,5 +1,6 @@ {% load static %}