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 %}
|
{% 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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user