<script type="text/x-handlebars-template">

    <fieldset data-role="collapsible" id="{{id}}" data-collapsed="{{#if options.collapsed}}true{{else}}false{{/if}}">

        {{#if options.label}}
        <legend for="{{id}}" class="{{#if options.labelClass}}{{options.labelClass}}{{/if}}">{{{options.label}}}</legend>
        {{/if}}

        {{#if options.helpers}}
        {{#each options.helpers}}
        <h3 class="{{#if options.helperClass}}{{options.helperClass}}{{/if}}">
            {{#showMessage .}}{{/showMessage}}
        </h3>
        {{/each}}
        {{/if}}

        <div data-role="controlgroup" class="alpaca-fieldset-items-container">

        </div>

    </fieldset>

</script>