grafana/public/app/features/dashlinks/editor.html

66 lines
2.8 KiB
HTML
Raw Normal View History

<div class="editor-row">
<div class="tight-form-section">
<h5>Links and Dash Navigation</h5>
<div class="tight-form" ng-repeat="link in dashboard.links">
2015-04-12 02:42:27 -05:00
<ul class="tight-form-list">
<li class="tight-form-item">
<i class="fa fa-remove pointer" ng-click="deleteLink(link)"></i>
</li>
2015-05-06 03:57:32 -05:00
<li class="tight-form-item">Type</li>
2015-04-12 02:42:27 -05:00
<li>
2015-05-06 09:40:43 -05:00
<select class="input-medium tight-form-input" style="width: 101px;" ng-model="link.type" ng-options="f for f in ['dashboards','link']" ng-change="updated()"></select>
2015-04-12 02:42:27 -05:00
</li>
2015-05-06 09:40:43 -05:00
<li class="tight-form-item" ng-show="link.type === 'dashboards'">With tag</li>
<li ng-show="link.type === 'dashboards'">
<input type="text" ng-model="link.tag" class="input-small tight-form-input" ng-model-onblur ng-change="updated()">
2015-04-12 02:42:27 -05:00
</li>
2015-05-06 09:40:43 -05:00
<li class="tight-form-item" ng-show="link.type === 'link'" style="width: 69px">Url</li>
<li ng-show="link.type === 'link'">
2015-05-06 03:57:32 -05:00
<input type="text" ng-model="link.url" class="input-xlarge tight-form-input" ng-model-onblur ng-change="updated()">
2015-04-12 02:42:27 -05:00
</li>
2015-05-06 09:40:43 -05:00
<li class="tight-form-item" ng-show="link.type === 'link'">Title</li>
<li ng-show="link.type === 'link'">
2015-05-06 03:57:32 -05:00
<input type="text" ng-model="link.title" class="input-medium tight-form-input" ng-model-onblur ng-change="updated()">
</li>
2015-05-06 09:40:43 -05:00
<li class="tight-form-item" ng-show="link.type === 'link'">Tooltip</li>
<li ng-show="link.type === 'link'">
2015-05-06 03:57:32 -05:00
<input type="text" ng-model="link.tooltip" class="input-medium tight-form-input" placeholder="Open dashbord" ng-model-onblur ng-change="updated()">
2015-04-12 02:42:27 -05:00
</li>
2015-05-06 09:40:43 -05:00
<li class="tight-form-item" ng-show="link.type === 'link'">Icon</li>
<li ng-show="link.type === 'link'">
<select class="input-medium tight-form-input" style="width: 101px;" ng-model="link.icon" ng-options="f for f in ['dashboard','external','help']" ng-change="updated()"></select>
</li>
2015-04-12 02:42:27 -05:00
</ul>
<div class="clearfix"></div>
</div>
<!-- <div class="tight&#45;form"> -->
<!-- <ul class="tight&#45;form&#45;list" role="menu"> -->
<!-- <li class="tight&#45;form&#45;item"> -->
<!-- <i class="fa fa&#45;remove invisible"></i> -->
<!-- </li> -->
<!-- <li class="tight&#45;form&#45;item" style="width: 80px;"> -->
<!-- Params -->
<!-- <tip>Use var&#45;variableName=value to pass templating variables.</tip> -->
<!-- </li> -->
<!-- <li> -->
<!-- <input type="text" ng&#45;model="link.params" class="input&#45;xxlarge tight&#45;form&#45;input"> -->
<!-- </li> -->
<!-- </ul> -->
<!-- <div class="clearfix"></div> -->
<!-- </div> -->
</div>
</div>
</div>
<div class="editor-row">
<br>
<button class="btn btn-inverse" ng-click="addLink()"><i class="fa fa-plus"></i> Add link</button>
</div>