{% load i18n %} {% with input_tpl="admin/django_cachex/key/key_detail_value_input.html#value-input" %} {% if can_mutate %}

{% trans "Operations" %}

{% csrf_token %}
{% include input_tpl with name="field_value" rows=4 field_id="id_xadd_value" placeholder=_("value") editable=True can_mutate=can_mutate only %}
{% csrf_token %} {% translate "max length" as maxlen_placeholder %} {% translate "Max length" as maxlen_label %}
{% endif %}

{% trans "Stream Entries" %}{% if type_data.length %} ({{ type_data.length }}){% endif %}

{% if type_data.entries %}
{% if can_mutate %} {% endif %} {% for entry_id, fields in type_data.entries %} {% if can_mutate %} {% endif %} {% endfor %}
{% trans "Entry ID" %} {% trans "Fields" %}{% trans "Actions" %}
{{ entry_id }} {% for field, value in fields.items %}{{ field }}: {{ value }}{% if not forloop.last %}, {% endif %}{% endfor %}
{% csrf_token %}
{% else %}

{% trans "Stream is empty." %}

{% endif %} {% include "admin/django_cachex/key/key_detail_pagination.html" %}
{% endwith %}