#10 Added Product section to admin page
This commit is contained in:
@ -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"/>
|
||||
|
Reference in New Issue
Block a user