<div class="panel panel-default lt-module-page__content-panel">
    <div class="panel-heading">{{'General' | translate}}</div>

    <div class="panel-body">
        <div class="wizdom-controls">
            <div class="container-fluid">
                <div class="row wizdom-controls-row noborder">

                    <form role="form" class="form-horizontal">
                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">Url to be used in emails</label>
                            </div>
                            <div class="col-sm-8">
                                <input class="form-control" ng-model="vm.instanceUrl" />
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">Send emails to supporters</label>
                            </div>
                            <div class="col-sm-8">
                                <select class="form-control" ng-model="vm.sendEmailToSupporters">
                                    <option ng-value="true">{{'Yes' | translate}}</option>
                                    <option ng-value="false">{{'No' | translate}}</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">Email templates for "New comment added by user"</label>
                            </div>
                            <div class="col-sm-8">
                                <select class="form-control" ng-model="vm.templateCommentAddedByUser" ng-options="templateUrl for templateUrl in vm.templates"></select>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">Email templates for "New comment added by supporter"</label>
                            </div>
                            <div class="col-sm-8">
                                <select class="form-control" ng-model="vm.templateCommentAddedBySupporter" ng-options="templateUrl for templateUrl in vm.templates"></select>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">Email templates for "Supporter is assigned"</label>
                            </div>
                            <div class="col-sm-8">
                                <select class="form-control" ng-model="vm.templateSupporterAssigned" ng-options="templateUrl for templateUrl in vm.templates"></select>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">Email templates for "Ticket is ready to be closed"</label>
                            </div>
                            <div class="col-sm-8">
                                <select class="form-control" ng-model="vm.templateTicketReadyToBeClosed" ng-options="templateUrl for templateUrl in vm.templates"></select>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">Email templates for "Ticket updated"</label>
                            </div>
                            <div class="col-sm-8">
                                <select class="form-control" ng-model="vm.templateTicketUpdated" ng-options="templateUrl for templateUrl in vm.templates"></select>
                            </div>
                        </div>

                    </form>
                </div>
                 
            </div>
        </div>
        <button type="button" ng-click="vm.save();" class="btn btn-success" ng-disabled="vm.saving">{{'Save' | translate}}</button>
    </div>
</div>