{% 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_hset_value" placeholder=_("value") editable=True can_mutate=can_mutate only %}
{% endif %}

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

{% if type_data.field_entries %}
{% if can_mutate %} {% endif %} {% for field, value, sha1, editable in type_data.field_entries %} {% if can_mutate %} {% endif %} {% 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 can_mutate=can_mutate only %}
{% if editable %} {% else %} {% endif %}
{% if can_mutate %} {% for field, value, sha1, editable in type_data.field_entries %} {% endfor %} {% endif %} {% else %}

{% trans "Hash is empty." %}

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