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 %}