{% extends "layout.twig" %}

{% block title %}${ "Edit Tag" | translate("tags") }{% endblock %}

{% block content %}
            <h1>${ "Edit Tag &#8220;%s&#8221;" | translate("tags") | format(tag.name) }</h1>
            <div class="tag_cloud">
                <form action="{% admin "update_tag" %}" method="post" accept-charset="utf-8">
                    <fieldset>
                        <p>
                            <input type="text" name="name" value="${ tag.name | escape }" id="name" class="big" size="${ tag.name | length + 10 }" />
                        </p>
                        <p class="buttons">
                            <button class="yay" name="delete">
                                <img src="$theme_url/images/icons/success.png" alt="delete" /> ${ "Rename" | translate("tags") }
                            </button>
                            <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
                            <input type="hidden" name="original" value="${ tag.name | escape }" id="clean" />
                        </p>
                    </fieldset>
                </form>
            </div>
{% endblock %}
