<div class="modal-header">
    <button type="button" class="close closebtn" data-ng-click="vm.cancel()" aria-hidden="true">&times;</button>
    <h1 class="modal-title">{{vm.editMode ? 'Update website' : 'Add website' | translate}}</h1>
</div>
<div class="modal-body currentMenuAddEditWebsite">
    <div class="container-fluid" style="overflow-y:auto;">
        <div class="form-group">
            <label>{{'Url' | translate}}</label>
            <input class="form-control" placeholder="https://" ng-model="vm.url">
            <div class="alert alert-danger" role="alert" ng-show="vm.urlDoesNotExist" style="padding-left: 12px; padding-right: 12px; padding-top: 6px; padding-bottom: 6px; margin-top: 10px;">{{'Url should be absolute path to existing site' | translate}}</div>
        </div>
        <div class="form-group">
            <label>{{'Navigation term' | translate}}</label>
            <select ng-hide="vm.loading" class="form-control" ng-model="vm.selectedTermSet" ng-options="termSet.termSetName group by termSet.termSetGroup for termSet in vm.allTermSets track by termSet.termSetId"></select>
            <div ng-show="vm.loading">
                {{'loading...' | translate}}
            </div>
        </div>
    </div>
</div>
<div class="modal-footer">
    <button type="button" class="btn btn-default" ng-click="vm.cancel()">{{'Close' | translate}}</button>
    <button type="button" class="btn btn-primary" ng-click="vm.ok()">{{vm.editMode ? 'Update' : 'Add' | translate}}</button>
</div>

