From 5b8c626372efb73c45de7d68b48c262655dfb190 Mon Sep 17 00:00:00 2001 From: y2-youssef <youssef2.youssef@live.uwe.ac.uk> Date: Sat, 15 Jul 2023 00:51:47 +0000 Subject: [PATCH] Upload New File --- backup/templates/index.html | 61 +++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 backup/templates/index.html diff --git a/backup/templates/index.html b/backup/templates/index.html new file mode 100644 index 0000000..dc0d082 --- /dev/null +++ b/backup/templates/index.html @@ -0,0 +1,61 @@ +<!DOCTYPE html> +{% extends "baselayout.html" %} + +<!-- Change the title of the web page --> +{% block title %}Welcome{% endblock %} + +{% block head %} +{{ super() }} +<style type="text/css"> + body{ + background: rgb(255,187,0); + background: linear-gradient(90deg, rgba(255,187,0,1) 5%, rgba(0,212,255,1) 100%); + } + .main{ + background-color:rgba(255, 255, 255, 0.582); + text-align: center; + margin-right: 5%; + margin-top: 2%; + border: 2px solid black; + font-size: 16px; + } + +</style> +{% endblock %} + +{% block content %} + +{% with items = get_flashed_messages(category_filter=["info"]) %} + <table style="width:100%" class="main"> + <tr> + <th>Item ID</th> + <th>Item UID</th> + <th>Item Name</th> + <th>Item Description</th> + <th>Price</th> + <th>Item Set</th> + <th>Is Item listed</th> + <th>Item Tags</th> + </tr> + {% for i in items %} + {% for j in range(i|length) %} + <tr> + <td>{{i[j].id}} </td> + <td>{{i[j].uid}} </td> + <td>{{i[j].name}} </td> + <td>{{i[j].description}} </td> + <td>£{{i[j].price}} </td> + {% if i[j].itemset == "0" %} + <td>Not an item set </td> + {% else %} + <td>{{i[j].itemset}} </td> + {% endif %} + <td>{{i[j].listed}} </td> + <td>{{i[j].tag}}</td> + </tr> + {% endfor %} + {% endfor %} +</table> +{% endwith %} + +{% endblock %} \ No newline at end of file -- GitLab