First commit

This commit is contained in:
Andros Fenollosa
2022-04-19 21:14:01 +02:00
parent 8a9aebdf89
commit 12ba5461fd
37 changed files with 3082 additions and 0 deletions

View File

@ -0,0 +1 @@
<h1>404</h1>

View File

@ -0,0 +1,17 @@
<section>
<h1>Welcome to an example of browsing with WebSockets over the Wire</h1>
<p>You will be able to experience a simple structure with a registration, a login and a private page.</p>
</section>
<section>
<h2>Laps</h2>
<p>
<button id="add-lap">Add lap</button>
</p>
<ul id="laps"></ul>
</section>
<section>
<h2>TODO</h2>
<input type="text" id="task">
<button id="add-task">Add task</button>
<ul id="todo"></ul>
</section>

View File

@ -0,0 +1,8 @@
<h1>Login</h1>
<form id="login-form">
{% if user_does_not_exist %}
<h2>The user does not exist or the password is wrong.</h2>
{% endif %}
{{ form.as_p }}
<input type="submit" class="button" value="Login">
</form>

View File

@ -0,0 +1,5 @@
<h1>Profile</h1>
<h2>Username</h2>
<p>{{ user.username }}</p>
<h2>Email</h2>
<p>{{ user.email }}</p>

View File

@ -0,0 +1,11 @@
<h1>Signup</h1>
<form id="signup-form">
{% if user_exist %}
<p>Email already exist</p>
{% endif %}
{% if passwords_do_not_match %}
<p>Passwords do not match.</p>
{% endif %}
{{ form.as_p }}
<input type="submit" class="button" value="Signup">
</form>