Minor fixes to the button fragment.
This commit is contained in:
parent
9ca9aa86a1
commit
356435c785
2 changed files with 1 additions and 10 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
{% macro render_button(id, icon, style='primary', logic = None) %}
|
||||
<!-- Button Fragment -->
|
||||
<button type="submit" class="btn btn-{{ style }}" id="{{ id }}Button">{{ icons.render_icon(icon, 16) }}</button>
|
||||
<button type="button" class="btn btn-{{ style }}" id="{{ id }}Button">{{ icons.render_icon(icon, 16) }}</button>
|
||||
{% if logic %}
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", (e) => {
|
||||
|
|
|
@ -114,15 +114,6 @@
|
|||
),
|
||||
right=buttonBar
|
||||
) }}
|
||||
{# { breadcrumbs.breadcrumb_header(
|
||||
breadcrumbs=[
|
||||
{'label': "Inventory", 'url': url_for('main.list_inventory')}
|
||||
],
|
||||
title=title,
|
||||
save_button=True,
|
||||
delete_button= item.id != None
|
||||
) } #}
|
||||
|
||||
{% if item.condition in ["Removed", "Disposed"] %}
|
||||
<div class="alert alert-danger">
|
||||
This item is not available and cannot be edited.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue