{% extends "_layouts/cp" %} {% set docsUrl = 'http://docs.buildwithcraft.com/cp/settings/tags.html#settings' %} {% import "_includes/forms" as forms %} {% set content %}
{% if tagSet.id %}{% endif %}
{{ forms.textField({ first: true, label: "Name"|t, instructions: "What this tag set will be called in the CP."|t, id: 'name', name: 'name', value: tagSet.name, errors: tagSet.getErrors('name'), autofocus: true, required: true, translatable: true }) }} {{ forms.textField({ label: "Handle"|t, instructions: "How you’ll refer to this tag set in the templates."|t, id: 'handle', class: 'code', name: 'handle', value: tagSet.handle, errors: tagSet.getErrors('handle'), required: true }) }}

{% endset %} {% if not tagSet.handle %} {% set js %} new Craft.HandleGenerator('#name', '#handle'); {% endset %} {% includeJs js %} {% endif %}