<div ng-controller="ServicemenuPropertiesController as vm" class="lt-module-page">

    <div class="lt-module-page__top lt-module-page-top">
        <div class="lt-module-page-top__title">
            <h1>Properties</h1>
        </div>
        <div class="lt-module-page-top__actions">
            <div class="saveConfigurationButton">
                <button class="btn btn-primary"
                        ng-disabled="vm.saving"
                        ng-click="vm.save()">
                    {{vm.saving ? 'Saving' : 'Save configuration' | translate}}
                </button>
            </div>
        </div>
    </div>


    <div class="lt-module-page__content">
        <div class="container-fluid">
            <div class="wizdom-controls">
                <div class="row wizdom-controls-row noborder">
                    <div class="col-sm-12">
                        <form role="form" class="form-horizontal">
                            <div class="form-group">
                                <div class="col-xs-4">
                                    <label class="control-label">{{'Search bar' | translate}}</label>
                                </div>
                                <div class="col-xs-8">
                                    <select class="form-control" ng-model="vm.searchbar" ng-options="opt.value as opt.name for opt in vm.searchbarOptions"></select>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-xs-4">
                                    <label class="control-label">{{'Toolbar' | translate}}</label>
                                </div>
                                <div class="col-xs-8">
                                    <select class="form-control" ng-model="vm.toolbar" ng-options="opt.value as opt.name for opt in vm.toolbarOptions" ng-change="vm.onToolbarChange()"></select>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-xs-4">
                                    <label class="control-label">{{'Template' | translate}}</label>
                                </div>
                                <div class="col-xs-8">
                                    <wizdom365-template-picker template-url="vm.templateUrl"
                                                               directory-path="Servicemenu/Templates/ViewTemplates">
                                    </wizdom365-template-picker>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-xs-4">
                                    <label class="control-label">{{'Template Buttons' | translate}}</label>
                                </div>
                                <div class="col-xs-8">
                                    <wizdom365-template-picker template-url="vm.buttonTemplateUrl"
                                                               directory-path="Servicemenu/Templates/ViewTemplates">
                                    </wizdom365-template-picker>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-xs-4">
                                    <label class="control-label">{{'Template Mobile Buttons' | translate}}</label>
                                </div>
                                <div class="col-xs-8">
                                    <wizdom365-template-picker template-url="vm.buttonMobileTemplateUrl"
                                                               directory-path="Servicemenu/Templates/ViewTemplates">
                                    </wizdom365-template-picker>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-xs-4">
                                    <label class="control-label">{{'Allow personal links' | translate}}</label>
                                </div>
                                <div class="col-xs-8">
                                    <div class="checkbox">
                                        <label>
                                            <input type="checkbox"
                                                   ng-model="vm.serviceMenu.allowPersonalLinks">
                                        </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-xs-4">
                                    <label class="control-label">{{'Allow user to delete predefined links' | translate}}</label>
                                </div>
                                <div class="col-xs-8">
                                    <div class="checkbox">
                                        <label>
                                            <input type="checkbox"
                                                   ng-model="vm.serviceMenu.allowDeleteLinks">
                                        </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-xs-4">
                                    <label class="control-label">{{'Allow user to sort predefined links' | translate}}</label>
                                </div>
                                <div class="col-xs-8">
                                    <div class="checkbox">
                                        <label>
                                            <input type="checkbox"
                                                   ng-model="vm.serviceMenu.allowSortLinks">
                                        </label>
                                    </div>
                                </div>
                            </div>

                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
</div>