diff --git a/app/templates/inventory/attributes.html b/app/templates/inventory/attributes.html index 6a9d453542d002d96370fcadbe6e9e43e73e4b71..36f15f68c43ea0df3257ba303161e12ad7841cad 100644 --- a/app/templates/inventory/attributes.html +++ b/app/templates/inventory/attributes.html @@ -5,7 +5,7 @@ {% block main %} <ul class="nav nav-tabs"> - {% for attribute in ('Manufacturer', 'Model', 'Location', 'Status') %} + {% for attribute in ('Manufacturer', 'Model', 'Location', 'Status', 'Action') %} <li class="nav-item"> <a class="nav-link {% if attribute == kind %}active{% endif %}" href="{{ url_for('inventory.attributes', kind=attribute) }}">{{ attribute }}</a> </li> @@ -14,7 +14,7 @@ <br> - {% if kind in ('Manufacturer', 'Model', 'Location') or (current_user.is_authenticated and current_user.is_admin) %} + {% if kind in ('Manufacturer', 'Model', 'Location') or (current_user.is_authenticated and current_user.is_admin and kind != 'Action') %} <form id="attributeForm" method="POST"> {{ form.hidden_tag() }} {{ render_field(form.name) }}