{% extends 'base.html' %} {% load bootstrap %} {% block content %}

DEP virtual server {{ object }}

name
{{ object.name }}
uuid
{{ object.uuid }}
Created at
{{ object.created_at|date:'r' }}
Updated at
{{ object.updated_at|date:'r' }}
{% with object.organization as org %}

DEP organization

name
{{ org.name }}
admin
{{ org.admin_id }}
email
{{ org.email }}
phone
{{ org.phone }}
address
{{ org.address_lines|linebreaksbr }}
type
{{ org.type }}
version
{{ org.version }}
{% endwith %} {% with object.token as token %}

DEP Token

{% if perms.mdm.change_change_depvirtualserver and token %} Renew
expiry
{% if token.expires_soon %} {{ token.access_token_expiry|date:'r' }} {% else %} {{ token.access_token_expiry|date:'r' }} {% endif %}
{% endif %}
{% endwith %}
{% with object.depenrollment_set.count as enrollment_count %}

{{ enrollment_count }} Profile{{ enrollment_count|pluralize }}

{% if enrollment_count %} {% for enrollment in object.depenrollment_set.all %} {% endfor %}
Enrollment Business unit Assigned devices Created at Updated at
{{ enrollment }}
{{ 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" }}
{% endif %} {% endwith %}
{% with object.depdevice_set.count as device_count %}

{{ device_count }} Device{{ device_count|pluralize }}

{% if perms.mdm.change_depvirtualserver %} Sync {% endif %} {% if device_count %} {% if perms.mdm.change_depdevice %} {% endif %} {% for device in object.depdevice_set.all %} {% if perms.mdm.change_depdevice %} {% endif %} {% endfor %}
Serial number Profile Last Assigment Status
{{ device }}{% 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 not dep_device.is_deleted %}
{% csrf_token %}
{% endif %}
{% endif %} {% endwith %}
{% endblock %} {% block extrajs %} {% endblock %}