create_folder.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <page-header model="ctrl.navModel"></page-header>
  2. <div class="page-container page-body" ng-cloak>
  3. <h3 class="page-sub-heading">New Dashboard Folder</h3>
  4. <form name="ctrl.saveForm" ng-submit="ctrl.create()" novalidate>
  5. <div class="gf-form-inline">
  6. <div class="gf-form gf-form--grow">
  7. <label class="gf-form-label width-10">Name</label>
  8. <input type="text" class="gf-form-input" ng-model="ctrl.title" give-focus="true" ng-change="ctrl.titleChanged()" ng-model-options="{ debounce: 400 }" ng-class="{'validation-error': ctrl.nameExists || !ctrl.dash.title}">
  9. <label class="gf-form-label text-success" ng-if="ctrl.titleTouched && !ctrl.hasValidationError">
  10. <i class="fa fa-check"></i>
  11. </label>
  12. </div>
  13. </div>
  14. <div class="gf-form-inline" ng-if="ctrl.hasValidationError">
  15. <div class="gf-form offset-width-10 gf-form--grow">
  16. <label class="gf-form-label text-warning gf-form-label--grow">
  17. <i class="fa fa-warning"></i>
  18. {{ctrl.validationError}}
  19. </label>
  20. </div>
  21. </div>
  22. <div class="gf-form-button-row">
  23. <button type="submit" class="btn btn-success width-12" ng-disabled="!ctrl.titleTouched || ctrl.hasValidationError">
  24. <i class="fa fa-save"></i> Create
  25. </button>
  26. </div>
  27. </form>
  28. </div>