{% extends "base.html" %} {% from "components/ui.html" import page_header %} {% block content %} {% set breadcrumbs = [ {'text': 'Inventory', 'url': url_for('inventory.list_stock_items')}, {'text': 'Warehouses'} ] %} {{ page_header( icon_class='fas fa-warehouse', title_text='Warehouses', subtitle_text='Manage warehouse locations', breadcrumbs=breadcrumbs, actions_html='Create Warehouse' if (current_user.is_admin or has_permission('manage_warehouses')) else None ) }}
{% for warehouse in warehouses %} {% else %} {% endfor %}
{{ _('Code') }} {{ _('Name') }} {{ _('Contact Person') }} {{ _('Contact Email') }} {{ _('Status') }} {{ _('Actions') }}
{{ warehouse.code }} {{ warehouse.name }} {{ warehouse.contact_person or '—' }} {% if warehouse.contact_email %} {{ warehouse.contact_email }} {% else %} — {% endif %} {% if warehouse.is_active %} {{ _('Active') }} {% else %} {{ _('Inactive') }} {% endif %} {% if current_user.is_admin or has_permission('manage_warehouses') %} {% endif %}
{{ _('No warehouses found.') }}
{% endblock %}