{% extends 'base.html' %} {% load base_extras ui_extras %} {% block content %}

{{ object }}

User

User ID {{ object.user_id|privacywrapper }}
Short name {{ object.short_name }}
Long name {{ object.long_name }}
Device {% if perms.mdm.view_enrolleddevice %} {{ enrolled_device.udid|privacywrapper }} {% else %} {{ enrolled_device.udid|privacywrapper }} {% endif %}

Artifact{{ target_artifacts_count|pluralize }} ({{ target_artifacts_count }})

{% if target_artifacts_count %} {% for target_artifact in target_artifacts %} {% with target_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 %} {{ target_artifact.get_status_display }} {% if target_artifact.extra_info.reasons %} more info
{% for reason in target_artifact.extra_info.reasons %} {{ reason|pythonprettyprint }} {% endfor %}
{% endif %}
{{ target_artifact.updated_at|date:"SHORT_DATETIME_FORMAT" }}
{% endif %} {% if commands_count > 0 %}

Last commands

{% if perms.mdm.change_enrolleduser %}
{% csrf_token %}
{% endif %}
{% for loaded_command in loaded_commands %} {% with loaded_command.db_command as command %} {% endwith %} {% endfor %}
Name Artifact Time Result time Status
{{ command.name }}{% if command.name != loaded_command.request_type %} ({{ loaded_command.request_type }}){% endif %} {% 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 %} {% url 'mdm:download_enrolled_device_command_result' command.uuid as url %} {% button 'DOWNLOAD' url "Download Result" %} {% endif %}
{% if commands_count > 1 %}

See all commands

{% endif %} {% endif %} {% endblock %}