summaryrefslogtreecommitdiff
path: root/app/templates/user/register.html
diff options
context:
space:
mode:
authorstilbruch <stilbruch@protonmail.com>2022-03-23 12:30:23 -0500
committerstilbruch <stilbruch@protonmail.com>2022-03-23 12:30:23 -0500
commitc57ebef076438c83a0e408227341398249566ff1 (patch)
treed4e943e771a127d285baaee14867f48040f23c8d /app/templates/user/register.html
parent43755d0b6d1f65fd65862454be81bd0f5d7ff7dd (diff)
downloadStrengthy-c57ebef076438c83a0e408227341398249566ff1.tar.xz
Strengthy-c57ebef076438c83a0e408227341398249566ff1.zip
User registration and login now works
Diffstat (limited to 'app/templates/user/register.html')
-rw-r--r--app/templates/user/register.html21
1 files changed, 17 insertions, 4 deletions
diff --git a/app/templates/user/register.html b/app/templates/user/register.html
index dc61204..6341671 100644
--- a/app/templates/user/register.html
+++ b/app/templates/user/register.html
@@ -3,17 +3,30 @@
{% block content %}
<div class="register">
<div class="form">
- <section class="hero is-primary is-fullheight">
+ <section class="hero is-primary is-fullheight-with-navbar">
<div class="hero-body">
<div class="container">
<div class="columns is-centered">
<div class="column is-5-tablet is-4-desktop is-3-widescreen">
<h1 class="title is-2">Sign up</h1>
- <form action="" class="box">
+
+ <!-- TODO: render errors -->
+
+ <form method="POST" class="box">
+ {{ form.csrf_token }}
+ <div class="field">
+ <label for="" class="label">Username</label>
+ <div class="control has-icons-left">
+ <input id="username" name="username" type="text" placeholder="e.g. gymdude99" class="input" required>
+ <span class="icon is-small is-left">
+ <i class="fa fa-user"></i>
+ </span>
+ </div>
+ </div>
<div class="field">
<label for="" class="label">Email</label>
<div class="control has-icons-left">
- <input type="email" placeholder="e.g. bobsmith@gmail.com" class="input" required>
+ <input id="email" name="email" type="email" placeholder="e.g. bobsmith@gmail.com" class="input" required>
<span class="icon is-small is-left">
<i class="fa fa-envelope"></i>
</span>
@@ -22,7 +35,7 @@
<div class="field">
<label for="" class="label">Password</label>
<div class="control has-icons-left">
- <input type="password" placeholder="*******" class="input" required>
+ <input id="password" name="password" type="password" placeholder="*******" class="input" required>
<span class="icon is-small is-left">
<i class="fa fa-lock"></i>
</span>