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

    <div class="lt-module-page__top lt-module-page-top">
        <div class="lt-module-page-top__title">
            <h1>{{'Configuration' | translate}}</h1>
        </div>
        <div class="lt-module-page-top__actions">
            <div>
                {{'Configuration' | translate}}
            </div>
            <div class="lt-module-page--paddingleft">
                <wizdom365-specific-configuration-picker module="'Footer'"></wizdom365-specific-configuration-picker>
            </div>
            <div class="lt-module-page--paddingleft">
                <button class="btn btn-primary wide-config-btn"
                        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-6">
                            <label class="control-label">{{'Enabled' | translate}}</label>
                        </div>

                        <div class="col-xs-6">
                            <div class="checkbox">
                                <label><input type="checkbox" ng-model="vm.enabled"></label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-xs-6">
                            <label class="control-label">{{'Footer text' | translate}}</label>
                        </div>

                        <div class="col-xs-6">
                            <input class="form-control" type="text" ng-model="vm.setting.FooterText['#text']">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-xs-6">{{'Template' | translate}}</label>

                        <div class="col-xs-6">
                            <wizdom365-template-picker template-url="vm.setting.TemplateUrl" directory-path="Footer/Templates/ViewTemplates"></wizdom365-template-picker>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-xs-6">
                            <label class="control-label">{{'Allow personal links' | translate}}</label>
                        </div>

                        <div class="col-xs-6">
                            <div class="checkbox">
                                <label><input type="checkbox" class="linkcollection-checkbox" ng-model="vm.footer.allowPersonalLinks"></label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-xs-6">
                            <label class="control-label">{{'Allow user to delete predefined links' | translate}}</label>
                        </div>

                        <div class="col-xs-6">
                            <div class="checkbox">
                                <label><input type="checkbox" class="linkcollection-checkbox" ng-model="vm.footer.allowDeleteLinks"></label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-xs-6">
                            <label class="control-label">{{'Allow user to sort predefined links' | translate}}</label>
                        </div>

                        <div class="col-xs-6">
                            <div class="checkbox">
                                <label><input type="checkbox" class="linkcollection-checkbox" ng-model="vm.footer.allowSortLinks"></label>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
                </div>
            </div>
        </div>
    </div>
</div>