Add add item button to top of inventory view
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
7d5737e42d
commit
5965b56317
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user