{% extends 'base.html' %} {% load static_v %} {% block title %}Fleet Trucks — Admin{% endblock %} {% block extra_head %} {% endblock %} {% block content %}
Admin Portal

Fleet Trucks

← Back to portal

Register a truck on behalf of any fleet company — pick its location on the map and assign which warehouse(s)/industry(ies) it services, so a warehouse-tied order can offer this exact truck at checkout. A company can still add its own trucks from its dashboard; this is admin's view across every company at once.

Register a Truck

{% csrf_token %}

Type exact coordinates directly if you have them — the map above updates to match.

All Trucks

{% for truck in trucks %}
{% if not truck.is_active %}Inactive{% endif %}

{{ truck.nickname|default:"Unnamed truck" }} {{ truck.license_plate }}

{{ truck.company.company_name|default:"— no company —" }} · {{ truck.truck_type.name|default:"—" }} {% if truck.location_lat %} · {{ truck.location_lat|floatformat:4 }}, {{ truck.location_lng|floatformat:4 }}{% endif %}

{% if truck.warehouses %}

Services: {% for w in truck.warehouses %}{{ w.name }}{% if not forloop.last %}, {% endif %}{% endfor %}

{% endif %}
{% csrf_token %}
{% empty %}

No trucks registered yet.

{% endfor %}
{% endblock %} {% block extra_scripts %} {% endblock %}