{% extends "base.html" %} {% load form_helpers %} {% block title %}Import Device Assignments{% endblock title %} {% block content %}

Import Device Assignments

Upload a CSV file with columns device and function_code. Use the device name or UUID. Leave function_code empty to clear an assignment.

{% csrf_token %} {% render_form form %} Download Template Export Current Assignments
{% if result %}
Import Results

{{ result.summary }}

{% for row in result.rows %} {% empty %} {% endfor %}
Row Device Function Code Status Message
{{ row.row_number }} {{ row.device_name }} {{ row.function_code_slug|default:"—" }} {{ row.status }} {{ row.message }}
No rows processed.
{% endif %} {% endblock content %}