<div class="modal-header">
    <button type="button" class="close closebtn" data-ng-click="vm.cancel()" aria-hidden="true">&times;</button>
    <h1 class="modal-title">{{'Add file' | 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.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.cancel();">{{'Cancel' | translate}}</button>
    <button class="btn btn-primary" ng-disabled="form.$invalid" ng-click="vm.save();">{{'Save' | translate}}</button>
</div>