diff --git a/static/css/styles.css b/static/css/styles.css index 5588f1e..ab924ff 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -873,6 +873,7 @@ select { background: url("./img/icon-arrow.png") no-repeat calc(100% - 15px) center; } -.inputs>span{ + +.errorlist>li{ color:red; } \ No newline at end of file diff --git a/static/js/newRoute.js b/static/js/newRoute.js new file mode 100644 index 0000000..ef3706a --- /dev/null +++ b/static/js/newRoute.js @@ -0,0 +1,20 @@ +function createRoute(){ + + $.ajax({ + headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() }, + url: '/ru/user_account/new_route_view/', + type: "POST", + // async: true, + cache: false, + processData: false, + contentType: false, + // enctype: 'json', + // data: {}, + success: function(data){ + console.log('data received') + // location.href = '/profile' + document.querySelector(".profile").innerHTML = data.html + } + }); +} + diff --git a/templates/blocks/b_user_profile.html b/templates/blocks/b_user_profile.html index f67bfd4..dd0fffd 100644 --- a/templates/blocks/b_user_profile.html +++ b/templates/blocks/b_user_profile.html @@ -1,10 +1,11 @@
+ {% csrf_token %}
-
+
{% if form.errors and form.errors.firstname %} {{ form.errors.firstname }} {% endif %} -
+
+
{% if form.errors and form.errors.lastname %} {{ form.errors.lastname }} {% endif %} +
-
+
{% if form.errors and form.errors.email %} {{ form.errors.email }} {% endif %} -
+
+
{% if form.errors and form.errors.tel %} {{ form.errors.tel }} {% endif %} +
-
+
{% if form.errors and form.errors.password %} {{ form.errors.password }} {% endif %} -
+
+
{% if form.errors and form.errors.confirm_password %} {{ form.errors.confirm_password }} {% endif %} +
- {% if form.errors and form.errors.agreement %} + +
+ {% if form.errors and form.errors.agreement %} {{ form.errors.agreement }} {% endif %} -
Регистрируясь, я соглашаюсь с Лицензионным соглашениеми и Политикой конфиденциальности
+
Регистрируясь, я соглашаюсь с Лицензионным соглашениеми и Политикой конфиденциальности
+
diff --git a/templates/inter/meta.html b/templates/inter/meta.html index 29bc119..f3347a9 100644 --- a/templates/inter/meta.html +++ b/templates/inter/meta.html @@ -2,4 +2,5 @@ + \ No newline at end of file