<div id="newsChannels" ng-controller="Wizdom365NoticeboardNewsAdministrationController" class="lt-module-page">

    <div class="lt-module-page__top lt-module-page-top">
        <div class="lt-module-page-top__title">
            <h1>Noticeboard {{'Social Functionality (comments and likes)' | translate}}</h1>
        </div>
        <div class="lt-module-page-top__actions">
            <div class="saveConfigurationButton">
                <button class="btn btn-primary"
                        ng-disabled="saving"
                        ng-click="saveConfig()">
                    {{'Save configuration' | translate}}
                </button>
            </div>
        </div>
    </div>

    <div class="panel panel-default lt-module-page__content-panel">
         <div class="panel-heading">{{'Social Functionality (comments and likes)' | translate}}</div>


        <div class="panel-body 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">{{'Enable Social Functionality' | translate}}</label>
                            </div>

                            <div class="col-sm-8">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" id="socialFeature" ng-model="socialFeature" class="lt-checkbox" />
                                    </label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">{{'Enable comments in the Noticeboard Overview panel (Classic only)' | translate}}</label>
                            </div>

                            <div class="col-sm-8">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" ng-disabled="!socialFeature" id="socialOverviewComments" ng-model="socialOverviewComments" class="lt-checkbox" />
                                    </label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">{{'Allow social by default on items' | translate}}</label>
                            </div>

                            <div class="col-sm-8">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" ng-disabled="!socialFeature" id="socialEnableSocialOnItemByDefault" ng-model="socialEnableSocialOnItemByDefault" class="lt-checkbox" />
                                    </label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">{{'Allow replies to comments' | translate}}</label>
                            </div>

                            <div class="col-sm-8">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" ng-disabled="!socialFeature" id="socialAllowRepliesToComments" ng-model="socialAllowRepliesToComments" class="lt-checkbox" />
                                    </label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">{{'Show deleted comments' | translate}}</label>
                            </div>

                            <div class="col-sm-8">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" ng-disabled="!socialFeature" id="socialShowDeletedComments" ng-model="socialShowDeletedComments" class="lt-checkbox" />
                                    </label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">{{'Show view count' | translate}}</label>
                            </div>

                            <div class="col-sm-8">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" ng-disabled="!socialFeature" id="socialShowViewCount" ng-model="socialShowViewCount" class="lt-checkbox" />
                                    </label>
                                </div>
                            </div>
                        </div>


                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label controls-textbox">{{'Number of comments visible by default:' | translate}}</label>
                            </div>

                            <div class="col-sm-8">
                                <input type="number" ng-disabled="!socialFeature" class="form-control" id="socialCommentsLimit" style="width:60px; display: inline" max="50" min="1" ng-model="socialCommentsLimit" />
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label controls-textbox">{{'View previous comments limit:' | translate}}</label>
                            </div>

                            <div class="col-sm-8">
                                <input type="number" ng-disabled="!socialFeature" class="form-control" id="viewPrevCommentsLimit" style="width:60px; display: inline" max="50" min="1" ng-model="viewPrevCommentsLimit" />
                            </div>
                        </div>


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


    </div>



   </div>
