Implemented purchase

This commit is contained in:
2020-11-29 00:00:01 +01:00
parent 8a3ac21d61
commit d28cc70519
3 changed files with 30 additions and 4 deletions

View File

@@ -15,7 +15,8 @@
<a href="{{ url_for('ContentView:caff', id_=item.id) }}" class="btn btn-lg btn-success"
target="_self">Download</a>
{% else %}
<a href="#" class="btn btn-lg btn-primary" target="_blank">Purchase</a>
<a href="{{ url_for("PurchaseView:get", id_=item.id) }}" class="btn btn-lg btn-primary"
target="_self">Purchase</a>
{% endif %}
</div>
</div>

View File

@@ -22,6 +22,10 @@
<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>