diff --git a/static/js/autocomlitev2.js b/static/js/autocomlite.js similarity index 99% rename from static/js/autocomlitev2.js rename to static/js/autocomlite.js index 9c2371a..fef9aaf 100644 --- a/static/js/autocomlitev2.js +++ b/static/js/autocomlite.js @@ -27,6 +27,7 @@ function searchTown(el){ return insertSearchList(data, el.name + '_list') }, error: function (data){ + console.log('Error') } diff --git a/static/js/newRoute.js b/static/js/newRoute.js index 017e6f0..4bb17dc 100644 --- a/static/js/newRoute.js +++ b/static/js/newRoute.js @@ -21,7 +21,7 @@ function createRoute(){ type: "single", min: 0, max: 1000, - from: 500, + from: 100, step: 1, grid: true, grid_num: 5, diff --git a/static/js/sendRoute.js b/static/js/sendRoute.js index a56849f..d89d00d 100644 --- a/static/js/sendRoute.js +++ b/static/js/sendRoute.js @@ -18,16 +18,18 @@ function sendRoute(el){ // location.href = '/profile' document.querySelector(".info_profile").innerHTML = data.html + }, error: function (data, exception){ - document.querySelector(".info_profile").innerHTML = data.responseJSON.html + document.querySelector(".info_profile").innerHTML = data.responseJSON.html; + + $('#id_weight').ionRangeSlider({ skin: "round", type: "single", min: 0, max: 1000, - from: 500, step: 1, grid: true, grid_num: 5, diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html index 96efa8f..13f10db 100644 --- a/templates/blocks/profile/b_new_route.html +++ b/templates/blocks/profile/b_new_route.html @@ -9,31 +9,50 @@
- + {% for item in form.fields.type_transport.choices %} + + {% endfor %} {% if form.errors and form.errors.type_transport %} - {{ form.errors.type_transport }} - {% endif %} + {{ form.errors.type_transport }} + {% endif %}

- - {% if form.errors and form.errors.departure_DT %} - {{ form.errors.departure_DT }} - {% endif %} + + {% 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 %} + + {% if form.errors and form.errors.arrival_DT %} + {{ form.errors.arrival_DT }} + {% endif %}

@@ -41,7 +60,16 @@
- +
{% if form.errors and form.errors.from_address_point %} @@ -51,7 +79,16 @@
- +
@@ -71,10 +108,16 @@
- + {% for item in form.fields.from_place.choices %} + + {% endfor %} {% if form.errors and form.errors.from_place %} {{ form.errors.from_place }} @@ -82,10 +125,16 @@
- + {% for item in form.fields.to_place.choices %} + + {% endfor %} {% if form.errors and form.errors.to_place %} {{ form.errors.to_place }} @@ -99,10 +148,19 @@
- + {% for item in form.fields.cargo_type.choices %} + + {% endfor %} + {% if form.errors and form.errors.cargo_type %} {{ form.errors.cargo_type }} @@ -113,27 +171,46 @@
- + {% if form.errors and form.errors.weight %} - {{ form.errors.weight }} - {% endif %} + {{ form.errors.weight }} + {% endif %}

- - {% if form.errors and form.errors.phone %} - {{ form.errors.phone }} - {% endif %} + + {% if form.errors and form.errors.phone %} + {{ form.errors.phone }} + {% endif %}
- - {% if form.errors and form.errors.extra_phone %} - {{ form.errors.extra_phone }} - {% endif %} + + {% if form.errors and form.errors.extra_phone %} + {{ form.errors.extra_phone }} + {% endif %}

diff --git a/templates/pages/profile/p_user_profile.html b/templates/pages/profile/p_user_profile.html index 776e419..bbf762e 100644 --- a/templates/pages/profile/p_user_profile.html +++ b/templates/pages/profile/p_user_profile.html @@ -8,7 +8,7 @@ - +