|
@@ -1,21 +1,10 @@
|
|
|
<div class="editor-row">
|
|
<div class="editor-row">
|
|
|
- <h5 class="page-heading">Links and Dash Navigation</h5>
|
|
|
|
|
|
|
+ <h5 class="section-heading">Links and Dash Navigation</h5>
|
|
|
|
|
|
|
|
<div ng-repeat="link in dashboard.links">
|
|
<div ng-repeat="link in dashboard.links">
|
|
|
- <div class="gf-form-group" style="/*background: #292929; border-bottom: 2px solid #1f1d1d; padding: 10px; margin-bottom: 5px;*/">
|
|
|
|
|
- <div class="gf-form-inline pull-right">
|
|
|
|
|
- <div class="gf-form-buttons-row">
|
|
|
|
|
- <button class="btn btn-inverse btn-mini" ng-hide="$first"><i ng-click="moveLink($index, -1)" class="fa fa-arrow-up"></i></button>
|
|
|
|
|
- <button class="btn btn-inverse btn-mini" ng-hide="$last"><i ng-click="moveLink($index, 1)" class="fa fa-arrow-down"></i></button>
|
|
|
|
|
- <button class="btn btn-inverse btn-mini"><i class="fa fa-remove" ng-click="deleteLink($index)"></i></button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
|
|
|
|
|
+ <div class="gf-form-group">
|
|
|
<div class="gf-form-inline">
|
|
<div class="gf-form-inline">
|
|
|
- <div class="gf-form width-2">
|
|
|
|
|
- <i class="fa fa-fw fa-unlink"></i>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
<div class="gf-form">
|
|
<div class="gf-form">
|
|
|
<span class="gf-form-label width-6">Type</span>
|
|
<span class="gf-form-label width-6">Type</span>
|
|
|
<div class="gf-form-select-wrapper width-10">
|
|
<div class="gf-form-select-wrapper width-10">
|
|
@@ -28,26 +17,32 @@
|
|
|
<bootstrap-tagsinput ng-model="link.tags" tagclass="label label-tag" placeholder="add tags"></bootstrap-tagsinput>
|
|
<bootstrap-tagsinput ng-model="link.tags" tagclass="label label-tag" placeholder="add tags"></bootstrap-tagsinput>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div class="gf-form" ng-show="link.type === 'dashboards' && link.asDropdown">
|
|
|
|
|
- <span class="gf-form-label width-6">Title</span>
|
|
|
|
|
- <input type="text" ng-model="link.title" class="gf-form-input max-width-10" ng-model-onblur ng-change="updated()">
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
<div class="gf-form" ng-show="link.type === 'dashboards'">
|
|
<div class="gf-form" ng-show="link.type === 'dashboards'">
|
|
|
<editor-checkbox text="As dropdown" model="link.asDropdown" change="updated()"></editor-checkbox>
|
|
<editor-checkbox text="As dropdown" model="link.asDropdown" change="updated()"></editor-checkbox>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div class="gf-form" ng-show="link.type === 'link'">
|
|
|
|
|
|
|
+ <div class="gf-form max-width-30" ng-show="link.type === 'link'">
|
|
|
<li class="gf-form-label width-6">Url</li>
|
|
<li class="gf-form-label width-6">Url</li>
|
|
|
- <input type="text" ng-model="link.url" class="gf-form-input max-width-10" ng-model-onblur ng-change="updated()">
|
|
|
|
|
- <editor-checkbox text="Open in new tab " model="link.targetBlank" change="updated()"></editor-checkbox>
|
|
|
|
|
|
|
+ <input type="text" ng-model="link.url" class="gf-form-input" ng-model-onblur ng-change="updated()">
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="gf-form">
|
|
|
|
|
+ <button class="btn btn-inverse btn-mini" ng-click="moveLink($index, -1)" ng-hide="$first"><i class="fa fa-arrow-up"></i></button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="gf-form">
|
|
|
|
|
+ <button class="btn btn-inverse btn-mini" ng-click="moveLink($index, 1)" ng-hide="$last"><i class="fa fa-arrow-down"></i></button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="gf-form">
|
|
|
|
|
+ <button class="btn btn-inverse btn-mini" ng-click="deleteLink($index)"><i class="fa fa-trash" ></i></button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
+ <div class="gf-form" ng-show="link.type === 'dashboards' && link.asDropdown">
|
|
|
|
|
+ <span class="gf-form-label width-6">Title</span>
|
|
|
|
|
+ <input type="text" ng-model="link.title" class="gf-form-input max-width-25" ng-model-onblur ng-change="updated()">
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
<div class="gf-form-inline" ng-show="link.type === 'link'">
|
|
<div class="gf-form-inline" ng-show="link.type === 'link'">
|
|
|
- <div class="gf-form width-2">
|
|
|
|
|
- <i class="fa fa-fw fa-unlink invisible"></i>
|
|
|
|
|
- </div>
|
|
|
|
|
<div class="gf-form">
|
|
<div class="gf-form">
|
|
|
<span class="gf-form-label width-6">Title</span>
|
|
<span class="gf-form-label width-6">Title</span>
|
|
|
<input type="text" ng-model="link.title" class="gf-form-input max-width-10" ng-model-onblur ng-change="updated()">
|
|
<input type="text" ng-model="link.title" class="gf-form-input max-width-10" ng-model-onblur ng-change="updated()">
|
|
@@ -67,12 +62,11 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="gf-form-inline">
|
|
<div class="gf-form-inline">
|
|
|
- <div class="gf-form width-1">
|
|
|
|
|
- <i class="fa fa-fw fa-unlink invisible"></i>
|
|
|
|
|
- </div>
|
|
|
|
|
<div class="gf-form">
|
|
<div class="gf-form">
|
|
|
- <editor-checkbox text="Keep current time range" model="link.keepTime" change="updated()"></editor-checkbox>
|
|
|
|
|
- <editor-checkbox text="Add current variable values" model="link.includeVars" change="updated()"></editor-checkbox>
|
|
|
|
|
|
|
+ <span class="gf-form-label width-6">Include</span>
|
|
|
|
|
+ <editor-checkbox text="Time range" model="link.keepTime" change="updated()"></editor-checkbox>
|
|
|
|
|
+ <editor-checkbox text="Variable values" model="link.includeVars" change="updated()"></editor-checkbox>
|
|
|
|
|
+ <editor-checkbox text="Open in new tab " model="link.targetBlank" change="updated()"></editor-checkbox>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|