0.0.6 registration page update, added separate footer and header files

This commit is contained in:
2023-07-10 13:05:48 +03:00
parent 957065a091
commit da67b17fff
7 changed files with 987 additions and 135 deletions

25
static/js/registration.js Normal file
View File

@@ -0,0 +1,25 @@
function SendRegistrationForm(el){
event.preventDefault()
let form = el.form;
let formData = new FormData(form);
$.ajax({
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
url: '/ru/user_account/registration/',
type: "POST",
// async: true,
cache: false,
processData: false,
contentType: false,
// enctype: 'json',
data: formData,
success: function(data){
// location.href = '/'
},
error: function (data, exception){
document.querySelector(".register").innerHTML = data.responseJSON.html
}
});
}