Commit 67580d3f authored by Gab De Jesus's avatar Gab De Jesus

Added more data, formatted html to display all data of reviews

parent 6d0dedb1
No preview for this file type
<center><h1>Reviews</h1></center> <!DOCTYPE html>
{% for review in reviews %} <html>
<h2>{{ review.prof.first_name }} {{ review.prof.last_name }}</h2> <head>
<p>{{ review.message }}</p> <title>Academe</title>
{% endfor %} <style>
\ No newline at end of file table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head>
<body>
<center><h1>Reviews</h1></center>
<table style="border: 1px solid black">
<tr>
<th>Prof Name</th>
<th>Review</th>
<th>Rating</th>
<th>Created At</th>
<th>Updated At</th>
</tr>
<!-- Create the table rows -->
{% for review in reviews %}
<tr>
<td>{{ review.prof.first_name }} {{ review.prof.last_name }}</td>
<td>{{ review.message }}</td>
<td>{{ review.rating }}</td>
<td>{{ review.created_at }}</td>
<td>{{ review.updated_at }}</td>
</tr>
{% endfor %}
</table>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment