From 693bee3aae012107972c6125e56e735df2e505aa Mon Sep 17 00:00:00 2001 From: SBD Date: Sat, 9 Dec 2023 20:41:37 +0300 Subject: [PATCH] 0.0.103 --- static/aerbimCSS.css | 18 ++++++++++++++---- static/aerbimJS.js | 2 +- templates/blocks/b_feedback.html | 2 +- templates/forms/f_feedback.html | 11 ++--------- templates/widgets/elements_form_feedback.html | 8 ++++++++ templates/widgets/w_checkbox_f_feedback.html | 4 ++++ 6 files changed, 30 insertions(+), 15 deletions(-) create mode 100644 templates/widgets/elements_form_feedback.html create mode 100644 templates/widgets/w_checkbox_f_feedback.html diff --git a/static/aerbimCSS.css b/static/aerbimCSS.css index 7e9bfe5..ea9045f 100644 --- a/static/aerbimCSS.css +++ b/static/aerbimCSS.css @@ -489,9 +489,13 @@ body.n_scroll{ font-size: 16px; font-weight: 500; outline: none; - padding-bottom: 15px; + padding-bottom: 5px; padding-left: 20px; - margin-bottom: 20px; + margin-bottom: 25px; +} + +.input_form_feedback.error{ + border-bottom: 1px solid #FF3F20; } .input_form_feedback::placeholder{ @@ -501,7 +505,7 @@ body.n_scroll{ .label_feedback_form{ color: #9a9a9a; padding-left: 20px; - padding-bottom: 15px; + padding-bottom: 5px; display: block; font-weight: 400; font-size: 16px; @@ -515,6 +519,12 @@ body.n_scroll{ min-width: calc(100% - 20px); outline: none; padding: 20px 0 20px 20px; + font-size: 16px; + font-family: -apple-system, 'Roboto', sans-serif; +} + +.textarea_form_feedback.error{ + border: 1px solid #FF3F20; } .description_form_feedback_txt{ @@ -561,7 +571,7 @@ body.n_scroll{ } .check_box_form_feedback{ - border: 1px solid #000000; + border: 1px solid #9a9a9a; background: none; display: inline-block; width: 15px; diff --git a/static/aerbimJS.js b/static/aerbimJS.js index d9b5e52..6f1df07 100644 --- a/static/aerbimJS.js +++ b/static/aerbimJS.js @@ -253,7 +253,7 @@ function sendFormfeedback (el){ document.querySelector(".container_content_form_feedback").innerHTML = data.html }, error: function (data){ - document.querySelector(".container_content_form_feedback").innerHTML = data.html + document.querySelector(".container_content_form_feedback").innerHTML = data.responseJSON.html } }); } \ No newline at end of file diff --git a/templates/blocks/b_feedback.html b/templates/blocks/b_feedback.html index 681aa3a..622a5ee 100644 --- a/templates/blocks/b_feedback.html +++ b/templates/blocks/b_feedback.html @@ -2,7 +2,7 @@ {% load i18n %}
-
+
diff --git a/templates/forms/f_feedback.html b/templates/forms/f_feedback.html index d5c3c64..771bf7e 100644 --- a/templates/forms/f_feedback.html +++ b/templates/forms/f_feedback.html @@ -7,17 +7,10 @@ {{ block.description|linebreaksbr }}
- - -
+ {% include 'widgets/w_checkbox_f_feedback.html' %}
- - - - - - + {% include 'widgets/elements_form_feedback.html' %}
\ No newline at end of file diff --git a/templates/widgets/elements_form_feedback.html b/templates/widgets/elements_form_feedback.html new file mode 100644 index 0000000..533ed4c --- /dev/null +++ b/templates/widgets/elements_form_feedback.html @@ -0,0 +1,8 @@ +{% load static %} + + +
+ + + + \ No newline at end of file diff --git a/templates/widgets/w_checkbox_f_feedback.html b/templates/widgets/w_checkbox_f_feedback.html new file mode 100644 index 0000000..e37c8dc --- /dev/null +++ b/templates/widgets/w_checkbox_f_feedback.html @@ -0,0 +1,4 @@ +{% load static %} + + +
\ No newline at end of file