{% load i18n l10n %} {% 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="value" rows=4 field_id="id_lpush_value" placeholder=_("value") editable=True can_mutate=can_mutate only %}
{% csrf_token %} {% include input_tpl with name="value" rows=4 field_id="id_rpush_value" placeholder=_("value") editable=True can_mutate=can_mutate only %}
{% csrf_token %}
{% csrf_token %}
{% csrf_token %}
{% endif %}

{% trans "List Items" %}{% if type_data.length %} ({{ type_data.length }}){% endif %}

{% if type_data.item_entries %}
{% if can_mutate %} {% endif %} {% for index, item, sha1, editable in type_data.item_entries %} {% if can_mutate %} {% endif %} {% endfor %}
{% trans "Index" %} {% trans "Value" %}{% trans "Actions" %}
{{ index }} {% include input_tpl with name="value" value=item rows=2 form_id="list-update-" row_index=forloop.counter0 editable=editable can_mutate=can_mutate only %}
{% if editable %} {% translate "Remove the first item in the list matching this value?" as confirm_remove %} {% else %} {% endif %}
{% if can_mutate %} {% for index, item, sha1, editable in type_data.item_entries %} {% endfor %} {% endif %} {% else %}

{% trans "List is empty." %}

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