{% extends 'base.html' %}
{% load inventory_extras ui_extras %}
{% block content %}
{{ object }}
[USER]
{% if not secret.is_revoked %}
{% url 'mdm:update_user_enrollment' object.pk as url %}
{% button 'UPDATE' url "Edit User Enrollment" %}
{% endif %}
{% with object.enrollment_secret as secret %}
| Display name |
{{ object.display_name }} |
| Push certificate |
{% if perms.mdm.view_pushcertificate %}
{{ object.push_certificate }}
{% else %}
{{ object.push_certificate }}
{% endif %}
|
| SCEP config |
{% if perms.mdm.view_scepconfig %}
{{ object.scep_config }}
{% else %}
{{ object.scep_config }}
{% endif %}
{% if object.scep_verification %}
/ with CSR verification
{% else %}
/ without CSR verification
{% endif %}
|
| Realm |
{% if object.realm %}
{% if perms.realms.view_realm %}
{{ object.realm }}
{% else %}
{{ object.realm }}
{% endif %}
{% else %}
-
{% endif %}
|
| Blueprint |
{% if object.blueprint %}
{% if perms.mdm.view_blueprint %}
{{ object.blueprint }}
{% else %}
{{ object.blueprint }}
{% endif %}
{% else %}
-
{% endif %}
|
| Business unit |
{{ secret.meta_business_unit }} |
| Enrollment tag{{ secret.tags.count|pluralize }} |
{% for tag in secret.tags.all %}{% inventory_tag tag %}{% empty %}-{% endfor %} |
Authentication
Restrictions
| Quota |
{% if secret.quota %}{{ secret.quota }}{% else %}-{% endif %} |
Status
| Request count
|
{{ secret.request_count }}{% if secret.quota %}/{{ secret.quota }}{% endif %}
|
| Expired |
{{ secret.expired_at|date:"SHORT_DATETIME_FORMAT"|default:"no" }}
|
| Revoked |
{% if secret.is_revoked %}
{{ secret.revoked_at|date:"SHORT_DATETIME_FORMAT" }}
{% else %}
no
{% if perms.mdm.change_otaenrollment %}
Revoke
{% else %}
no
{% endif %}
{% endif %}
|
{% created_updated_at object %}
{% endwith %}