Skip to content

Commit

Permalink
Change auto-refresh selector
Browse files Browse the repository at this point in the history
Actually the selector for the automatic refresh is several radio
buttons with hardcoded values.

In order to offer flexibility now is a numeric field
  • Loading branch information
ilausuch committed Sep 14, 2020
1 parent 83c513f commit 46f0a76
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions templates/webapi/main/index.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,11 @@

<div class="form-group">
<strong>
Auto refresh
Auto-refresh interval
<%= help_popover('Help for <i>Auto refresh</i>' => '<p>Allows to update the data of this page automatically</p>') %>
</strong>
<input type="number" class="form-control" name="interval" min="0" placeholder="no auto-refresh" id="filter-limit-builds" onchange="event.target.value == 0 ? event.target.value='' : {} "> seconds

<input value="0" name="interval" type="radio" id="filter-interval-0">
<label for="filter-interval-0">No refresh</label>
<input value="30" name="interval" type="radio" id="filter-interval-30">
<label for="filter-interval-30">30 seconds</label>
<input value="60" name="interval" type="radio" id="filter-interval-60">
<label for="filter-interval-60">One minute</label>
<input value="120" name="interval" type="radio" id="filter-interval-120">
<label for="filter-interval-120">Two minutes</label>
<input value="180" name="interval" type="radio" id="filter-interval-180">
<label for="filter-interval-180">Three minutes</label>
</div>

<button type="submit" class="btn btn-default" id="filter-apply-button">Apply</button>
Expand Down

0 comments on commit 46f0a76

Please sign in to comment.