Files
webshop/src/templates/purchase.html
2020-11-29 00:00:01 +01:00

51 lines
2.1 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends 'base.html' %}
{% block content %}
{% if current_user.is_authenticated %}
<div class="jumbotron">
<h1 class="display-3">Purchase animation</h1>
<div class="container">
<div class="row">
<div class="col-md-6 col-12">
<p>You are about to purchase the following item: </p>
<table class="table table-responsive">
<tbody>
<tr class="table-active">
<th scope="row">Name</th>
<td>{{ item.name }}</td>
</tr>
<tr class="table-active">
<th scope="row">Uploader</th>
<td>{{ item.uploader.name }}</td>
</tr>
<tr class="table-active">
<th scope="row">Upload date</th>
<td>{{ item.upload_date }}</td>
</tr>
<tr class="table-active">
<th scope="row">Price</th>
<td> </td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-6 col-12 text-right">
<img src="{{ url_for('ContentView:preview', id_=item.id) }}" class="card-img"
alt="{{ item.name }}">
</div>
</div>
</div>
<div class="mt-5 text-center">
<form method="POST" action="">
<p>
<button type="submit" class="btn btn-danger">Yes, purchase this item!</button>
</p>
</form>
</div>
</div>
{% else %}
<p><a href="{{ url_for_security('login') }}">Log in</a> to purchase an animation.</p>
{% endif %}
{% endblock %}