<div class="lt-module-page">
    
    <div class="lt-module-page__top lt-module-page-top">
        <div class="lt-module-page-top__title">
            <h1>{{title | translate}}</h1>
        </div>
        <div class="lt-module-page-top__actions">

            <div class="lt-module-page--paddingleft" ng-if='(node == "Megamenu" || node == "CssGenerator")'>
                {{'Configuration' | translate}}
                <wizdom365-specific-configuration-picker module="node"></wizdom365-specific-configuration-picker>
            </div>
            <div class="lt-module-page--paddingleft">
                <button class="btn btn-primary"
                        ng-disabled="saving"
                        ng-click="saveConfig()">
                    {{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">
                        <div class="form-horizontal">                            
                            <div class="form-group" ng-repeat="setting in settings">
                                <div class="col-xs-4">
                                    <label class="control-label" for="{{setting.name | translate}}">{{setting.friendlyName | translate}}</label>
                                </div>
                                <div ng-if="!setting.valueObj['@warningMessage']" class="col-xs-8"
                                     wizdom-include="getSettingTemplate(setting.type);">
                                </div>
                                <div ng-if="setting.valueObj['@warningMessage']" class="col-xs-6">
                                    <label class="control-label">{{setting.valueObj['@warningMessage'] | translate}}</label>
                                </div>
                                <div ng-if="setting.valueObj['@warningMessage']" class="col-xs-2" wizdom-include="getSettingTemplate(setting.type);"></div>

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

</div>