{% extends 'base.html' %} {% load static %} {% block title %}Inventory Locations - Inventory Management{% endblock %} {% block content %}
{{ stats.total_locations|default:24 }}
Total Locations
{{ stats.active_locations|default:22 }}
Active Locations
{{ stats.controlled_locations|default:6 }}
Controlled Access
{{ stats.climate_controlled|default:8 }}
Climate Controlled
{% for location in locations %} {% empty %} {% endfor %}
Location Code Name Type Building Full Address Access Control Climate Control Items Manager Status Action
{{ location.location_code }} {{ location.get_location_type_display }} {{ location.building|default:"-" }} {{ location.full_address|default:"-" }} {% if location.access_control == 'OPEN' %} {{ location.get_access_control_display }} {% elif location.access_control == 'BADGE' %} {{ location.get_access_control_display }} {% elif location.access_control == 'BIOMETRIC' %} {{ location.get_access_control_display }} {% else %} {{ location.get_access_control_display }} {% endif %} {% if location.temperature_controlled or location.humidity_controlled %} {% if location.temperature_controlled %}Temp{% endif %} {% if location.humidity_controlled %}{% if location.temperature_controlled %}/{% endif %}Humidity{% endif %} {% else %} None {% endif %} {{ location.total_items|default:0 }} {{ location.location_manager.get_full_name|default:"-" }} {% if location.is_active %} Active {% else %} Inactive {% endif %}
No locations found
{% if is_paginated %}
Showing {{ page_obj.start_index }} to {{ page_obj.end_index }} of {{ paginator.count }} entries
    {% if page_obj.has_previous %} {% endif %} {% for num in page_obj.paginator.page_range %} {% if page_obj.number == num %}
  • {{ num }}
  • {% elif num > page_obj.number|add:'-3' and num < page_obj.number|add:'3' %}
  • {{ num }}
  • {% endif %} {% endfor %} {% if page_obj.has_next %} {% endif %}
{% endif %}
{% endblock %}