0.0.11 new throwing registration errors

This commit is contained in:
2023-07-12 10:19:11 +03:00
parent 8a101e056f
commit e657374600
6 changed files with 44 additions and 12 deletions

View File

@@ -873,6 +873,7 @@ select {
background: url("./img/icon-arrow.png") no-repeat calc(100% - 15px) center;
}
.inputs>span{
.errorlist>li{
color:red;
}

20
static/js/newRoute.js Normal file
View File

@@ -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
}
});
}