mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 11:20:27 -06:00
Merge pull request #4119 from grafana/select-form-updates
Select form updates
This commit is contained in:
commit
18fcb23371
@ -73,13 +73,17 @@
|
||||
</div>
|
||||
<div class="gf-form">
|
||||
<span class="gf-form-label max-width-10">Datasource</span>
|
||||
<select class="gf-form-input gf-size-auto" ng-model="currentAnnotation.datasource" ng-options="f.name as f.name for f in datasources" ng-change="datasourceChanged()"></select>
|
||||
<div class="gf-form-select-wrapper">
|
||||
<select class="gf-form-input gf-size-auto" ng-model="currentAnnotation.datasource" ng-options="f.name as f.name for f in datasources" ng-change="datasourceChanged()"></select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="gf-form-inline">
|
||||
<div class="gf-form gf-size-max-xl">
|
||||
<span class="gf-form-label width-10">Icon size</span>
|
||||
<select class="gf-form-input gf-size-md" ng-model="currentAnnotation.iconSize" ng-options="f for f in [7,8,9,10,13,15,17,20,25,30]"></select>
|
||||
<div class="gf-form-select-wrapper">
|
||||
<select class="gf-form-input gf-size-md" ng-model="currentAnnotation.iconSize" ng-options="f for f in [7,8,9,10,13,15,17,20,25,30]"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="gf-form">
|
||||
<label class="gf-form-label">
|
||||
|
@ -9,8 +9,10 @@
|
||||
<strong>Data source</strong>
|
||||
</li>
|
||||
<li>
|
||||
<select type="text" ng-model="options.sourceName" class="input-medium tight-form-input" ng-options="f for f in datasources">
|
||||
</select>
|
||||
<div class="gf-form-select-wrapper">
|
||||
<select type="text" ng-model="options.sourceName" class="input-medium tight-form-input" ng-options="f for f in datasources">
|
||||
</select>
|
||||
</div>
|
||||
</li>
|
||||
<li style="float: right">
|
||||
<button class="btn btn-inverse tight-form-btn" ng-click="listAll()">List dashboards</button>
|
||||
|
@ -24,7 +24,9 @@
|
||||
<div class="gf-form">
|
||||
<div class="gf-form-label">Dashboard source</div>
|
||||
<div>
|
||||
<select type="text" ng-model="sourceName" class="input-medium tight-form-input" ng-options="f for f in datasources"></select>
|
||||
<div class="gf-form-select-wrapper">
|
||||
<select class="gf-form-input gf-size-auto" ng-model="sourceName" ng-options="f for f in datasources"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="gf-form-btn">
|
||||
<button class="btn btn-success" ng-click="startImport()">Import</button>
|
||||
|
@ -24,7 +24,9 @@
|
||||
<span class="gf-form-label width-7">
|
||||
Access <tip>Direct = url is used directly from browser, Proxy = Grafana backend will proxy the request</tip>
|
||||
</span>
|
||||
<select class="gf-form-input gf-size-auto" ng-model="current.access" ng-options="f for f in ['direct', 'proxy']"></select>
|
||||
<div class="gf-form-select-wrapper">
|
||||
<select class="gf-form-input gf-size-auto" ng-model="current.access" ng-options="f for f in ['direct', 'proxy']"></select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="gf-form">
|
||||
|
@ -107,7 +107,7 @@
|
||||
<div class="gf-form-button-row">
|
||||
<a class="btn btn-success " ng-show="ctrl.isNew()"
|
||||
ng-disabled="ctrl.playlistEditForm.$invalid || ctrl.isPlaylistEmpty()"
|
||||
ng-click="ctrl.savePlaylist(ctrl.playlist, ctrl.playlistItems)"><i class="fa fa-plus"></i> Add</a>
|
||||
ng-click="ctrl.savePlaylist(ctrl.playlist, ctrl.playlistItems)">Create new playlist</a>
|
||||
<a class="btn btn-success" ng-show="!ctrl.isNew()"
|
||||
ng-disabled="ctrl.playlistEditForm.$invalid || ctrl.isPlaylistEmpty()"
|
||||
ng-click="ctrl.savePlaylist(ctrl.playlist, ctrl.playlistItems)">Save</a>
|
||||
|
Loading…
Reference in New Issue
Block a user