blob: efd474ed1eae1c71edcfeb999e3c588d330107ba [file]
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License
-->
<!--
This is the template for the graph dialog that is displayed. It uses the
dialogCtrl controller in qdrCharts.js.
-->
<div class="chartOptions">
<div class="modal-header">
<h3 class="modal-title">Chart {{chart.attr() | humanify}}</h3>
</div>
<div class="modal-body">
<div id="{{svgDivId}}" class="line-chart-pf"></div>
<uib-tabset>
<uib-tab heading="Type">
<legend>Chart type</legend>
<div class="clearfix">
<label><input type="radio" ng-model="dialogChart.type" value="value" /> Value Chart</label>
<label><input type="radio" ng-model="dialogChart.type" value="rate" /> Rate Chart</label>
<!--
<div class="dlg-slider" ng-show="dialogChart.type=='rate'">
<span>Rate Window: {{rateWindow}} second{{rateWindow > 1 ? "s" : ""}}</span>
<div id="rateSlider"></div>
</div>
-->
</div>
</uib-tab>
<uib-tab ng-hide="chart.aggregate()" heading="Colors">
<legend>Chart colors</legend>
<div class="clearfix">
<div class="colorPicker">
<label>Area: <input id="areaColor" name="areaColor" type="color" ng-model="dialogChart.areaColor"/></label>
</div>
</div>
</uib-tab>
<uib-tab heading="Duration">
<legend>Chart duration</legend>
<div class="clearfix">
<div class="dlg-slider duration">
<span>Show data for past {{dialogChart.visibleDuration}} minute{{dialogChart.visibleDuration > 1 ? "s" : ""}}</span>
<div id="durationSlider"></div>
</div>
</div>
</uib-tab>
</uib-tabset>
</div>
<div class="modal-footer">
<div ng-hide="adding()">
<button class="btn btn-success" type="button" ng-click="apply()">Apply to existing chart</button>
<button class="btn btn-info" type="button" ng-click="copyToDashboard()">Create new chart</button>
<button class="btn btn-primary" type="button" ng-click="okClick()">Close</button>
</div>
<div ng-show="adding()">
<span ng-hide="isOnChartsPage()">
<button class="btn btn-success" type="button" ng-click="addChartsPage()"><i class="icon-bar-chart"></i> Add</button> this chart to the Charts page.
</span>
<span ng-show="isOnChartsPage()">
View the <button class="btn btn-success" type="button" ng-click="showChartsPage()"><i class="icon-bar-chart"></i> Charts</button> page.
</span>
<button class="btn btn-primary" type="button" ng-click="okClick()">Close</button>
</div>
</div>
</div>