{% extends "base.html" %} {% block title %}Print {{ template.name }} - Thermal Printer App{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{{ template.name }}

{% if template.description %}

{{ template.description }}

{% endif %}
Back {% if has_script %} Scripted {% endif %} {% if template.variables %} {{ template.variables | length }} field{{ '' if template.variables | length == 1 else 's' }} {% else %} No inputs required {% endif %}
{% if has_script %}
Auto-generated content
This template pulls its own data. Click print whenever you're ready.
{% elif template.variables %}
{% for var in template.variables %}
{% if var.get('markdown', False) %} Markdown supported. Use blank lines to separate paragraphs. {% else %} {% endif %}
{% endfor %}
{% else %}
Ready to print

This template doesn't require any variables.

{% endif %}
Template details
{% if template.variables %}
Field overview
{% for var in template.variables %}
{{ var.description or var.name }}
Key: {{ var.name }}
{% if var.get('markdown', False) %} Markdown {% endif %}
{{ 'Required' if var.get('required', True) else 'Optional' }}
{% endfor %}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}