{% 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 %}
{% trans 'Enter the value to add to the list.' %}
{% trans 'Choose where to add the new item in the list.' %}
{% elif key_data.type == "set" %}
{% csrf_token %}
{% trans 'Enter the member to add to the set. Duplicates will be ignored.' %}
{% elif key_data.type == "zset" %}
{% csrf_token %}
{% trans 'Enter the numeric score for the member.' %}
{% trans 'Enter the member to add to the sorted set.' %}
{% elif key_data.type == "hash" %}
{% csrf_token %}
{% trans 'Enter the field name for the hash.' %}
{% trans 'Enter the value for the field.' %}
{% else %}
{% trans 'Adding elements is not supported for this key type:' %} {{ key_data.type }}
{% endif %}