Skip to content
Snippets Groups Projects
Commit 54107e2d authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Add Action tab next to attributes

Allow to easily print the actions
parent d30c63a4
No related branches found
No related tags found
No related merge requests found
......@@ -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) }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment