{% 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="field_value" rows=4 field_id="id_hset_value" placeholder=_("value") editable=True only %}

{% trans 'Hash Fields' %}{% if type_data.length %} ({{ type_data.length }}){% endif %}

{% if type_data.field_entries %}
{% for field, value, sha1, editable in type_data.field_entries %} {% endfor %}
{% trans 'Field' %} {% trans 'Value' %} {% trans 'Actions' %}
{% include input_tpl with name="field_value" value=value rows=2 form_id="hash-update-" row_index=forloop.counter0 editable=editable only %}
{% if editable %} {% else %} {% endif %}
{% for field, value, sha1, editable in type_data.field_entries %} {% endfor %} {% else %}

{% trans 'Hash is empty.' %}

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