From bbe424d9a3e1ff9fbee7f77b530061c6970ac901 Mon Sep 17 00:00:00 2001 From: Ying Tung Lau <lauy5@cardiff.ac.uk> Date: Fri, 27 Jan 2023 16:10:50 +0000 Subject: [PATCH] Upload New File --- portfolio/templates/about.html | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 portfolio/templates/about.html diff --git a/portfolio/templates/about.html b/portfolio/templates/about.html new file mode 100644 index 0000000..6238fe5 --- /dev/null +++ b/portfolio/templates/about.html @@ -0,0 +1,45 @@ +{% extends 'layout.html' %} +{% block content %} + +{% block title %}<h3>Project Directory</h3>{% endblock %} + +<div style="display: grid; justify-content: left;"> +<form action="{{ url_for('about') }}" method="POST"> + <label for="year">Year:</label> + <select name="year" id="year"> + <option value=""></option> + <option value="2022">2022</option> + <option value="2021">2021</option> + <option value="2020">2020</option> + </select> + <label for="category">Category:</label> + <select name="category" id="category"> + <option value=""></option> + <option value="Academic">Academic</option> + <option value="Professional">Professional</option> + <option value="Personal">Personal</option> + </select> + <input type="submit" value="Filter"> +</form> +</div> + +<table> + <tr> + <th>Year</th> + <th>Category</th> + <th>Name</th> + <th>Description</th> + </tr> + {% for project in projects %} + <tr> + <td>{{ project.year }}</td> + <td>{{ project.project_category }}</td> + <td>{{ project.project_name }}</td> + <td>{{ project.project_description }}</td> + </tr> + {% endfor %} +</table> + +<div class="table-margin"></div> + +{% endblock content %} \ No newline at end of file -- GitLab