{% load i18n %} {# Add elements template for all key types #}

{% trans "Add Elements" %}

{% if not allow_key_edit %}

{% trans "Element adding is disabled for this instance. Enable ALLOW_KEY_EDIT in your configuration to add elements to Redis keys." %}

{% endif %} {% if key_data.type == "string" %}

{% trans "String keys do not support adding elements. Use the value editing section to modify the string content or add a new key and string value." %}

{% elif key_data.type == "list" %}
{% csrf_token %}
{% elif key_data.type == "set" %}
{% csrf_token %}

{% trans "Duplicates will be ignored." %}

{% elif key_data.type == "zset" %}
{% csrf_token %}
{% elif key_data.type == "hash" %}
{% csrf_token %}
{% else %}

{% trans "Adding elements is not supported for this key type:" %} {{ key_data.type }}

{% endif %}