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

Device command{{ page_obj.paginator.count|pluralize }}

{% if page_obj %} {% pagination next_url previous_url %} {% 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 %}
{% pagination next_url previous_url %} {% endif %} {% endblock %}