diff options
author | shivam kohli <kohlishivam5522@gmail.com> | 2019-04-13 14:50:07 +0530 |
---|---|---|
committer | shivam kohli <kohlishivam5522@gmail.com> | 2019-04-13 14:50:07 +0530 |
commit | fafb356b06831d861a72129ca53ad146127be105 (patch) | |
tree | c71ea65635735a999c2b02e9263a2c41bf5ddc27 | |
parent | a84fc59e22a9e8e5e1032740ee3144d48898afc8 (diff) | |
download | codeless-fafb356b06831d861a72129ca53ad146127be105.tar.gz codeless-fafb356b06831d861a72129ca53ad146127be105.tar.bz2 codeless-fafb356b06831d861a72129ca53ad146127be105.zip |
product page error
-rw-r--r-- | templates/inventory/product.html | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/templates/inventory/product.html b/templates/inventory/product.html index bd2306b..d86623a 100644 --- a/templates/inventory/product.html +++ b/templates/inventory/product.html @@ -71,10 +71,13 @@ with the Taler Codeless Merchant. If not, see <https://www.gnu.org/licenses/>. - <form name="update_stock" action="{{ url_update_inventory }}" method="post" enctype="multipart/form-data"> - {% csrf_token %} - <input type="number" name="stock_updated" id="stock_updated" placeholder="Update Stock" required> - <button name="update_stock" type="submit" class="submit">Update</button> - </form> + {% if digital == 'False' %} + <form name="update_stock" action="{{ url_update_inventory }}" method="post" enctype="multipart/form-data"> + {% csrf_token %} + <input type="number" name="stock_updated" id="stock_updated" placeholder="Update Stock" required> + <button name="update_stock" type="submit" class="submit">Update</button> + <br> + </form> + {% endif %} </div> {% endblock content %}
\ No newline at end of file |