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

{% if object.icon_url %}{% endif %}{{ object.name }}

{% if object.bundle_id %} {% endif %}
Attribute Value
Product type {{ object.product_type }}
Name {{ object.name }}
iTunes identifier {% if object.store_url %} {{ object.adam_id }} {% else %} {{ object.adam_id }} {% endif %}
iTunes pricing {{ object.pricing_param }}
Device assignable {{ object.device_assignable|yesno }}
Revocable {{ object.revocable|yesno }}
Supported platform{{ object.supported_platforms|length|pluralize }} {{ object.supported_platforms|join:", "|default:"-" }}

App

Bundle ID {{ object.bundle_id|default:"-" }}
Latest version {{ object.lastest_version|default:"-" }}
{% created_updated_at object %}

Location{{ location_assets|length|pluralize }}

{% if location_assets %} {% for location_asset in location_assets %} {% with location_asset.location as location %} {% endwith %} {% endfor %}
Location Assigned Available Retired Total
{% if perms.mdm.view_location %} {{ location }} {% else %} {{ location }} {% endif %} {{ location_asset.assigned_count }} {{ location_asset.available_count }} {{ location_asset.retired_count }} {{ location_asset.total_count }}
{% else %}

No locations found for this asset.

{% endif %}

Artifact{{ artifacts|length|pluralize }}

{% if perms.mdm.add_artifact %} {% url 'mdm:create_asset_artifact' object.pk as url %} {% button 'CREATE' url "Add new Artifact" %} {% endif %}
{% if artifacts %} {% for artifact, store_apps in artifacts %} {% with store_apps|last as latest_store_app %} {% with latest_store_app.location_asset.location as location %} {% endwith %} {% endwith %} {% endfor %}
Name Location Has configuration
{% if perms.mdm.view_artifact %} {{ artifact }} {% else %} {{ artifact }} {% endif %} {% if perms.mdm.view_location %} {{ location }} {% else %} {{ location }} {% endif %} {{ latest_store_app.has_configuration }} {{ latest_store_app.version }}
{% else %}

No artifacts found for this asset.

{% endif %} {% endblock %}