Skip to content
Snippets Groups Projects
Commit c6adad29 authored by nj2-desmond's avatar nj2-desmond
Browse files

Changed login and register to tables, sorted CSS and HTML

parent dac87167
No related branches found
No related tags found
No related merge requests found
......@@ -66,5 +66,14 @@ h1{
font-size: 30px;
}
li {
list-style-type: none;
}
.loginTable {
margin-left: auto;
margin-right: auto;
}
{%extends 'base.html' %}
{% block content %}
{% block title %} Items | Antiques Online {% endblock %}
{% block content %}
{% endblock %}
\ No newline at end of file
......@@ -8,7 +8,7 @@
<body>
<header class="header">
<a class="logo" href="{{ url_for('index')}}">ANTIQUES ONLINE</a>
<h1 class="logo" href="{{ url_for('index')}}">ANTIQUES ONLINE</h1>
</header>
<nav class="navbar">
......@@ -35,7 +35,6 @@
</ul>
</nav>
<div class="container">
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul class="flashes">
......@@ -49,7 +48,6 @@
{% block content %}
{% endblock %} <!-- Where HTML will go when extended. -->
</div>
<footer class="footer">
<p>Contact Info: mail@mail.com
......
{%extends 'base.html' %}
{% block content %}
{% block title %} Welcome to the Index {% endblock %}
{% block content %}
{% endblock %}
{%extends 'base.html' %}
{% block content %}
{% block title %} Item Sets | Antiques Online {% endblock %}
{% block content %}
{% endblock %}
\ No newline at end of file
{%extends 'base.html' %}
{% block title %} Login | Antiques Online {% endblock %}
{% block content %}
{% block title %} login | Antiques Online {% endblock %}
<form method="POST" action="{{ url_for('login') }}" style="float: center; text-align: center;">
<div class="container">
<h1>Login</h1>
<table class="loginTable">
<tr>
<td><label for="username">Username</label></td>
<td><input type="username" placeholder="Enter Username..." name="username" id="username" required></td>
</tr>
<tr>
<td><label for="password">Password</label></td>
<td><input type="password" placeholder="Enter Password..." name="password" id="password" required></td>
</tr>
<tr>
<td><label for="securityQ1">Favourite Colour</label></td>
<td><input type="securityQ1" placeholder="Enter Favourite Colour..." name="securityQ1" id="securityQ1" required></td>
</tr>
<tr>
<td></td>
<td><a href="{{ url_for('reset_password')}}">I Forgot my Password!</a></td>
</tr>
<tr>
<td></td>
<td><a href="{{ url_for('reset_security1')}}">I Forgot my Favourite Color!</a></td>
</tr>
</table>
<label for="username"><b>username</b></label>
<input type="username" placeholder="Enter username" name="username" id="username" required>
<label for="password"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="password" id="password" required>
<label for="securityQ1"><b>what is your favourite colour</b></label>
<input type="securityQ1" placeholder="what is your favourite colour" name="securityQ1" id="securityQ1" required>
<a href="{{ url_for('reset_password')}}">Forgot my Password</a>
<a href="{{ url_for('reset_security1')}}">Forgot my favourite color</a>
<input class="button" type="submit" value="Login" >
</div>
</form>
{% endblock %}
\ No newline at end of file
{%extends 'base.html' %}
{% block content %}
{% block title %} Register | Antiques Online {% endblock %}
{% block content %}
<form method="POST" action="{{ url_for('register') }}" style="float: center; text-align: center;">
......@@ -15,20 +12,28 @@
<p class=error><strong>Error:</strong> {{ error }}
{% endif %}
<label for="username"><b>username</b></label>
<input type="username" placeholder="Enter username" name="username" id="username" required>
<label for="email"><b>E-mail</b></label>
<input type="email" placeholder="Enter E-mail" name="email" id="email" required>
<label for="phone_number"><b>Phone Number</b></label>
<input type="phone_number" placeholder="Enter Number" name="phone_number" id="phone_number" required>
<label for="securityQ1"><b>what is your favourite colour</b></label>
<input type="securityQ1" placeholder="Enter a colour" name="securityQ1" id="securityQ1" required>
<label for="password"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="password" id="password" required>
<table class="loginTable">
<tr>
<td><label for="username">Username:</label></td>
<td><input type="username" placeholder="Enter Username..." name="username" id="username" required></td>
</tr>
<tr>
<td><label for="email">E-mail Address:</label></td>
<td><input type="email" placeholder="Enter E-mail..." name="email" id="email" required></td>
</tr>
<tr>
<td><label for="phone_number">Phone Number:</label></td>
<td><input type="phone_number" placeholder="Enter Phone Number..." name="phone_number" id="phone_number" required></td>
</tr>
<tr>
<td><label for="securityQ1">Favourite Color:</label></td>
<td><input type="securityQ1" placeholder="Enter a Colour..." name="securityQ1" id="securityQ1" required></td>
</tr>
<tr>
<td><label for="password">Password:</label></td>
<td><input type="password" placeholder="Enter Password..." name="password" id="password" required></td>
</tr>
</table>
<input class="button" type="submit" value="Register" >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment