{% extends "pages/base.html" %} {% load i18n %} {% block title %}{{ command_template.display_title }}{% endblock %} {% block content %}
{% if cover_image_url %} {% endif %}

{{ command_template.name }}

{{ command_template.display_title }}

{% if command_template.description %}

{{ command_template.description }}

{% endif %}
{% trans "Command" %}
{{ command_template.command_name }}
{% trans "Lifecycle" %}
{{ command_template.get_lifecycle_mode_display }}
{% trans "Source" %}
{{ command_template.get_source_display }}
{% trans "View" %}
{{ command_template.get_view_kind_display }}
{% if qr_data_uri %} {% trans 'QR code' %} {% endif %}

{{ qr_url }}

{% if command_template.instructions %}

{% trans "Instructions" %}

{{ command_template.instructions|linebreaks }}
{% endif %} {% if can_view_execution_history %}
{% include subview_template %}

{% trans "Card Consistency" %}

{{ valid_card_count }} / {{ card_checks|length }} {% trans "valid" %}
{% for check in card_checks %} {% empty %} {% endfor %}
{% trans "RFID" %} {% trans "Name" %} {% trans "Payload" %} {% trans "Lifecycle" %} {% trans "Result" %} {% trans "Linked" %} {% trans "Valid" %}
{{ check.rfid.display_label }} {{ check.name_matches|yesno:"ok,check" }} {{ check.payload_matches|yesno:"ok,check" }} {{ check.lifecycle_matches|yesno:"ok,check" }} {{ check.result_matches|yesno:"ok,check" }} {{ check.linked|yesno:"ok,check" }} {{ check.valid|yesno:"valid,invalid" }}
{% trans "No cards have been linked to this template yet." %}

{% trans "Past Runs" %}

{% for execution in executions %} {% empty %} {% endfor %}
{% trans "Triggered" %} {% trans "RFID" %} {% trans "User" %} {% trans "Reader" %} {% trans "Status" %} {% trans "Detail" %}
{{ execution.triggered_at }} {{ execution.rfid.display_label|default:execution.rfid_value }} {{ execution.run_as_user|default:"-" }} {{ execution.reader_id|default:"-" }} {{ execution.get_status_display }} {% if execution.status_detail %} {{ execution.status_detail }} {% elif execution.result.summary %} {{ execution.result.summary }} {% else %} - {% endif %}
{% trans "No runs have been recorded for this template yet." %}

{% trans "Template Payload" %}

{% trans "Parameters" %}

{{ template_params_json }}

{% trans "Sigils" %}

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