REFACTOR: Changed blueprints to allow for preprocessing of requests
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
{% if product != None %}
|
||||
{% if user.id == product.sellerID %}
|
||||
<!-- Form -->
|
||||
<form class="product-fs" method="POST" action="{{ url_for('main.products.update', id=product.id) }}" enctype="multipart/form-data">
|
||||
<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"/>
|
||||
<div class="product-details">
|
||||
<div class="input-form-row">
|
||||
@ -83,7 +83,7 @@
|
||||
<label class="modal__close" for="deleteModal"></label>
|
||||
<h2>Confirm Delete</h2>
|
||||
<p>Are you sure you want to <b>delete {{product.name}}</b> from your products</p>
|
||||
<form method="POST" action="{{ url_for('main.products.delete', id=product.id) }}">
|
||||
<form method="POST" action="{{ url_for('main.seller.delete', id=product.id) }}">
|
||||
<div class="input-form-row">
|
||||
<input type="submit" class="modal-btn error" for="deleteModal" value="Delete" />
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user