#10 Added Product section to admin page

This commit is contained in:
2024-02-14 16:46:30 +00:00
parent 45d2773f9a
commit d6f7b3e549
7 changed files with 90 additions and 8 deletions

View File

@ -2,7 +2,7 @@
<link rel="stylesheet" href="{{ url_for('static', filename='css/loginform.css') }}">
{% if product != None %}
{% if user.id == product.sellerID %}
{% if user.id == product.sellerID or user.role == "Admin" %}
<!-- Form -->
<form class="product-fs" method="POST" action="{{ url_for('main.seller.update', id=product.id) }}" enctype="multipart/form-data">
<img class="product-image" src="{{ url_for('static', filename='assets/img/products/' + product.image) }}" alt="Brake Disks"/>