<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.template.name"
                               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>
    <button class="btn btn-primary" ng-disabled="form.$invalid" ng-click="vm.dialog.save();">{{'Save' | translate}}</button>
</div>