mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 10:50:37 -06:00
fixed minor styling issus (#9497)
* fixed minor styling issus * fixed code formatting
This commit is contained in:
parent
81a4df1372
commit
b76de790f9
@ -40,13 +40,11 @@
|
|||||||
|
|
||||||
<div class="gf-form-group">
|
<div class="gf-form-group">
|
||||||
<div class="gf-form-inline">
|
<div class="gf-form-inline">
|
||||||
<div class="gf-form width-6">
|
<div class="gf-form width-8">
|
||||||
<button type="submit" ng-click="ctrl.save()" class="btn btn-success">Save</button>
|
<button type="submit" ng-click="ctrl.save()" class="btn btn-success width-7">Save</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="gf-form width-20">
|
<div class="gf-form width-8">
|
||||||
<div class="gf-form">
|
<button type="submit" ng-click="ctrl.testNotification()" class="btn btn-secondary width-7">Send Test</button>
|
||||||
<button type="submit" ng-click="ctrl.testNotification()" class="btn btn-secondary">Send Test</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
|
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1 ng-show="ctrl.isNew">Add data source</h1>
|
<h1 ng-show="ctrl.isNew">Add data source</h1>
|
||||||
<h1 ng-hide="ctrl.isNew">Edit data source</h1>
|
<h1 ng-hide="ctrl.isNew">Edit data source</h1>
|
||||||
|
|
||||||
@ -22,11 +22,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div ng-if="ctrl.tabIndex === 0" class="tab-content">
|
<div ng-if="ctrl.tabIndex === 0" class="tab-content">
|
||||||
|
|
||||||
<form name="ctrl.editForm" ng-if="ctrl.current">
|
<form name="ctrl.editForm" ng-if="ctrl.current">
|
||||||
<div class="gf-form-group">
|
<div class="gf-form-group">
|
||||||
<div class="gf-form-inline">
|
<div class="gf-form-inline">
|
||||||
<div class="gf-form max-width-30">
|
<div class="gf-form max-width-30">
|
||||||
<span class="gf-form-label width-7">Name</span>
|
<span class="gf-form-label width-7">Name</span>
|
||||||
<input class="gf-form-input max-width-23" type="text" ng-model="ctrl.current.name" placeholder="name" required>
|
<input class="gf-form-input max-width-23" type="text" ng-model="ctrl.current.name" placeholder="name" required>
|
||||||
@ -39,7 +39,7 @@
|
|||||||
<gf-form-switch class="gf-form" label="Default" checked="ctrl.current.isDefault" switch-class="max-width-6"></gf-form-switch>
|
<gf-form-switch class="gf-form" label="Default" checked="ctrl.current.isDefault" switch-class="max-width-6"></gf-form-switch>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="gf-form">
|
<div class="gf-form max-width-30">
|
||||||
<span class="gf-form-label width-7">Type</span>
|
<span class="gf-form-label width-7">Type</span>
|
||||||
<div class="gf-form-select-wrapper max-width-23">
|
<div class="gf-form-select-wrapper max-width-23">
|
||||||
<select class="gf-form-input" ng-model="ctrl.current.type" ng-options="v.id as v.name for v in ctrl.types" ng-change="ctrl.userChangedType()"></select>
|
<select class="gf-form-input" ng-model="ctrl.current.type" ng-options="v.id as v.name for v in ctrl.types" ng-change="ctrl.userChangedType()"></select>
|
||||||
@ -61,8 +61,8 @@
|
|||||||
<h5 ng-show="!ctrl.testing.done">Testing.... <i class="fa fa-spiner fa-spin"></i></h5>
|
<h5 ng-show="!ctrl.testing.done">Testing.... <i class="fa fa-spiner fa-spin"></i></h5>
|
||||||
<div class="alert-{{ctrl.testing.status}} alert" ng-show="ctrl.testing.done">
|
<div class="alert-{{ctrl.testing.status}} alert" ng-show="ctrl.testing.done">
|
||||||
<div class="alert-icon">
|
<div class="alert-icon">
|
||||||
<i class="fa fa-exclamation-triangle" ng-show="ctrl.testing.status === 'error'"></i>
|
<i class="fa fa-exclamation-triangle" ng-show="ctrl.testing.status === 'error'"></i>
|
||||||
<i class="fa fa-check" ng-show="ctrl.testing.status !== 'error'"></i>
|
<i class="fa fa-check" ng-show="ctrl.testing.status !== 'error'"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="alert-body">
|
<div class="alert-body">
|
||||||
<div class="alert-title">{{ctrl.testing.message}}</div>
|
<div class="alert-title">{{ctrl.testing.message}}</div>
|
||||||
@ -71,9 +71,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="gf-form-button-row">
|
<div class="gf-form-button-row">
|
||||||
<button type="submit" class="btn btn-success" ng-show="ctrl.isNew" ng-click="ctrl.saveChanges()">Add</button>
|
<button type="submit" class="btn btn-success width-6" ng-show="ctrl.isNew" ng-click="ctrl.saveChanges()">Add</button>
|
||||||
<button type="submit" class="btn btn-success" ng-show="!ctrl.isNew" ng-click="ctrl.saveChanges()">Save & Test</button>
|
<button type="submit" class="btn btn-success width-6" ng-show="!ctrl.isNew" ng-click="ctrl.saveChanges()">Save & Test</button>
|
||||||
<button type="submit" class="btn btn-danger" ng-show="!ctrl.isNew" ng-click="ctrl.delete()">
|
<button type="submit" class="btn btn-danger width-6" ng-show="!ctrl.isNew" ng-click="ctrl.delete()">
|
||||||
Delete
|
Delete
|
||||||
</button>
|
</button>
|
||||||
<a class="btn btn-link" href="datasources">Cancel</a>
|
<a class="btn btn-link" href="datasources">Cancel</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user