diff options
author | Vikas Kushwaha <dev@vikas.rocks> | 2025-02-11 16:31:08 +0530 |
---|---|---|
committer | Vikas Kushwaha <dev@vikas.rocks> | 2025-02-11 16:31:08 +0530 |
commit | 57eb8f6712361a3bf75983ce153fac4846dc0273 (patch) | |
tree | 269a168d59c917c4e313c819e2b4c3ff8175f912 /cmd/web/templates/sign-up/partials/sign-up-form.tmpl |
Initial commit
Diffstat (limited to 'cmd/web/templates/sign-up/partials/sign-up-form.tmpl')
-rw-r--r-- | cmd/web/templates/sign-up/partials/sign-up-form.tmpl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cmd/web/templates/sign-up/partials/sign-up-form.tmpl b/cmd/web/templates/sign-up/partials/sign-up-form.tmpl new file mode 100644 index 0000000..be34243 --- /dev/null +++ b/cmd/web/templates/sign-up/partials/sign-up-form.tmpl @@ -0,0 +1,30 @@ +<div id="sign-up-form-messages" + {{ if .IsOob }} + hx-swap-oob="true" + {{ end }} +> + {{ if .Errors }} + <div class="alert alert-danger"> + <ul> + {{ range $error := .Errors }} + <li>{{ $error }}</li> + {{ end }} + </ul> + </div> + {{ end }} +</div> + +<form method="POST" hx-post="/htmx/sign-up"> +<fieldset class="form-group"> + <input id="sign-up-username" class="form-control form-control-lg" type="text" name="username" placeholder="Username"> +</fieldset> +<fieldset class="form-group"> + <input id="sign-up-email" class="form-control form-control-lg" type="text" name="email" placeholder="Email"> +</fieldset> +<fieldset class="form-group"> + <input id="sign-up-password" class="form-control form-control-lg" type="password" name="password" placeholder="Password"> +</fieldset> +<button class="btn btn-lg btn-primary pull-xs-right"> + Sign up +</button> +</form>
\ No newline at end of file |