mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
Updated indents, pulled Line #24 into the if { }
This commit is contained in:
@@ -5,11 +5,11 @@ require_once 'includes/modal/delete_device_group.inc.php';
|
||||
$no_refresh = true;
|
||||
$group_count_check = array_filter(GetDeviceGroups());
|
||||
if(!empty($group_count_check)) {
|
||||
echo '<div class="row"><div class="col-sm-12"><span id="message"></span></div></div>';
|
||||
echo '<div class="table-responsive">';
|
||||
echo '<table class="table table-condensed table-hover"><thead><tr>';
|
||||
echo '<th>Name</th><th>Description</th><th>Pattern</th><th>Actions</th>';
|
||||
echo '</tr></thead><tbody>';
|
||||
echo '<div class="row"><div class="col-sm-12"><span id="message"></span></div></div>';
|
||||
echo '<div class="table-responsive">';
|
||||
echo '<table class="table table-condensed table-hover"><thead><tr>';
|
||||
echo '<th>Name</th><th>Description</th><th>Pattern</th><th>Actions</th>';
|
||||
echo '</tr></thead><tbody>';
|
||||
foreach (GetDeviceGroups() as $group) {
|
||||
echo '<tr id="row_'.$group['id'].'">';
|
||||
echo '<td>'.$group['name'].'</td>';
|
||||
@@ -21,12 +21,12 @@ echo '</tr></thead><tbody>';
|
||||
echo '</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
echo '</tbody></table></div>';
|
||||
}
|
||||
else { //if $group_count_check is empty, aka no group found, then display a message to the user.
|
||||
echo "<center>Looks like no groups have been created, let's create one now. Click on <b>Create New Group</b> to create one.</center><br>";
|
||||
echo "<center><button type='button' class='btn btn-primary btn-sm' aria-label='Add' data-toggle='modal' data-target='#create-group' data-group_id='' name='create-device-group'>Create new Group</button></center>";
|
||||
}
|
||||
echo '</tbody></table></div>';
|
||||
|
||||
if(!empty($group_count_check)) { //display create new node group when $group_count_check has a value so that the user can define more groups in the future.
|
||||
echo "<hr>";
|
||||
|
||||
Reference in New Issue
Block a user