Only list available ids if there are some
This commit is contained in:
parent
364ae03195
commit
f737e3e945
|
@ -461,8 +461,11 @@ switch ( $name ) {
|
||||||
<tr class="Id">
|
<tr class="Id">
|
||||||
<td class="text-right pr-3"><?php echo translate('Id') ?></td>
|
<td class="text-right pr-3"><?php echo translate('Id') ?></td>
|
||||||
<td><input type="number" step="1" min="1" name="newMonitor[Id]" placeholder="leave blank for auto"/><br/>
|
<td><input type="number" step="1" min="1" name="newMonitor[Id]" placeholder="leave blank for auto"/><br/>
|
||||||
10 Available Ids:
|
<?php
|
||||||
<?php echo implode(', ', array_slice($available_monitor_ids, 0, 10)); ?>
|
if (count($available_monitor_ids)) {
|
||||||
|
echo 'Some available ids: '.implode(', ', array_slice($available_monitor_ids, 0, 10));
|
||||||
|
}
|
||||||
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue