mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ux(dashboard): migrate view json to gf-form
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
<div ng-controller="JsonEditorCtrl">
|
<div ng-controller="JsonEditorCtrl">
|
||||||
|
|
||||||
<div class="gf-box-header">
|
<div class="gf-box-header">
|
||||||
<div class="gf-box-title">
|
<div class="gf-box-title">
|
||||||
<i class="fa fa-edit"></i>
|
<i class="fa fa-edit"></i>
|
||||||
@@ -11,12 +10,13 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="gf-box-body" style="height: 500px">
|
<div class="gf-box-body json-box-body">
|
||||||
<textarea ng-model="json" rows="20" spellcheck="false" style="width: 100%;"></textarea>
|
<div class="gf-form">
|
||||||
<br>
|
<textarea ng-model="json" rows="20" spellcheck="false"></textarea>
|
||||||
<br>
|
</div>
|
||||||
|
|
||||||
<button type="button" class="btn btn-success" ng-show="canUpdate" ng-click="update(); dismiss();">Update</button>
|
<div class="gf-form-button-row">
|
||||||
|
<button type="button" class="btn btn-success" ng-show="canUpdate" ng-click="update(); dismiss();">Update</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -286,3 +286,10 @@ div.flot-text {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.json-box-body {
|
||||||
|
min-height: 500px;
|
||||||
|
textarea {
|
||||||
|
width: 100%;
|
||||||
|
background-color: $gray-1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user