router/templates/account.rs.html

36 lines
1.1 KiB
HTML

@use crate::{
templates::{layout_html, return_home_html},
UserInfo,
};
@(account: &UserInfo)
@:layout_html("Account", {
<section>
<h1>Update Account</h1>
</section>
<section>
<form method="POST" action="/account">
<div class="form-body">
<input type="hidden" name="username" value="@account.username" />
<label for="new-password">
<h4>Update password</h4>
<input name="new-password" type="password" />
</label>
<label for="confirm-new-password">
<h4>Confirm password</h4>
<input name="confirm-new-password" type="password" />
</label>
<label for="password">
<h4>Current password</h4>
<input name="password" type="password" />
</label>
</div>
<div class="submit">
<button type="submit">Update</button>
</div>
</form>
</section>
@:return_home_html()
})