<div class="modal-header">
    <button type="button" class="close closebtn" data-ng-click="cancel()" aria-hidden="true">&times;</button>
    <h1 ng-if="revisionType == 'contact'" class="modal-title">{{'Pages to revision - Where i am contactperson' | translate}}</h1>
    <h1 ng-if="revisionType == 'modified'" class="modal-title">{{'Pages to revision - Where I am editor' | translate}}</h1>
    <h1 ng-if="revisionType == 'mypages'" class="modal-title">{{'My pages' | translate}}</h1>
</div>
<div class="modal-body">
    <form>
        <div class="container-fluid">
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="control-label">{{'Template' | translate}}</label>
                        <wizdom365-template-picker template-url="data.templateUrl" directory-path="{{directoryPath}}"></wizdom365-template-picker>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="control-label">{{'Display mode' | translate}}</label>
                        <div class="radio">
                            <label><input type="radio" ng-model="data.displayMode" value="0">{{'My pages' | translate}}</label>
                        </div>
                        <div class="radio">
                            <label><input type="radio" ng-model="data.displayMode" value="1">{{'With search field' | translate}}</label>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="control-label">{{'Items pr. page' | translate}}</label>
                        <input type="number" class="form-control" ng-model="data.itemsPrPage" />
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group" ng-hide="hideDays">
                        <label class="control-label">{{'Number of days' | translate}}</label>
                        <input type="number" class="form-control" ng-model="data.numberOfDaysBeforeRevision" />
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-12">
                    <div class="advancedSettingsExpander" ng-click="isAdvancedSettingsOpen = !isAdvancedSettingsOpen">
                        <span class="advancedSettingsExpanderArrow"><i class="ms-Icon" ng-class="isAdvancedSettingsOpen == true ? 'ms-Icon--ChevronDownMed' : 'ms-Icon--ChevronRightMed'"></i></span>
                        <span class="advancedSettingsExpanderText">{{'Advanced' | translate}}</span>
                    </div>
                    <div class="advancedSettingsDeviderLine" ng-show="isAdvancedSettingsOpen"></div>
                </div>
            </div>
            <!-- Advanced settings start -->
            <div class="advancedSettings" ng-show="isAdvancedSettingsOpen" id="advancedSettings">
                <div class="row">
                    <div class="col-sm-12">
                        <div class="form-group">
                            <label class="control-label">{{'Include pages from following web' | translate}}</label>
                            <input type="text" class="form-control" ng-model="data.path" />
                        </div>
                    </div>
                    <div class="col-sm-12">
                        <div class="form-group">
                            <label class="control-label">{{'Include following content type id' | translate}}</label>
                            <input type="text" class="form-control" ng-model="data.contentTypeId" />
                        </div>
                    </div>
                    <div class="col-sm-12">
                        <div class="form-group">
                            <label class="control-label">{{'Search result source (GUID)' | translate}}</label>
                            <input type="text" class="form-control" ng-model="data.resultSource" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="modal-footer">
    <button class="btn btn-success wiz-btn-padding" ng-click="updateConfig();">{{'Save' | translate}}</button>
    <button class="btn btn-default wiz-btn-padding" ng-disabled="loading" ng-click="cancel();">{{"Cancel" | translate}}</button>
</div>



