{% extends "telemeta/admin.html" %}
{% load i18n %}

{% block head_title %}{% trans "Enumeration" %}: {{ enumeration_name|capfirst }} - {{ block.super }}{% endblock %}

{% block tabcontents %}
 <h4>{% trans "Enumeration" %}: {{ enumeration_name|capfirst }}</h4>

 <form class="mod" id="addenum" method="post"
    action="{% url telemeta-enumeration-record-update enumeration_id,enumeration_record.id %}">{% csrf_token %}
  <fieldset>
   <legend>{% trans "Modify an entry" %}</legend>
   <div class="field">
    <label>{% trans "Value" %}: <input id="id_value_edit" type="text" name="value" value="{{enumeration_record.value}}" /></label>

   </div>
   <br />
   <div class="buttons">
        <a href="#" class="component_icon button icon_save"
   onclick="document.getElementById('addenum').submit(); return false;">{% trans "Save" %}</a>
        <a href="{% url telemeta-enumeration-edit enumeration_id %}"
           class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
   </div>
  </fieldset>
 </form>
  <br style="clear: right"/>

{% endblock %}
