<div id="template-modal" class="modal fade" tabindex="-1" role="dialog" data-source="/admin/cms/pages/api/templates">
    <div class="modal-dialog" role="document">
        <form class="form-horizontal">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">Choose a template</h4>
                </div>
                <div class="modal-body">
                    <div id="template-errors" class="alert alert-danger hide">
                        Sorry, we were unable to locate any templates for "{{ $templateCode }}".
                    </div>
                    <div class="form-group" id="template-fields">
                        <label class="control-label col-sm-3">Template</label>
                        <div class="col-sm-6">
                            <select name="template" id="template-selector" class="form-control"></select>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
                    <button id="template-selected" type="button" class="btn btn-primary">Insert</button>
                </div>
            </div>
        </form>
    </div>
</div>
