25 lines
931 B
Text
25 lines
931 B
Text
|
<%- include("../base/header", { title: "Login", userId: session.userId }) %>
|
||
|
|
||
|
<div class="d-flex justify-content-center">
|
||
|
<div class="card my-auto" style="width: 25rem;">
|
||
|
<div class="card-body">
|
||
|
<h4 class="card-title text-center">Change Username</h5>
|
||
|
<% if (typeof(message) === "string") { %>
|
||
|
<div class="alert alert-danger text-center" role="alert"><%= message %></div>
|
||
|
<% } %>
|
||
|
<form method="POST">
|
||
|
<input class="form-control mt-3 mb-2" name="username" placeholder="Username" value="<%= typeof(username) === "undefined" ? "" : username %>" required autocomplete="one-time-code" />
|
||
|
<div class="row mt-3">
|
||
|
<div class="col-auto">
|
||
|
<a class="btn btn-danger d-block" href="/">Cancel</a>
|
||
|
</div>
|
||
|
<div class="col">
|
||
|
<input class="btn btn-primary ms-auto d-block" type="submit" value="Change" />
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<%- include("../base/footer") %>
|