2017-12-07 19:32:38 +01:00
|
|
|
<page-header model="ctrl.navModel"></page-header>
|
|
|
|
|
|
|
|
|
|
<div class="page-container page-body" ng-cloak>
|
|
|
|
|
|
2017-12-12 15:19:59 +01:00
|
|
|
<h3 class="page-sub-heading">New Dashboard Folder</h3>
|
2017-12-07 19:32:38 +01:00
|
|
|
|
2017-12-12 15:19:59 +01:00
|
|
|
<form name="ctrl.saveForm" ng-submit="ctrl.create()" novalidate>
|
|
|
|
|
<div class="gf-form-inline">
|
|
|
|
|
<div class="gf-form gf-form--grow">
|
2017-12-19 13:39:10 +01:00
|
|
|
<label class="gf-form-label width-10">Name</label>
|
|
|
|
|
<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}">
|
|
|
|
|
<label class="gf-form-label text-success" ng-if="ctrl.titleTouched && !ctrl.hasValidationError">
|
2017-12-12 15:19:59 +01:00
|
|
|
<i class="fa fa-check"></i>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-12-07 19:32:38 +01:00
|
|
|
|
2017-12-19 13:39:10 +01:00
|
|
|
<div class="gf-form-inline" ng-if="ctrl.hasValidationError">
|
2017-12-12 15:19:59 +01:00
|
|
|
<div class="gf-form offset-width-10 gf-form--grow">
|
|
|
|
|
<label class="gf-form-label text-warning gf-form-label--grow">
|
|
|
|
|
<i class="fa fa-warning"></i>
|
2017-12-19 13:39:10 +01:00
|
|
|
{{ctrl.validationError}}
|
2017-12-12 15:19:59 +01:00
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="gf-form-button-row">
|
2019-02-05 12:05:02 +01:00
|
|
|
<button type="submit" class="btn btn-primary width-12" ng-disabled="!ctrl.titleTouched || ctrl.hasValidationError">
|
2019-04-17 15:18:32 +02:00
|
|
|
Create
|
2017-12-12 15:19:59 +01:00
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
2017-12-07 19:32:38 +01:00
|
|
|
|
|
|
|
|
</div>
|
2020-01-09 11:25:52 +01:00
|
|
|
|
|
|
|
|
<footer />
|