diff --git a/static/css/styles.css b/static/css/styles.css
index 30a221f..4003528 100644
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -917,6 +917,11 @@ form.new_route>div{
flex-direction: row;
flex-wrap: wrap;
}
+form.new_route>div.range-slider{
+ margin-bottom: 30px;
+ margin-top: 30px;
+ display: block;
+}
form.new_route{
width:100%;
diff --git a/static/js/newRoute.js b/static/js/newRoute.js
index c37e76f..edb9cf5 100644
--- a/static/js/newRoute.js
+++ b/static/js/newRoute.js
@@ -15,6 +15,20 @@ function createRoute(){
// location.href = '/profile'
document.querySelector(".info_profile").innerHTML = data.html
+ $(document).ready(function (e){
+ $('#id_weight').ionRangeSlider({
+ skin: "round",
+ type: "single",
+ min: 0,
+ max: 1000,
+ from: 500,
+ step: 1,
+ grid: true,
+ grid_num: 5,
+ });
+
+});
+
//get dynamic value
// let fromCountry = document.getElementById('id_from_country');
// let toCounytry = document.getElementById('id_to_country')
diff --git a/static/js/sendRoute.js b/static/js/sendRoute.js
index 063f209..04419bc 100644
--- a/static/js/sendRoute.js
+++ b/static/js/sendRoute.js
@@ -19,7 +19,7 @@ function sendRoute(el){
document.querySelector(".info_profile").innerHTML = data.html
},
error: function (data, exception){
- document.querySelector(".button_register").innerHTML = data.responseJSON.html
+ document.querySelector(".info_profile").innerHTML = data.responseJSON.html
}
});
}
diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html
index f76737d..ed6d1dd 100644
--- a/templates/blocks/profile/b_new_route.html
+++ b/templates/blocks/profile/b_new_route.html
@@ -14,6 +14,9 @@
{% endfor %}
+ {% if form.errors and form.errors.type_transport %}
+ {{ form.errors.type_transport }}
+ {% endif %}
@@ -21,10 +24,16 @@
+ {% if form.errors and form.errors.departure_DT %}
+ {{ form.errors.departure_DT }}
+ {% endif %}
+ {% if form.errors and form.errors.arrival_DT %}
+ {{ form.errors.arrival_DT }}
+ {% endif %}
@@ -32,11 +41,16 @@
-
+ {% if form.errors and form.errors.from_country %}
+ {{ form.errors.from_country }}
+ {% endif %}
+ {% if form.errors and form.errors.to_country %}
+ {{ form.errors.to_country }}
+ {% endif %}
{# #}
@@ -55,6 +69,9 @@
{% endfor %}
+ {% if form.errors and form.errors.from_place %}
+ {{ form.errors.from_place }}
+ {% endif %}
@@ -63,6 +80,9 @@
{% endfor %}
+ {% if form.errors and form.errors.to_place %}
+ {{ form.errors.to_place }}
+ {% endif %}
@@ -77,6 +97,9 @@
{% endfor %}
+ {% if form.errors and form.errors.cargo_type %}
+ {{ form.errors.cargo_type }}
+ {% endif %}
@@ -84,8 +107,9 @@
-
-
+ {% if form.errors and form.errors.weight %}
+ {{ form.errors.weight }}
+ {% endif %}
@@ -93,10 +117,16 @@
+ {% if form.errors and form.errors.phone %}
+ {{ form.errors.phone }}
+ {% endif %}
+ {% if form.errors and form.errors.extra_phone %}
+ {{ form.errors.extra_phone }}
+ {% endif %}
@@ -104,13 +134,12 @@
+ {% if form.errors and form.errors.receive_msg_by_email %}
+ {{ form.errors.receive_msg_by_email }}
+ {% endif %}
-
-
\ No newline at end of file
diff --git a/templates/pages/profile/p_registration.html b/templates/pages/profile/p_registration.html
index d489e18..b015e0b 100644
--- a/templates/pages/profile/p_registration.html
+++ b/templates/pages/profile/p_registration.html
@@ -1,4 +1,5 @@
{% extends 'tb_base.html' %}
+{% load static %}
{% block meta %}
diff --git a/templates/pages/profile/p_user_profile.html b/templates/pages/profile/p_user_profile.html
index b51119a..a0c555d 100644
--- a/templates/pages/profile/p_user_profile.html
+++ b/templates/pages/profile/p_user_profile.html
@@ -7,6 +7,12 @@
+
+
+
+
+
+
{% endblock %}
{% block content %}