<div id="yammersettingcontainer" ng-controller="Wizdom365YammerSettingController" class="lt-module-page">

    <div class="lt-module-page__top lt-module-page-top">
        <div class="lt-module-page-top__title">
            <h1>Configuration</h1>
        </div>
        <div class="lt-module-page-top__actions">
            <div class="saveConfigurationButton">
                <button class="btn btn-primary wide-config-btn pull-right"
                        ng-disabled="saving"
                        ng-click="saveConfig()">
                    {{'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">{{'Enable Viva Engage Integration' | translate}}</label>
                                </div>
                                <div class="col-xs-8">
                                    <div class="checkbox">
                                        <label>
                                            <input type="checkbox" ng-model="YammerNotifyEnability">
                                        </label>
                                    </div>
                                </div>
                            </div>


                            <div class="form-group" ng-if="YammerNotifyEnability">
                                <div class="col-xs-4">
                                    <label class="control-label">Viva Engage consent</label>
                                </div>
                                <div class="col-xs-8">
                                    <a ng-if="YammerNotifyEnability" target="_blank" ng-href="{{authUrl}}">{{'Click here to get consent for Viva Engage (Previously Yammer)' | translate}}</a>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>