{% extends 'base.html' %} {% load base_extras ui_extras %} {% block content %}
| Enrollment | Business unit | Assigned devices | Created at | Updated at | {% for enrollment in object.depenrollment_set.all %}
|---|---|---|---|---|
|
{% if perms.mdm.view_depenrollment %}
{{ enrollment }}
{% else %}
{{ enrollment }}
{% endif %}
{{ enrollment.uuid }} |
{{ enrollment.enrollment_secret.meta_business_unit }} | {{ enrollment.assigned_devices.count }} | {{ enrollment.created_at|date:"SHORT_DATETIME_FORMAT" }} | {{ enrollment.updated_at|date:"SHORT_DATETIME_FORMAT" }} |
| Serial number | Profile | Last Assigment | Status | {% if perms.mdm.change_depdevice %}{% endif %} {% for device in latest_devices %} |
|---|---|---|---|---|
| {% if perms.mdm.view_depdevice %} {{ device.serial_number|privacywrapper }} {% else %} {{ device.serial_number|privacywrapper }} {% endif %} {% if device.is_deleted %} DELETED{% endif %} | {% if device.enrollment %} {% if perms.mdm.view_depenrollment %} {{ device.enrollment }} {% else %} {{ device.enrollment }} {% endif %} {% else %} - {% endif %} | {{ device.device_assigned_by|default:"-" }} {% if device.device_assigned_by %} - {{ device.device_assigned_date|date:"SHORT_DATETIME_FORMAT"|default:"-" }}{% endif %} | {{ device.profile_status }} {% if device.profile_status == "pushed" and device.profile_push_time %} - {{ device.profile_push_time|date:"SHORT_DATETIME_FORMAT" }}{% endif %} | {% if perms.mdm.change_depdevice %}{% if not dep_device.is_deleted %} {% endif %} | {% endif %}