mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
60 lines
2.1 KiB
HTML
60 lines
2.1 KiB
HTML
<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">
|
|
<ul class="tight-form-list">
|
|
<li class="tight-form-item">
|
|
<i class="fa fa-remove pointer" ng-click="deleteLink(link)"></i>
|
|
</li>
|
|
|
|
<li class="tight-form-item" style="width: 80px;">Type</li>
|
|
<li>
|
|
<select class="input-medium tight-form-input" style="width: 101px;" ng-model="link.type" ng-options="f for f in ['dashboard','absolute']"></select>
|
|
</li>
|
|
|
|
<li class="tight-form-item" ng-show="link.type === 'dashboard'">Dashboard</li>
|
|
<li ng-show="link.type === 'dashboard'">
|
|
<input type="text"
|
|
ng-model="link.dashboard"
|
|
bs-typeahead="searchDashboards"
|
|
class="input-large tight-form-input">
|
|
</li>
|
|
|
|
<li class="tight-form-item" ng-show="link.type === 'absolute'">Url</li>
|
|
<li ng-show="link.type === 'absolute'">
|
|
<input type="text" ng-model="link.url" class="input-xlarge tight-form-input">
|
|
</li>
|
|
|
|
<li class="tight-form-item">Title</li>
|
|
<li>
|
|
<input type="text" ng-model="link.title" class="input-medium tight-form-input">
|
|
</li>
|
|
</ul>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<!-- <div class="tight-form"> -->
|
|
<!-- <ul class="tight-form-list" role="menu"> -->
|
|
<!-- <li class="tight-form-item"> -->
|
|
<!-- <i class="fa fa-remove invisible"></i> -->
|
|
<!-- </li> -->
|
|
<!-- <li class="tight-form-item" style="width: 80px;"> -->
|
|
<!-- Params -->
|
|
<!-- <tip>Use var-variableName=value to pass templating variables.</tip> -->
|
|
<!-- </li> -->
|
|
<!-- <li> -->
|
|
<!-- <input type="text" ng-model="link.params" class="input-xxlarge tight-form-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>
|
|
|