prometheus/web/ui/static/js/graph/graph_template.handlebar
jritchieBAE b8f0a41745 Update to Bootstrap 4.1.3 (#5192)
* web: updated bootstrap3-typeahead file to work with bootstrap 4.0.0

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* web: Replaced bootstrap-3.3.1 with bootstrap 4.0.0

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* web: Added bootstrap4-glyphicons as 4.0.0 doesnt include bootstrap3 glyphicons

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* web: updated js jquery to 3.3.1

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* web: updated _base.html to import new bootstrap 4.0.0, jquery3.3.1 and bootstrap class tags to be 4.0 compatible

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* web: _base.html missed word out in title tag (Server).

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* web: updated alerts.html class names and tags to be bootstrap 4 compatible.

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* web: updated config.html class names and tags to be bootstrap 4 compatible.

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* web: updated flags.html class names and tags to be bootstrap 4 compatible.

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* web: updated service-discovery.html class names and tags to be bootstrap 4 compatible.

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* web: updated status.html class names and tags to be bootstrap 4 compatible.

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* web: updated targets.html class names and tags to be bootstrap 4 compatible.

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* web: updated graph_template.handlebar class names and tags to be bootstrap 4 compatible.

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* web: alerts.css fix for button color inheritance on alerts page.

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* web: graph.css fix for color inheritance.

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* web: prometheus.css updated to fix nav bar.

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* web: previous merge conflict not fixed correctly on _base.html

Signed-off-by: Andrew Chiu <andrew.chiu2@baesystems.com>

* menu.lib and prom.lib imports updated

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* bootstrap 4.1.3 imported

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* Bootstrap 4.1.3 imported into _base.html

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* bootstrap 4.1.3 imported into prom.lib

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* menu.lib style adjusted to view sidebar

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* Alert colour uplifted to bootstrap 4.1.3

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* Alerts display code reformatted similarly to config

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* Consoles pages adjusted to account for new navbar

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* LHS Menu fixed in console pages

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* Minor changes to prom_console to adjust lhs nav

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* Prom.lib and some css updated to fix console graph controls

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* Bootstrap 4.0.0 files removed

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* Consoles configured so that the graph fits with the new side bar, css files also adjusted

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* Import popper.min.js for dropdowns

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* Popper.min.js imported locally

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* Re-added #4764 and fixed css

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* Removed .DS_Store

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* Rebuilt assets

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* Spaces between buttons and inputs on graph page removed

Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>

* fixed spacing in buttons on /targets

Signed-off-by: Pritam Bhudia <pritam.bhudia@baesystems.com>

* Updated vfsdata.go

Signed-off-by: Pritam Bhudia <pritam.bhudia@baesystems.com>

* fixed typeahead issue

Signed-off-by: James Ritchie <james.g.ritchie@baesystems.com>

* added css for dropdown

Signed-off-by: James Ritchie <james.g.ritchie@baesystems.com>

* changed order of css imports

Signed-off-by: James Ritchie <james.g.ritchie@baesystems.com>

* tinkered with CSS changes to make keyboard select and mouseover match

Signed-off-by: James Ritchie <james.g.ritchie@baesystems.com>
2019-02-07 22:18:09 +01:00

165 lines
7.8 KiB
Plaintext

<div id="graph_wrapper{{id}}" class="graph_wrapper">
<form class="query_form">
<div class="form-row">
<div class="col-lg-10">
<textarea rows="1" placeholder="Expression (press Shift+Enter for newlines)" name="expr" id="expr{{id}}" class="form-control expression_input" data-provide="typeahead" autocomplete="off" spellcheck="false">{{expr}}</textarea>
</div>
<div class="col-lg-2">
<div class="eval_stats float-right"></div>
<img src="{{ pathPrefix }}/static/img/ajax-loader.gif?v={{ buildVersion }}" class="spinner" alt="ajax_spinner">
</div>
</div>
<div class="form-inline">
<input class="btn btn-primary execute_btn" type="submit" value="Execute" name="submit">
<select class="custom-select form-control expression_select" name="insert_metric">
<option value="">- insert metric at cursor -</option>
</select>
</div>
<div class="form-row">
<div class="col-lg-12">
<div class="error alert alert-danger"></div>
<div class="warning alert alert-warning"></div>
</div>
</div>
<!--
TODO: Convert this to Bootstrap navbar. This requires Javascript
refresh.
-->
<div class="form-row">
<div class="col-lg-12">
<div class="list-group" role="tabpanel">
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item" role="presentation"><a class="nav-link" href="#graph{{id}}" aria-controls="graph{{id}}" role="tab" data-toggle="tab">Graph</a></li>
<li class="nav-item" role="presentation" class="active"><a class="nav-link" href="#console{{id}}" aria-controls="console{{id}}" role="tab" data-toggle="tab">Console</a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane graph_container reload" id="graph{{id}}">
<div class="clearfix">
<!-- Extracted to force grouped inputs. -->
<div class="prometheus_input_group range_input pull-left">
<button
class="btn btn-light pull-left"
type="button"
name="dec_range"
title="Shrink the time range.">
<i class="glyphicon glyphicon-minus"></i>
</button><!--
--><input
class="pull-left input"
id="range_input{{id}}"
title="Time range of graph"
type="text"
name="range_input"
size="3"
value="{{range_input}}"><!--
--><button
class="btn btn-light pull-left"
type="button"
name="inc_range"
title="Grow the time range.">
<i class="glyphicon glyphicon-plus"></i>
</button>
</div>
<!-- Extracted to force grouped inputs. -->
<div class="prometheus_input_group pull-left">
<button
class="btn btn-light pull-left"
type="button"
name="dec_end"
title="Rewind the end time.">
<i class="glyphicon glyphicon-backward"></i>
</button><!--
--><input
class="pull-left date_input input"
id="end{{id}}"
title="End time of graph (UTC)"
placeholder="Until"
data-format="yyyy-MM-dd"
type="text"
name="end_input"
size="16"
value="{{end}}"><!--
--><button
class="btn btn-light pull-left"
type="button"
name="inc_end"
title="Advance the end time.">
<i class="glyphicon glyphicon-forward"></i>
</button>
</div>
<div class="prometheus_input_group pull-left">
<input class="input" title="Resolution in seconds" placeholder="Res. (s)" type="text" name="step_input" id="step_input{{id}}" value="{{step_input}}" size="6">
</div>
<div class="prometheus_input_group pull-left">
<button type="button" class="btn btn-light stacked_btn">
<i class="glyphicon"></i> stacked
</button>
<input type="hidden" name="stacked" value="{{stacked}}">
</div>
</div>
<div class="graph_area"></div>
<div class="legend"></div>
</div>
<div role="tabpanel" class="tab-pane active console reload" id="console{{id}}">
<div class="clearfix">
<!-- Extracted to force grouped inputs. -->
<div class="prometheus_input_group pull-left">
<button
class="btn btn-light pull-left"
type="button"
name="dec_moment"
title="Rewind the moment.">
<i class="glyphicon glyphicon-backward"></i>
</button>
<input
class="pull-left date_input input"
id="moment{{id}}"
title="Moment of console (UTC)"
placeholder="Moment"
data-format="yyyy-MM-dd"
type="text"
name="moment_input"
size="16"
value="{{moment}}">
<button
class="btn btn-light pull-left"
type="button"
name="inc_moment"
title="Advance the moment.">
<i class="glyphicon glyphicon-forward"></i>
</button>
</div>
</div>
<table class="table table-sm table-hover console_table">
<thead>
<th>Element</th>
<th>Value</th>
</thead>
<tbody>
<tr><td colspan="2"><i>no data</i></td></tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="form-row">
<div class="col-lg-12 text-right">
<a name="remove" href="#">Remove Graph</a>
</div>
</div>
</form>
</div>