{% extends "base.html" %} {% block title %}Admin Panel - SW Labs Management{% endblock %} {% block content %}

Admin Panel

System Overview

{{ labs|length }}

Total Labs

{{ stations|length }}

Total Stations

{{ devices|length }}

Total Devices

{{ users|length }}

Total Users

Labs Management
Add Lab
{% for lab in labs %} {% endfor %}
ID Name Location Stations Created Actions
{{ lab.id }} {{ lab.name }} {{ lab.location or 'N/A' }} {{ lab.stations|length }} {{ lab.created_at.strftime('%Y-%m-%d') }}
Stations Management
Add Station
{% for station in stations %} {% endfor %}
ID Name Lab Functional Status Occupation Status Devices Created Actions
{{ station.id }} {{ station.name }} {{ station.lab.name }} {% if station.is_functional %} Functional {% else %} Non-functional {% endif %} {% if station.is_occupied %} Occupied {% if station.occupied_until %}
Until: {{ station.occupied_until.strftime('%H:%M') }} {% endif %} {% else %} Available {% endif %}
{{ station.devices|length }} {{ station.created_at.strftime('%Y-%m-%d') }}
Devices Management
Add Device
{% for device in devices %} {% endfor %}
ID Name Type IP Address Station Status Created Actions
{{ device.id }} {{ device.name }} {{ device.device_type }} {{ device.ip_address }} {{ device.station.name }} {% if device.is_online %} Online {% else %} Offline {% endif %} {{ device.created_at.strftime('%Y-%m-%d') }}
Users Management
Add User
{% for user in users %} {% endfor %}
ID Username Email Role Created Actions
{{ user.id }} {{ user.username }} {{ user.email }} {% if user.is_admin %} Admin {% else %} User {% endif %} {{ user.created_at.strftime('%Y-%m-%d') }}
{% endblock %} {% block scripts %} {% endblock %}