I forgot the create account page
This commit is contained in:
parent
faa72ee069
commit
baf23f96cd
@ -53,7 +53,7 @@ func CreateAccount(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Add("Location", "/")
|
||||
w.WriteHeader(http.StatusSeeOther)
|
||||
} else {
|
||||
templates.CreateAccountBox(false).Render(r.Context(), w)
|
||||
templates.CreateAccountBox(r.URL.Query().Has("basic")).Render(r.Context(), w)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
@ -55,21 +55,21 @@ templ CreateAccountBox(basic_css bool) {
|
||||
<form id="login-box" hx-post="/create-account">
|
||||
<h1>Create Account</h1>
|
||||
|
||||
<div>
|
||||
<label for="username">Username</label><br/>
|
||||
<input id="username" name="username" type="text" required/>
|
||||
<div class="credentials-wrapper">
|
||||
<label for="username">Username</label>
|
||||
<input id="username" class="credentials" name="username" type="text" placeholder="Username" required/>
|
||||
|
||||
<div style="margin: 20px"></div>
|
||||
<div class="gap"></div>
|
||||
|
||||
<label for="password">Password</label><br/>
|
||||
<input id="password" name="password" type="password" required/>
|
||||
<label for="password">Password</label>
|
||||
<input id="password" class="credentials" name="password" type="password" placeholder="Password" required/>
|
||||
|
||||
<div style="margin: 20px"></div>
|
||||
<div class="gap"></div>
|
||||
|
||||
<label for="confirm-password">Confirm Password</label><br/>
|
||||
<input id="confirm-password" name="confirm-password" type="password" required/>
|
||||
<label for="confirm-password">Confirm Password</label>
|
||||
<input id="confirm-password" class="credentials" name="confirm-password" type="password" placeholder="Re-Type Password" required/>
|
||||
|
||||
<button type="submit">Create account</button>
|
||||
<button type="submit" class="login-btn">Create account</button>
|
||||
</div>
|
||||
</form>
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ func CreateAccountBox(basic_css bool) templ.Component {
|
||||
}()
|
||||
}
|
||||
ctx = templ.InitializeContext(ctx)
|
||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<form id=\"login-box\" hx-post=\"/create-account\"><h1>Create Account</h1><div><label for=\"username\">Username</label><br><input id=\"username\" name=\"username\" type=\"text\" required><div style=\"margin: 20px\"></div><label for=\"password\">Password</label><br><input id=\"password\" name=\"password\" type=\"password\" required><div style=\"margin: 20px\"></div><label for=\"confirm-password\">Confirm Password</label><br><input id=\"confirm-password\" name=\"confirm-password\" type=\"password\" required> <button type=\"submit\">Create account</button></div></form>")
|
||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<form id=\"login-box\" hx-post=\"/create-account\"><h1>Create Account</h1><div class=\"credentials-wrapper\"><label for=\"username\">Username</label> <input id=\"username\" class=\"credentials\" name=\"username\" type=\"text\" placeholder=\"Username\" required><div class=\"gap\"></div><label for=\"password\">Password</label> <input id=\"password\" class=\"credentials\" name=\"password\" type=\"password\" placeholder=\"Password\" required><div class=\"gap\"></div><label for=\"confirm-password\">Confirm Password</label> <input id=\"confirm-password\" class=\"credentials\" name=\"confirm-password\" type=\"password\" placeholder=\"Re-Type Password\" required> <button type=\"submit\" class=\"login-btn\">Create account</button></div></form>")
|
||||
if templ_7745c5c3_Err != nil {
|
||||
return templ_7745c5c3_Err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user