<div class="form-group">
    <label for="inputTags" class="col-sm-3 control-label">{{ 'select_tag'|_ }}</label>
    <div class="col-sm-9">
        <select id="inputTags" name="tag[]" multiple="multiple" class="form-control">
            {% for year in tags %}
            <optgroup label="{{ year.year }}">
                {% for tag in year.tags %}
                    <option value="{{ tag.id }}" label="{{ tag.tag|e('html') }}">{{ tag.tag|e('html') }}</option>
                {% endfor %}
            {% endfor %}

        </select>
    </div>
</div>
