This commit is contained in:
2018-02-27 19:51:43 +01:00
parent 7332af1dc0
commit 738596a13f
9 changed files with 461 additions and 65 deletions

View File

@@ -17,3 +17,23 @@ function register() {
}
return true;
}
function update_account() {
var password = document.getElementById('password').value;
var confirm = document.getElementById('confirm').value;
if (password != confirm){
alert("Confirmation mot de passe incohérente");
return false;
}
if (password.length > 0 && password.length < 8){
alert("Le mot de passe doit avoir une longueur d'au moins 8 caractères");
return false;
}
return true;
}
function delete_account(id) {
if (confirm("La suppression d'un compte est définitive.\n\nConfirmer ?")) {
document.location='/account/delete/'+id;
}
}

View File

@@ -370,7 +370,7 @@ input.upload {
}
form {
width: 350px;
width: 400px;
text-align: center;
line-height: 40px;
}
@@ -382,3 +382,49 @@ form > label {
form > input[type='text'], form > input[type='password'] {
float: right;
}
div.table_header {
background-color: var(--coloured-bg);
text-align: left;
width: 910px;
}
div.table_row {
text-align: left;
width: 910px;
}
div.table_header > div, div.table_row > div {
display: inline-block;
text-align: center;
font-weight: bold;
width: 200px;
}
div.table_row > div {
border-color: var(--coloured-bg);
border-width: 1px;
font-weight: normal;
}
div.even {
background-color: var(--light-coloured-bg);
border-color: var(--coloured-bg);
border-width: 1px;
border-style: none none solid none;
}
div.odd {
background-color: var(--white);
border-color: var(--coloured-bg);
border-width: 1px;
border-style: none none solid none;
}
div.table_row > div.border_left {
border-style: none none none solid;
}
div.table_row > div.border_right {
border-style: none solid none none;
}