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

{% trans 'Operations' %}

{% csrf_token %} {% include input_tpl with name="value" rows=4 field_id="id_lpush_value" placeholder=_("value") editable=True only %}
{% csrf_token %} {% include input_tpl with name="value" rows=4 field_id="id_rpush_value" placeholder=_("value") editable=True only %}
{% csrf_token %}
{% csrf_token %}
{% csrf_token %}

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

{% if type_data.item_entries %}
{% for index, item, sha1, editable in type_data.item_entries %} {% 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 only %}
{% if editable %} {% else %} {% endif %}
{% for index, item, sha1, editable in type_data.item_entries %} {% endfor %} {% else %}

{% trans 'List is empty.' %}

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