{% load i18n %}
{% trans "Printer details" %}
{% if printer.status_text %} {% endif %}
{% trans "Name" %} {{ printer.name }}
{% trans "Location" %} {{ printer.location|default:"–" }}
{% trans "Description" %} {{ printer.description|default:"–" }}
{% trans "Last seen at" %} {{ printer.last_seen_at|default:_("never seen yet") }}
{% trans "Status" %} {% include "kort/printer/status.html" %}
{{ printer.status_text }}
{% if printer.status == "not_registered" %}
{% trans "Setup printer client" %}

{% blocktrans %} To enable printing, you have to register the print client on the device which the printer is connected to. {% endblocktrans %}

{% trans "1. Download print client" %}
{% trans "2. Download configuration file" %}
{% trans "Download configuration" %}
{% trans "3. Setup client" %}
kort-client setup {{ printer.config_filename }}
{% else %}
{% trans "Print jobs" %}
{% for job in printer.get_jobs %} {% endfor %}
{% trans "Card" %} {% trans "Created at" %} {% trans "Status" %}
{% if job.status == "finished" %} {% elif job.status == "failed" %} {% else %} {% endif %} {{ job.card }} {{ job.created }} {{ job.status }} {% if job.status_text %}({{ job.status_text }}){% endif %} {% if job.status == "registered" %} {% endif %}
{% endif %}