Fix layout

pull/3852/head
IgorA100 2024-03-06 20:18:15 +03:00 committed by GitHub
parent 7757eeae1a
commit 57c993507c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 39 additions and 28 deletions

View File

@ -46,31 +46,25 @@ getBodyTopHTML();
?>
<div id="page">
<?php echo $navbar = getNavBarHTML(); ?>
<div id="content">
<form name="groupsForm" method="post" action="?">
<input type="hidden" name="view" value="groups"/>
<input type="hidden" name="action" value="setgroup"/>
<div id="contentButtons">
<button type="button" value="New" data-on-click="newGroup"<?php echo canEdit('Groups')?'':' disabled="disabled"' ?>>
<i class="material-icons md-18">add_circle</i>
<span class="text"><?php echo translate('New') ?></span>
</button>
<button type="button" name="deleteBtn" value="Delete" data-on-click-this="deleteGroup" disabled="disabled">
<i class="material-icons md-18">delete</i>
<span class="text"><?php echo translate('Delete') ?></span>
</button>
</div>
<table id="contentTable" class="major">
<thead class="thead-highlight">
<tr>
<div id="content" class="row">
<div class="col">
<form name="groupsForm" method="post" action="?">
<input type="hidden" name="view" value="groups"/>
<input type="hidden" name="action" value="setgroup"/>
<div class="row">
<div class="col">
<table id="contentTable" class="major table-sm table-striped">
<thead class="thead-highlight">
<tr>
<?php if ( canEdit('Groups') ) { ?>
<th class="colSelect"><?php echo translate('Mark') ?></th>
<th class="colSelect"><?php echo translate('Mark') ?></th>
<?php } ?>
<th class="colName" colspan="<?php echo $max_depth+1 ?>"><?php echo translate('Name') ?></th>
<th class="colIds"><?php echo translate('Monitors') ?></th>
</tr>
</thead>
<tbody>
<th class="colName" colspan="<?php echo $max_depth+1 ?>"><?php echo translate('Name') ?></th>
<th class="colIds"><?php echo translate('Monitors') ?></th>
</tr>
</thead>
<tbody>
<?php
function group_line( $Group ) {
global $children;
@ -99,9 +93,26 @@ if ( isset( $children[null] ) )
foreach ( $children[null] as $Group )
echo group_line($Group);
?>
</tbody>
</table>
</form>
</div>
</div>
</tbody>
</table>
</div> <!-- .col -->
</div> <!-- .row -->
<div class="row">
<div class="col">
<div id="contentButtons">
<button type="button" value="New" data-on-click="newGroup"<?php echo canEdit('Groups')?'':' disabled="disabled"' ?>>
<i class="material-icons md-18">add_circle</i>
<span class="text"><?php echo translate('New') ?></span>
</button>
<button type="button" name="deleteBtn" value="Delete" data-on-click-this="deleteGroup" disabled="disabled">
<i class="material-icons md-18">delete</i>
<span class="text"><?php echo translate('Delete') ?></span>
</button>
</div>
</div> <!-- .col -->
</div> <!-- .row -->
</form>
</div> <!-- .col -->
</div> <!-- .row -->
</div> <!-- #page -->
<?php xhtmlFooter() ?>