<div class="modal-header">
    <button type="button" class="close closebtn" data-ng-click="cancel()" aria-hidden="true">&times;</button>
    <h1 class="modal-title">{{'Favourites' | 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="ProjectSpace/Templates/ViewTemplates/Favourites"></wizdom365-template-picker>
                    </div>
                    <div class="form-group">
                        <label class="control-label">{{'Instance' | translate}}</label>
                        <div wizdom365-Business-Apps-Instance-Picker
                             appname="Project space"
                             ng-model="data.instanceId">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label">{{'Items per page' | translate}} ( 1 - 100 )</label>
                        <input type="number" class="form-control" ng-model="data.sitesPerPage" min="1" max="100"/>
                    </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>