ADDITIONAL SETTING (STATIC IP + TYPE)
Minor Fixes of Device EDit
This commit is contained in:
parent
b26ab5c032
commit
2fdc1b5bcc
@ -62,6 +62,16 @@
|
|||||||
<div class="label">Token:</div>
|
<div class="label">Token:</div>
|
||||||
<input class="input" type="text" name="deviceToken" value="<?php echo $DEVICE['token']; ?>" disabled>
|
<input class="input" type="text" name="deviceToken" value="<?php echo $DEVICE['token']; ?>" disabled>
|
||||||
</div>
|
</div>
|
||||||
|
<?php //TODO: firmware tipe send to api?>
|
||||||
|
<div class="field">
|
||||||
|
<div class="label">Type:</div>
|
||||||
|
<input class="input" type="text" name="deviceToken" value="<?php echo $DEVICE['type']; ?>" disabled>
|
||||||
|
</div>
|
||||||
|
<?php //TODO: add Static Ip Functionality?>
|
||||||
|
<div class="field">
|
||||||
|
<div class="label">IP:</div>
|
||||||
|
<input class="input" type="text" name="deviceToken" value="<?php echo $DEVICE['ip']; ?>" disabled>
|
||||||
|
</div>
|
||||||
<?php if ($DEVICE['userIsAdmin']) { ?>
|
<?php if ($DEVICE['userIsAdmin']) { ?>
|
||||||
<?php if (!in_array($SUBDEVICE['type'], ['on/off', 'door', 'water'])) { ?>
|
<?php if (!in_array($SUBDEVICE['type'], ['on/off', 'door', 'water'])) { ?>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
@ -101,22 +111,22 @@
|
|||||||
<div class="label"><?php $LANGMNG->echo('w_moduls'); ?></div>
|
<div class="label"><?php $LANGMNG->echo('w_moduls'); ?></div>
|
||||||
<div class="row no-gutters">
|
<div class="row no-gutters">
|
||||||
<?php foreach ($DEVICE['subDevices'] as $subDeviceKey => $subDevice) { ?>
|
<?php foreach ($DEVICE['subDevices'] as $subDeviceKey => $subDevice) { ?>
|
||||||
<div class="col-4 col-sm-3 col-xl-2 square-wrap">
|
<div class="device-button col-4 col-sm-3 col-xl-2 square-wrap">
|
||||||
<div class="square">
|
<div class="square">
|
||||||
<div class="square-content">
|
<div class="square-content">
|
||||||
<div class="row">
|
<div class="row no-gutters">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h3 class="fa">&#x<?php echo $DEVICE['icon']; ?></h3>
|
<h5 unselectable="on" class="fa">&#x<?php echo $DEVICE['icon'] ?></h5>
|
||||||
</div>
|
|
||||||
<div class="col">
|
|
||||||
<h3><?php echo $subDevice['unit']; ?></h3>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="col">
|
||||||
<div class="col">
|
<h5 unselectable="on" class="device-button-value text-right" title="<?php echo $subDevice['lastRecort']['time']; ?>"><?php echo $subDevice['lastRecort']['value'] . $subDevice['unit']?></h5>
|
||||||
<?php echo $DEVICE['name']; ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col button-text" unselectable="on" >
|
||||||
|
<?php echo $DEVICE['name']; ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -130,22 +140,13 @@
|
|||||||
<div class="label"><?php $LANGMNG->echo('w_moduls'); ?></div>
|
<div class="label"><?php $LANGMNG->echo('w_moduls'); ?></div>
|
||||||
<div class="row no-gutters">
|
<div class="row no-gutters">
|
||||||
<?php foreach ($DEVICE['subDevices'] as $subDeviceKey => $subDevice) { ?>
|
<?php foreach ($DEVICE['subDevices'] as $subDeviceKey => $subDevice) { ?>
|
||||||
<div class="col-4 col-sm-3 col-xl-2 square-wrap">
|
<div class="device-button col-4 col-sm-3 col-xl-2 square-wrap">
|
||||||
<div class="square">
|
<div class="square">
|
||||||
<div class="square-content">
|
<div class="square-content">
|
||||||
<div class="row">
|
|
||||||
<div class="col">
|
|
||||||
<h3 class="fa">&#x<?php echo $DEVICE['icon']; ?></h3>
|
|
||||||
</div>
|
|
||||||
<div class="col">
|
|
||||||
<h3><?php echo $subDevice['unit']; ?></h3>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col">
|
|
||||||
<?php echo $DEVICE['name']; ?>
|
<?php echo $DEVICE['name']; ?>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user