Add add item button to top of inventory view
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Madis Mägi 2024-08-30 20:57:20 +03:00
parent 7d5737e42d
commit 5965b56317

View File

@ -3,6 +3,15 @@
{% block content %}
<div class="container">
{% include "inventory_filter.html" %}
{% macro add_item_button() -%}
<p>
<a class="waves-effect waves-light btn" href="/m/inventory/add">Add item</a>
</p>
{%- endmacro %}
{{ add_item_button() }}
<table>
<thead>
<tr>
@ -50,9 +59,7 @@
{% endfor %}
</tbody>
</table>
<p>
<a class="waves-effect waves-light btn" href="/m/inventory/add">Add item</a>
</p>
{{ add_item_button() }}
</div>
<script>
$('button.audit-button').on('click', function() {