You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ea...@apache.org on 2017/01/13 19:23:27 UTC

qpid-dispatch git commit: DISPATCH-325 Adding template for chart editing

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 7b8503d2d -> b42282efd


DISPATCH-325 Adding template for chart editing


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/b42282ef
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/b42282ef
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/b42282ef

Branch: refs/heads/master
Commit: b42282efd5e8f0eaa751ca98b094bdfff74ab990
Parents: 7b8503d
Author: Ernest Allen <ea...@redhat.com>
Authored: Fri Jan 13 14:23:23 2017 -0500
Committer: Ernest Allen <ea...@redhat.com>
Committed: Fri Jan 13 14:23:23 2017 -0500

----------------------------------------------------------------------
 .../plugin/html/tmplChartConfig.html            | 60 ++++++++++++++++++++
 1 file changed, 60 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/b42282ef/console/stand-alone/plugin/html/tmplChartConfig.html
----------------------------------------------------------------------
diff --git a/console/stand-alone/plugin/html/tmplChartConfig.html b/console/stand-alone/plugin/html/tmplChartConfig.html
new file mode 100644
index 0000000..8319753
--- /dev/null
+++ b/console/stand-alone/plugin/html/tmplChartConfig.html
@@ -0,0 +1,60 @@
+<!--
+    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="d3Chart"></div>
+        <tabset>
+            <tab heading="Type">
+                <legend>Chart type</legend>
+                <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 style="clear:both;"> </div>
+            </tab>
+            <tab ng-hide="$parent.chart.aggregate()" heading="Colors">
+                <legend>Chart colors</legend>
+                <div class="colorPicker">
+                    <label>Line: <input id="lineColor" name="lineColor" type="color" /></label>
+                </div>
+                <div class="colorPicker">
+                    <label>Area: <input id="areaColor" name="areaColor" type="color" /></label>
+                </div>
+                <div style="clear:both;"> </div>
+            </tab>
+            <tab heading="Duration">
+                <legend>Chart duration</legend>
+                <div class="dlg-slider duration">
+                    <span>Show data for past {{dialogChart.visibleDuration}} minute{{dialogChart.visibleDuration > 1 ? "s" : ""}}</span>
+                    <div id="durationSlider"></div>
+                </div>
+                <div style="clear:both;"> </div>
+
+            </tab>
+        </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()">
+                <button class="btn btn-danger" type="button" ng-click="delChartsPage()">Remove</button> this chart from 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>
+


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org