2020-06-14 20:15:53 +02:00
|
|
|
<?php require ROOT . '/views/templates/main_header.php'; ?>
|
|
|
|
<?php require ROOT . '/views/templates/header.php'; ?>
|
2020-06-25 16:44:34 +02:00
|
|
|
<h2>Account</h2>
|
2020-06-14 20:15:53 +02:00
|
|
|
<div class="box">
|
2020-06-25 22:35:04 +02:00
|
|
|
<form id="accountForm" action="/account" method="post" data-observe-inputs="password_new,password_new_confirm">
|
2020-06-25 20:26:33 +02:00
|
|
|
<input class="big fullWidth" type="password" name="password" placeholder="Current password" required minlength="6" autofocus>
|
2020-06-18 16:23:30 +02:00
|
|
|
<hr>
|
2020-06-14 20:15:53 +02:00
|
|
|
<?php /* TODO: disabled for the time being, email modification should be implemented */ ?>
|
|
|
|
<input class="big fullWidth" type="email" name="email" placeholder="Email address" value="<?= $user['email'] ?>" disabled>
|
2020-06-18 16:23:30 +02:00
|
|
|
<input class="big fullWidth marginTop" type="password" name="password_new" placeholder="New password" minlength="6">
|
2020-06-18 16:15:03 +02:00
|
|
|
<input class="big fullWidth marginTop" type="password" name="password_new_confirm" placeholder="New password confirmation" minlength="6">
|
2020-06-25 16:44:34 +02:00
|
|
|
<p id="accountFormError" class="formError justify marginTop"></p>
|
2020-06-14 20:15:53 +02:00
|
|
|
<div class="right marginTop">
|
2020-06-25 19:18:28 +02:00
|
|
|
<button type="submit" name="submit" disabled>Save</button>
|
2020-06-14 20:15:53 +02:00
|
|
|
</div>
|
2020-06-25 20:26:33 +02:00
|
|
|
<hr>
|
|
|
|
<div class="center">
|
|
|
|
<a class="button red" href="/account/delete" title="Delete account">Delete account</a>
|
|
|
|
</div>
|
2020-06-14 20:15:53 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
2020-06-21 22:20:30 +02:00
|
|
|
<?php require ROOT . '/views/templates/footer.php'; ?>
|
2020-06-14 20:15:53 +02:00
|
|
|
<?php require ROOT . '/views/templates/main_footer.php'; ?>
|