First commit
This commit is contained in:
1
app/app_template/templates/pages/404.html
Normal file
1
app/app_template/templates/pages/404.html
Normal file
@ -0,0 +1 @@
|
||||
<h1>404</h1>
|
17
app/app_template/templates/pages/home.html
Normal file
17
app/app_template/templates/pages/home.html
Normal 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>
|
8
app/app_template/templates/pages/login.html
Normal file
8
app/app_template/templates/pages/login.html
Normal 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>
|
5
app/app_template/templates/pages/profile.html
Normal file
5
app/app_template/templates/pages/profile.html
Normal file
@ -0,0 +1,5 @@
|
||||
<h1>Profile</h1>
|
||||
<h2>Username</h2>
|
||||
<p>{{ user.username }}</p>
|
||||
<h2>Email</h2>
|
||||
<p>{{ user.email }}</p>
|
11
app/app_template/templates/pages/signup.html
Normal file
11
app/app_template/templates/pages/signup.html
Normal 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>
|
Reference in New Issue
Block a user