{% from "table_search.html" import table_search with context %} {% from "utils.html" import batch_state_indicator, submit_button, link, truncated_link %} {% extends "layout.html" %} {% block title %}Batches{% endblock %} {% block head %} {% endblock %} {% block content %}

Batches

{{ table_search("batch-search", base_path ~ "/batches") }} {% for batch in batches %} {% endfor %}
ID Batch Name
{{ batch_state_indicator(batch) }}
{{ link(base_path ~ "/batches/" ~ batch['id'], batch['id']) }}
{% if 'attributes' in batch and 'name' in batch['attributes'] %} {{ truncated_link(base_path ~ "/batches/" ~ batch['id'], batch['attributes']['name']) }} {% else %}
{{ truncated_link(base_path ~ "/batches/" ~ batch['id'], 'no name') }}
{% endif %}
{% if last_batch_id is not none %}
{% if q is not none %} {% endif %} {{ submit_button('Next page') }}
{% endif %}
{% endblock %}