PHP_SMART_HOME_V3/app/templates/part/sceneCreate.phtml

40 lines
2.0 KiB
PHTML
Raw Normal View History

2019-08-23 11:39:42 +00:00
<div class="modal-container modal-container-hiden" id="modal">
<div class="modal">
<div class="close">
<i class="fa fa-times"></i>
</div>
2019-10-11 12:12:05 +00:00
<h4 class="mb-4"><?php $LANGMNG->echo('t_createScene');?></h4>
2019-08-23 11:39:42 +00:00
<form method="post" action="" >
<div class="field">
2019-10-11 12:12:05 +00:00
<div class="label"><?php $LANGMNG->echo('w_title');?>:</div>
2019-08-23 11:39:42 +00:00
<input type="text" class="input" name="sceneName" value=""/>
</div>
<div class="field">
2019-10-11 12:12:05 +00:00
<div class="label"><?php $LANGMNG->echo('w_icon');?>:</div>
2019-08-23 11:39:42 +00:00
<select class="input fa" name="sceneIcon" <?php echo (!$DEVICE['userIsAdmin'] ? 'disabled' : ''); ?>>
<option value="">No icon</option>
<option value="f0eb">&#xf0eb; - fa-lightbulb-o</option>
<option value="f2dc">&#xf2dc; - fa-snowflake-o</option>
<option value="f0e7">&#xf0e7; - fa-bolt</option>
<option value="f2c7">&#xf2c7; - fa-thermometer-full</option>
<option value="f236">&#xf236; - fa-bed</option>
<option value="f185">&#xf185; - fa-sun-o</option>
<option value="f2db">&#xf2db; - fa-microchip</option>
<option value="f011">&#xf011; - fa-power-off</option>
<option value="f011">&#xf108; - fa-desktop</option>
</select>
</div>
<div class="field">
2019-10-11 12:12:05 +00:00
<div class="label"><?php $LANGMNG->echo('l_choseDevice');?></div>
2019-10-11 14:52:52 +00:00
<select class="input" name="devices[]" multiple required>
2019-08-23 11:39:42 +00:00
<?php
foreach ($SUBDEVICES as $subdeviceId => $subdeviceData) {
echo '<option value="'.$subdeviceId.'">'.$subdeviceData['name'].'</option>';
}
?>
</select>
</div>
2019-10-11 12:12:05 +00:00
<input type="submit" class="button" name="submit" value="<?php $LANGMNG->echo('b_next');?>"/>
2019-08-23 11:39:42 +00:00
</form>
</div>
</div>