Skip to content
Snippets Groups Projects
Commit 301ccbfb authored by b4-sharp's avatar b4-sharp
Browse files

Improve item/set page

parent 394826e4
No related branches found
No related tags found
No related merge requests found
{%extends 'base.html' %}
{% block content %}
{% block title %} Item Page | Antiques Online {% endblock %}
<div>
<img src='..\static\image_placeholder.png' alt="Image Placeholder" width="200" height="170">
<br />
Item price: £{{item.price}}
<br />
Item description: {{item.description}}
<br />
<form method="POST" action="{{ url_for('add_to_basket_set') if item.items else url_for('add_to_basket') }}">
{% block content %}
<div class="container vertical-center">
<div class="row">
<div class="col text-center">
<div class="align-items-center">
<img class="align-self-center" src="static\image_placeholder.png" alt="{{ item.description }}"
style="width: 200px; height: 200px;"> <!-- Set image size to ensure content is always fitting. -->
<h2>{{ item.description }}</h2>
<p>£{{ item.price }}</p>
<form method="POST"
action="{{ url_for('add_to_basket_set') if item.items else url_for('add_to_basket') }}">
<input type="hidden" name="item_id" value="{{ item.id }}">
<input class="button" type="submit" value="Add to basket">
</form>
</div>
<div>
</div>
</div>
<div class="row text-center">
{% if item.items %}
<h1>Items contained in set: </h1>
<table>
<table class="table">
<thead>
<tr>
<th>Item description</th>
......@@ -35,4 +40,5 @@
</table>
{% endif %}
</div>
</div>
{% endblock %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment