From 7e4e1a3563d89e0c7ff235fa662dd89257afbcd4 Mon Sep 17 00:00:00 2001 From: borissedw Date: Mon, 31 Jul 2023 15:45:33 +0300 Subject: [PATCH] 0.0.3 --- static/css/styles(boris).css | 1 - static/css/styles.css | 4 ++++ static/js/user_profile(boris).js | 18 +++++++++++++++ static/js/user_profile.js | 11 ++++++---- templates/blocks/profile/b_create_ticket.html | 1 + .../blocks/profile/b_new_msg_to_support.html | 22 ++++++++++--------- templates/pages/profile/p_user_profile.html | 1 + 7 files changed, 43 insertions(+), 15 deletions(-) create mode 100644 static/js/user_profile(boris).js 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 %}
+ {% csrf_token %} diff --git a/templates/blocks/profile/b_new_msg_to_support.html b/templates/blocks/profile/b_new_msg_to_support.html index 207ddbe..c02329e 100644 --- a/templates/blocks/profile/b_new_msg_to_support.html +++ b/templates/blocks/profile/b_new_msg_to_support.html @@ -8,21 +8,23 @@

Техническая поддержка

-
-
- +
+
+
+ +
+
Время работы технической поддержки: ежедневно с 9:00 до 17:00
-
Время работы технической поддержки: ежедневно с 9:00 до 17:00
-
-
-
Мои обращения:
+
+
Мои обращения:
- {% include "widgets/w_request_tech_support.html" %} + {% include "widgets/w_request_tech_support.html" %} - {% include "widgets/w_request_tech_support.html" %} + {% include "widgets/w_request_tech_support.html" %} - {% include "widgets/w_request_tech_support.html" %} + {% include "widgets/w_request_tech_support.html" %} +
\ No newline at end of file diff --git a/templates/pages/profile/p_user_profile.html b/templates/pages/profile/p_user_profile.html index 0dea73d..71926f1 100644 --- a/templates/pages/profile/p_user_profile.html +++ b/templates/pages/profile/p_user_profile.html @@ -6,6 +6,7 @@ +