Removed additional alerts from the bottom of the signup page

This commit is contained in:
Luke Else 2024-01-05 21:42:27 +00:00
parent 8702aa86a5
commit a86edf01ad
2 changed files with 2 additions and 15 deletions

View File

@ -1,6 +1,6 @@
from flask import Blueprint from flask import Blueprint
from flask import render_template, request, session, flash from flask import render_template, session, flash
from controllers.database.product import ProductController from controllers.database.product import ProductController
blueprint = Blueprint("products", __name__, url_prefix="/products") blueprint = Blueprint("products", __name__, url_prefix="/products")

View File

@ -8,20 +8,7 @@
<input type="password" id="password" name="password" minlength=8 placeholder="Password" required> <input type="password" id="password" name="password" minlength=8 placeholder="Password" required>
<input type="submit" id="Sign Up" value="Sign Up"> <input type="submit" id="Sign Up" value="Sign Up">
</form> </form>
{% with messages = get_flashed_messages()%}
{% if messages %}
{% for message in messages %}
<label>
<input type="checkbox" class="alertCheckbox" autocomplete="off" />
<div class="alert error">
<span class="alertClose">X</span>
<span class="alertText">{{message}}
<br class="clear"/></span>
</div>
</label>
{% endfor%}
{% endif %}
{% endwith %}
<div id="create-account-wrap"> <div id="create-account-wrap">
<p>Already have an account? <a href="login">Login</a><p> <p>Already have an account? <a href="login">Login</a><p>
</div> </div>