Redesign of time filter UI
This commit is contained in:
parent
2c5b434fd2
commit
3adf85a0f6
8 changed files with 293 additions and 89 deletions
|
|
@ -12,6 +12,7 @@
|
|||
{{ if eq .Data.Datapoint.Datatype "INT" }}
|
||||
<div style="margin-top: 16px">
|
||||
<input onchange="selectDisplay('graph')" name="display" type="radio" id="display-graph" {{ if $graph }} checked {{ end}}> <label for="display-graph">Graph</label>
|
||||
<br>
|
||||
<input onchange="selectDisplay('list')" name="display" type="radio" id="display-list" {{ if not $graph }} checked {{ end }}> <label for="display-list">List</label>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -10,23 +10,26 @@
|
|||
|
||||
{{ block "page_label" . }}{{ end }}
|
||||
|
||||
<div style="margin-bottom: 16px">
|
||||
<input {{ if eq .Data.Selection "CURRENT" }}checked{{ end }} type="radio" name="selection" id="selection-current" onclick="_ui.selectCurrent()"> <label for="selection-current">Current problems</label>
|
||||
<input {{ if eq .Data.Selection "ALL" }}checked{{ end }} type="radio" name="selection" id="selection-all" onclick="_ui.selectAll()"> <label for="selection-all">Time-filtered problems</label>
|
||||
</div>
|
||||
|
||||
<hr style="margin-bottom: 16px">
|
||||
|
||||
{{ block "timefilter" . }}{{ end }}
|
||||
|
||||
<div style="margin-top: 16px">
|
||||
<input type="radio" name="display" id="display-table" onclick="_ui.displayAreas()"> <label for="display-table">Areas</label>
|
||||
<input type="radio" name="display" id="display-list" onclick="_ui.displayList()"> <label for="display-list">List</label>
|
||||
<div style="margin-top: 8px">
|
||||
<input type="checkbox" id="show-acked" onclick="_ui.toggleAcknowledged(event)"> <label for="show-acked">Show acknowledged</label>
|
||||
<div style="margin-bottom: 16px; display: grid; grid-template-columns: min-content min-content; grid-gap: 32px;">
|
||||
<div style="white-space: nowrap">
|
||||
<b>Problem selection</b><br>
|
||||
<input {{ if eq .Data.Selection "CURRENT" }}checked{{ end }} type="radio" name="selection" id="selection-current" onclick="_ui.selectCurrent()"> <label for="selection-current">Current</label>
|
||||
<br>
|
||||
<input {{ if eq .Data.Selection "ALL" }}checked{{ end }} type="radio" name="selection" id="selection-all" onclick="_ui.selectAll()"> <label for="selection-all">All</label>
|
||||
</div>
|
||||
<div style="white-space: nowrap">
|
||||
<b>Show</b><br>
|
||||
<input type="radio" name="display" id="display-table" onclick="_ui.displayAreas()"> <label for="display-table">Areas</label>
|
||||
<br>
|
||||
<input type="radio" name="display" id="display-list" onclick="_ui.displayList()"> <label for="display-list">List</label>
|
||||
<div style="margin-top: 8px">
|
||||
<input type="checkbox" id="show-acked" onclick="_ui.toggleAcknowledged(event)"> <label for="show-acked">Show acknowledged</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ block "timefilter" . }}{{ end }}
|
||||
|
||||
<div class="display-list hidden">
|
||||
<div id="problems-list" class="table">
|
||||
<div class="row"><h2>Unacknowledged</h2></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue