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