<div class="modal-header">
    <button type="button" class="close closebtn" data-ng-click="vm.dialog.cancel()" aria-hidden="true">&times;</button>
    <h1 class="modal-title">{{vm.title | translate}}</h1>
</div>
<div class="modal-body">
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-12">
                <form name="form" role="form" novalidate>
                    <div class="form-group">
                         <label class="control-label">{{'Name' | translate}}</label>
                         <input type="text" class="form-control"
                                   ng-model="vm.templateName"
                                   validate="{ required: true, filename: true }"
                                   required-error-message="{{'Template name is required' | translate}}">
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<div class="modal-footer">
    <button class="btn btn-default" ng-click="vm.dialog.cancel();">{{'Cancel' | translate}}</button>
    <span ng-show="vm.saving">{{'Please wait' | translate}} </span>
    <button class="btn btn-primary" ng-show="vm.saving" disabled="disabled">{{'Saving' | translate}}</button>
    <button class="btn btn-primary" ng-hide="vm.saving" ng-disabled="form.$invalid" ng-click="vm.dialog.save();">{{'Save' | translate}}</button>
</div>