From 23be24a41d8210fe24f1be11d6946191253ce248 Mon Sep 17 00:00:00 2001 From: borissedw Date: Mon, 31 Jul 2023 18:53:42 +0300 Subject: [PATCH] 0.0.6 --- static/css/styles(boris).css | 50 ++++++++++++++- static/js/user_profile(boris).js | 61 ++++++++++++++++++- templates/blocks/profile/b_create_ticket.html | 9 ++- .../blocks/profile/b_new_msg_to_support.html | 2 +- .../blocks/profile/b_new_msg_to_user.html | 18 +++++- templates/blocks/profile/b_new_route.html | 19 +++++- templates/pages/profile/p_user_profile.html | 2 + 7 files changed, 153 insertions(+), 8 deletions(-) diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index d9d779a..8814b24 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -1,7 +1,7 @@ /*tech support classes*/ -.title-support-cont{ +.title-profile-cont{ width: 100%; text-align: center; font-size: 44px; @@ -149,3 +149,51 @@ width: 100%; margin-top: 40px; } + + +/*slider*/ + + +.prise-slider-div{ + margin-right: 5px; + margin-top: 5px; +} + +.filter-span{ + margin-top: 13px; + font-size: 15px; +} + +#slider-range { + margin-top: 10px; + margin-bottom: 10px; + height: 3px; + margin-left: 6px; + margin-right: 7px; +} + +.input-control-price{ + display: flex; + justify-content: space-between; +} + +.slider-range-div-input { + display: flex; + width: 100px; + border: 1px solid rgba(0, 0, 0, 0.17); + border-radius: 3px; + height: 30px; + justify-content: space-between; + align-items: center; +} + +.span-price-placeholder{ + padding-left: 7px; + color: rgba(139, 139, 139, 1); +} + +.form-control{ + /*width: 100px;*/ + border: none; + /*border-radius: 3px;*/ +} \ No newline at end of file diff --git a/static/js/user_profile(boris).js b/static/js/user_profile(boris).js index 20e8c2e..3758647 100644 --- a/static/js/user_profile(boris).js +++ b/static/js/user_profile(boris).js @@ -52,4 +52,63 @@ function attachFileCreateTicket () { }, }); -} \ No newline at end of file +} + + +// $( "#slider-range" ).slider({ +// range: true, +// min: 0, +// max: 1000, +// values: [ 0, 1000 ], +// step: 1, +// slide: function( event, ui ) { +// $( "#control-price-1" ).val(ui.values[ 0 ]); +// $( "#control-price-2" ).val( ui.values[ 1 ] ); +// } +// }); +// $( "#control-price-1" ).val($( "#slider-range" ).slider( "values", 0 )); +// $( "#control-price-2" ).val($( "#slider-range" ).slider( "values", 1 )); +// +// +// +// function set_range(obj) { +// let parent = $(obj).parents('.input-control-price')[0]; +// let min_obj = $(parent).find('#control-price-1')[0]; +// let max_obj = $(parent).find('#control-price-2')[0]; +// var valmin = min_obj.value; +// var valmax = max_obj.value; +// +// if (min_obj === obj) { +// if (valmin < 0){ +// valmin = 0 +// } +// else if (valmin > 1000){ +// valmin = 1000 +// } +// else if (valmin > valmax){ +// valmin = valmax +// } +// $(parent).find('#control-price-1')[0].value = valmin; +// } else if (max_obj === obj) { +// if (valmax > 1000) { +// valmax = 1000 +// } +// else if (valmax < 1) { +// valmax = 1 +// } +// else if (valmax < valmin) { +// valmax = valmin +// } +// $(parent).find('#control-price-2')[0].value = valmax; +// } +// +// +// +// +// +// $("#slider-range" ).slider({ +// values: [parseInt(valmin), parseInt(valmax)] +// }); +// +// +// } \ No newline at end of file diff --git a/templates/blocks/profile/b_create_ticket.html b/templates/blocks/profile/b_create_ticket.html index 6c8d99d..0fdbcc3 100644 --- a/templates/blocks/profile/b_create_ticket.html +++ b/templates/blocks/profile/b_create_ticket.html @@ -1,16 +1,19 @@ {% load static %}
{% csrf_token %} -
0/500
- diff --git a/templates/blocks/profile/b_new_msg_to_support.html b/templates/blocks/profile/b_new_msg_to_support.html index c02329e..98ad767 100644 --- a/templates/blocks/profile/b_new_msg_to_support.html +++ b/templates/blocks/profile/b_new_msg_to_support.html @@ -5,7 +5,7 @@
-
+

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

diff --git a/templates/blocks/profile/b_new_msg_to_user.html b/templates/blocks/profile/b_new_msg_to_user.html index d4bdd9c..cb85219 100644 --- a/templates/blocks/profile/b_new_msg_to_user.html +++ b/templates/blocks/profile/b_new_msg_to_user.html @@ -1 +1,17 @@ -
Написать сообщение
\ No newline at end of file +
+

Написать сообщение

+
+ +
+
+
+ +
+
+
+
+ +
+ +
+
\ No newline at end of file diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html index a970ed3..949b93d 100644 --- a/templates/blocks/profile/b_new_route.html +++ b/templates/blocks/profile/b_new_route.html @@ -209,7 +209,7 @@ id="id_weight" {% if form.fields.weight.required %} required{% endif %} name="weight" -{# value=""#} + value="" {% if form.cleaned_data.weight %}value="{{ form.cleaned_data.weight}}"{% endif %} /> {% if not errors_off and form.errors and form.errors.weight %} @@ -217,6 +217,23 @@ {% endif %}
+ +{#
#} +{# Цена#} +{#
#} +{#
#} +{#
#} +{# от#} +{# #} +{#
#} +{##} +{#
#} +{# до#} +{# #} +{#
#} +{#
#} +{#
#} +
diff --git a/templates/pages/profile/p_user_profile.html b/templates/pages/profile/p_user_profile.html index 71926f1..2b28f96 100644 --- a/templates/pages/profile/p_user_profile.html +++ b/templates/pages/profile/p_user_profile.html @@ -5,12 +5,14 @@ {% block meta %} + + {% endblock %} {% block content %}