feat: refactor user settings #4

Merged
s3lph merged 8 commits from weva/matemat:main into main 2024-12-07 22:19:40 +01:00
Showing only changes of commit 470da688f3 - Show all commits

View file

@ -101,16 +101,31 @@
<h2>Password</h2> <h2>Password</h2>
<form id="settings-password-form" method="post" action="/settings?change=password" accept-charset="UTF-8"> <form id="settings-password-form" method="post" action="/settings?change=password" accept-charset="UTF-8">
<label class="form-label" for="settings-password-oldpass">Current password: </label> <div class="row g-2 mb-2">
<input class="form-control" id="settings-password-oldpass" type="password" name="oldpass" /><br/> <div class="col-md">
<div class="form-floating">
<label class="form-label" for="settings-password-newpass">New password: </label> <input class="form-control" id="settings-password-oldpass" type="password" name="oldpass">
<input class="form-control" id="settings-password-newpass" type="password" name="newpass" /><br/> <label for="settings-password-oldpass">Current password </label>
</div>
<label class="form-label" for="settings-password-newpass2">Repeat password: </label> </div>
<input class="form-control" id="settings-password-newpass2" type="password" name="newpass2" /><br/> <div class="col-md">
<div class="form-floating">
<input class="btn btn-primary" type="submit" value="Save changes" /> <input class="form-control" id="settings-password-newpass" type="password" name="newpass">
<label for="settings-password-newpass">New password</label>
</div>
</div>
<div class="col-md">
<div class="form-floating">
<input class="form-control" id="settings-password-newpass2" type="password" name="newpass2">
<label for="settings-password-newpass2">Repeat password</label>
</div>
</div>
</div>
<div class="row g-2">
<div class="col">
<input class="btn btn-primary" type="submit" value="Save changes">
</div>
</div>
</form> </form>
</section> </section>