<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 {{'Configuration' | 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">
            {{'Configuration' | 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">{{'Reset read status when items are updated' | translate}}</label>
                            </div>

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

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">{{'Include External Users to the Everybody scope' | translate}}</label>
                            </div>

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

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

                            <div class="col-sm-8">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" id="notificationEnabled" ng-model="notificationEnabled" class="lt-checkbox" />
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">{{'Enable webpart level notifications' | translate}}</label>
                            </div>

                            <div class="col-sm-8">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" id="enableWebpartLevelNotifications" ng-model="enableWebpartLevelNotifications" class="lt-checkbox" />
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">{{'Enable notifications for replies' | translate}}</label>
                            </div>
                            <div class="col-sm-8">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" id="enableNotificationsForReplies" ng-model="enableNotificationsForReplies" class="lt-checkbox" />
                                    </label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">{{'Disable clearing of all personal caches on news change' | translate}}</label>
                            </div>

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

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label controls-textbox">{{'Linkpreview key: requires account at embed.ly' | translate}}</label>
                            </div>

                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="linkPreviewKey" placeholder="{{'Linkpreview key: requires account at embed.ly' | translate}}" ng-model="linkPreviewKey" />
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">{{'Enable news post translations for SharePoint Modern' | translate}}</label>
                            </div>

                            <div class="col-sm-8">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" id="enableNewsTranslations" ng-model="enableNewsTranslations" class="lt-checkbox" />
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">{{'Show best quality images' | translate}}</label>
                            </div>

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


                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">{{'Use cropped image feature for publishing Modern' | translate}}</label>
                            </div>

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

                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">{{'Use site locale setting for dates' | translate}}</label>
                            </div>

                            <div class="col-sm-8">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" id="useLocalRegionForDatesAndCurrency" ng-model="useLocalRegionForDatesAndCurrency" class="lt-checkbox" />
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">{{'Remove associated images when comment is deleted' | translate}}</label>
                            </div>

                            <div class="col-sm-8">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" id="imageRemoveOnCommentDelete" ng-model="imageRemoveOnCommentDelete" class="lt-checkbox" />
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">{{'Use custom cache expiration time' | translate}}</label>
                            </div>

                            <div class="col-sm-8" style="display: flex;">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" id="useCustomCacheExpireTime" ng-model="useCustomCacheExpireTime" class="lt-checkbox" />
                                    </label>
                                </div>
                                <div ng-show="useCustomCacheExpireTime" style="display: flex; align-items: end;">
                                    <input type="number" style="margin: 0px 8px 0px 16px; width: 150px;" placeholder="Expiration time" class="form-control" id="customCacheExpireTime" max="99999" min="1" ng-model="customCacheExpireTime" />
                                    <label>{{'minute(s)' | translate}}</label>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>

    </div>

    <div class="panel panel-default lt-module-page__content-panel">
        <div class="panel-heading">{{'Default archive link' | translate}}</div>
        <div class="panel-body">
            <input type="text" class="form-control" id="archiveLink" placeholder="{{'Default archive link' | translate}}" ng-model="archiveLink" ng-blur="setArchiveLink()">
        </div>
    </div>



</div>

