Commit 8b3c89e2 by Torkel Ödegaard

Starting work on new templating editor

parent c634ee81
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<i class="icon-cog"></i> <i class="icon-cog"></i>
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a class="pointer" config-modal="app/partials/templating_editor.html">Edit replacements</a></li> <li><a class="pointer" config-modal="app/partials/templating_editor.html">Templating</a></li>
<li><a class="pointer" config-modal="app/partials/annotations_editor.html">Edit annotations</a></li> <li><a class="pointer" config-modal="app/partials/annotations_editor.html">Annotations</a></li>
</ul> </ul>
</div> </div>
</li> </li>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</div> </div>
</li> </li>
<li ng-repeat="annotation in dashboard.annotations.list" class="grafana-target-segment annotation-segment" ng-class="{'annotation-disabled': !annotation.enable }"> <li ng-repeat="annotation in dashboard.annotations.list" class="grafana-target-segment annotation-segment" ng-class="{'annotation-disabled': !annotation.enable}">
<i class="annotation-color-icon icon-bolt"></i> <i class="annotation-color-icon icon-bolt"></i>
<a ng-click="hide(annotation)">{{annotation.name}}</a> <a ng-click="hide(annotation)">{{annotation.name}}</a>
</li> </li>
......
<div ng-controller="AnnotationsEditorCtrl" ng-init="init()">
<div class="modal-body">
<div class="pull-right editor-title">Templating</div>
<div class="editor-row">
</div>
</div>
<div class="modal-footer">
<button ng-show="currentIsNew" type="button" class="btn btn-success" ng-click="add()">Add annotation</button>
<button ng-show="!currentIsNew" type="button" class="btn btn-success" ng-click="update()">Update</button>
<button type="button" class="btn btn-danger" ng-click="close_edit();dismiss();dashboard.refresh();">Close</button>
</div>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment