Skip to content

Commit

Permalink
QA: Layout and request variable issues with #5730
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Apr 20, 2024
1 parent f0ca5c5 commit 1363d4c
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions host_templates.php
Expand Up @@ -685,13 +685,7 @@ function template() {
<table class='filterTable'>
<tr>
<td>
<?php print __('Search');?>
</td>
<td>
<input type='text' class='ui-state-default ui-corner-all' id='filter' size='25' value='<?php print html_escape_request_var('filter');?>'>
</td>
<td>
<?php print __('Device Class');?>
<?php print __('Class');?>
</td>
<td>
<select id='class'>
Expand Down Expand Up @@ -758,6 +752,22 @@ function template() {
?>
</select>
</td>
<td>
<span>
<input type='button' class='ui-button ui-corner-all ui-widget' id='refresh' value='<?php print __esc('Go');?>' title='<?php print __esc('Set/Refresh Filters');?>'>
<input type='button' class='ui-button ui-corner-all ui-widget' id='clear' value='<?php print __esc('Clear');?>' title='<?php print __esc('Clear Filters');?>'>
</span>
</td>
</tr>
</table>
<table class='filterTable'>
<tr>
<td>
<?php print __('Search');?>
</td>
<td>
<input type='text' class='ui-state-default ui-corner-all' id='filter' size='25' value='<?php print html_escape_request_var('filter');?>'>
</td>
<td>
<?php print __('Device Templates');?>
</td>
Expand All @@ -779,12 +789,6 @@ function template() {
<label for='has_hosts'><?php print __('Has Devices');?></label>
</span>
</td>
<td>
<span>
<input type='button' class='ui-button ui-corner-all ui-widget' id='refresh' value='<?php print __esc('Go');?>' title='<?php print __esc('Set/Refresh Filters');?>'>
<input type='button' class='ui-button ui-corner-all ui-widget' id='clear' value='<?php print __esc('Clear');?>' title='<?php print __esc('Clear Filters');?>'>
</span>
</td>
</tr>
</table>
</form>
Expand All @@ -795,7 +799,7 @@ function applyFilter() {
strURL += '&filter='+$('#filter').val();
strURL += '&class='+$('#class').val();
strURL += '&rows='+$('#rows').val();
strURL += '&graph_templates='+$('#graph_templates').val();
strURL += '&graph_template='+$('#graph_template').val();
strURL += '&has_hosts='+$('#has_hosts').is(':checked');
loadPageNoHeader(strURL);
}
Expand All @@ -808,7 +812,7 @@ function clearFilter() {
}

$(function() {
$('#graph_templates, #class, #rows').change(function() {
$('#graph_template, #class, #rows').change(function() {
applyFilter();
});

Expand Down

0 comments on commit 1363d4c

Please sign in to comment.