<div ng-controller="Admin.PrivacyConfigController">
    <ng-form name="privacyConfigurationForm">
        <div class="panel panel-success panel-grid">
            <div class="pull-right well">
                <div class="btn-group">
                    <button class="btn btn-xs btn-link" ng-click="saveChanges()"
                            ng-disabled="privacyConfigurationForm.$invalid">
                        <i class="fa fa-save"></i>
                        <span translate>
                            admin.application.privacy.config.save.btn
                        </span>
                    </button>
                </div>
            </div>

            <panel-view header="{{'admin.application.privacy.config.title' | translate}}" collapsible="false">
                <div class="row">
                    <div class="col-lg-4"></div>
                    <div class="col-lg-4">
                        <label translate>admin.application.privacy.config.labels.limitedDeliveryToSpecificPageCount</label>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" ng-model="configDataModel.limitedDeliveryToSpecificPageCountEnabled">
                                <span translate>
                                    admin.application.privacy.config.labels.limitedDeliveryToSpecificPageCountEnabled
                                </span>
                            </label>
                        </div>
                    </div>
                    <div class="col-lg-4">
                        <input type="number" min="1" ng-model="configDataModel.limitedDeliveryToSpecificPageCount"
                               ng-disabled="!configDataModel.limitedDeliveryToSpecificPageCountEnabled"
                               class="form-control">
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4"></div>
                    <div class="col-lg-4">
                        <label translate>admin.application.privacy.config.labels.maxDaysHoldQueue</label>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" ng-model="configDataModel.purgeRequestWhenInHoldEnabled"
                                       ng-change="configDataModel.maxDaysInHoldQueue= !configDataModel.purgeRequestWhenInHoldEnabled ? configDataModel.maxDaysInHoldQueue : configDataModel.maxDaysInHoldQueue">
                                <span translate>
                                    admin.application.privacy.config.labels.purgeRequestEnabled
                                </span>
                            </label>
                        </div>
                    </div>
                    <div class="col-lg-4">
                        <input type="number" min="1" ng-model="configDataModel.maxDaysInHoldQueue"
                               ng-disabled="!configDataModel.purgeRequestWhenInHoldEnabled" class="form-control">
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-12">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" ng-model="configDataModel.provideReasonToHoldRequestEnabled">
                                <span translate>
                                    admin.application.privacy.config.labels.provideReasonToHoldRequestEnabled
                                </span>
                            </label>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-12">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" ng-model="configDataModel.requireTimesheetToCompleteStandardRequest">
                                <span translate>
                                    admin.application.privacy.config.labels.requireTimesheetToCompleteStandardRequest
                                </span>
                            </label>
                        </div>
                    </div>
                </div>
            </panel-view>
        </div>
    </ng-form>
</div>
<div ng-include="'modules/admin/views/components/time-to-complete.client.view.html'"></div>
