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

Device {{ object }}

{% with object.enrolleduser_set.count as users_count %} {% endwith %}
UDID {{ object.udid }}
Serial number {% with object.get_urlsafe_serial_number as urlsafe_serial_number %} {% if urlsafe_serial_number %} {% if perms.inventory.view_machinesnapshot %} {{ object.serial_number }} {% else %} {{ object.serial_number }} {% endif %} {% else %} - {% endif %} {% endwith %}
DEP assignment {% if dep_device %} {% if perms.mdm.view_depvirtualserver %} {{ dep_device.virtual_server }} {% else %} {{ dep_device.virtual_server }} {% endif %} {% else %} - {% endif %}
Platform {{ object.get_platform_display }}
Push certificate {% if perms.mdm.view_pushcertificate %} {{ object.push_certificate }} {% else %} {{ object.push_certificate }} {% endif %}
Blueprint {% if object.blueprint %} {% if perms.mdm.view_blueprint %} {{ object.blueprint }} {% else %} {{ object.blueprint }} {% endif %} {% else %} no blueprint {% endif %} {% if perms.mdm.change_enrolleddevice %} Change {% endif %}
Declarative management {{ object.declarative_management|yesno }}
Certificate fingerprint {{ object.cert_fingerprint.hex }}
Certificate expiry {{ object.cert_not_valid_after|date:"SHORT_DATETIME_FORMAT" }}
Checkout {{ object.checkout_at|date:"SHORT_DATETIME_FORMAT"|default:"-" }}
MDM user{{ users_count|pluralize }} {% if users_count %}
    {% for user in object.enrolleduser_set.all %}
  • {% if perms.mdm.view_enrolleduser %} {{ user.long_name }} {% else %} {{ user.long_name }} {% endif %}
  • {% endfor %}
{% else %} - {% endif %}

{{ installed_artifacts_count }} Artifact{{ installed_artifacts_count|pluralize }}

{% if installed_artifacts_count %} {% for installed_artifact in installed_artifacts %} {% with installed_artifact.artifact_version as artifact_version %} {% with artifact_version.artifact as artifact %} {% endwith %} {% endwith %} {% endfor %}
Type Artifact Version Status Last updated
{{ artifact.get_type_display }} {% if perms.mdm.view_artifact %} {{ artifact }} {% else %} {{ artifact }} {% endif %} {% if perms.mdm.view_artifact %} {{ artifact_version.version }} {% else %} {{ artifact_version.version }} {% endif %} {{ installed_artifact.get_status_display }} {{ installed_artifact.updated_at|date:"SHORT_DATETIME_FORMAT" }}
{% endif %}

Last commands

{% csrf_token %} {% if perms.mdm.change_enrolleddevice %} {% endif %}
{% if perms.mdm.add_devicecommand %}
{% endif %}
{% if commands_count %} {% for command in commands %} {% endfor %}
Name Artifact Time Result time Status
{{ command.name }} {% if command.artifact_version %} {% if perms.mdm.view_artifactversion %} {{ command.artifact_version }} {% else %} {{ command.artifact_version }} {% endif %} {% else %} - {% endif %} {% if command.time %} {{ command.time|date:"SHORT_DATETIME_FORMAT" }} {% else %} Queued since {{ command.created_at|date:"SHORT_DATETIME_FORMAT" }} {% endif %} {{ command.result_time|date:"SHORT_DATETIME_FORMAT"|default:"-" }} {{ command.get_status_display|default:"-" }} {% if command.result %} {% endif %}
{% endif %} {% if enrollment_session_info_count %}

{{ enrollment_session_info_count }} Enrollment session{{ enrollment_session_info_count|pluralize }}

{% include "mdm/_enrollment_session_info_list.html" %} {% endif %} {% endblock %}