40 lines
2.0 KiB
PHTML
40 lines
2.0 KiB
PHTML
<div class="modal-container modal-container-hiden" id="modal">
|
|
<div class="modal">
|
|
<div class="close">
|
|
<i class="fa fa-times"></i>
|
|
</div>
|
|
<h4 class="mb-4"><?php $LANGMNG->echo('t_createScene');?></h4>
|
|
<form method="post">
|
|
<div class="field">
|
|
<div class="label"><?php $LANGMNG->echo('w_title');?>:</div>
|
|
<input type="text" class="input" name="sceneName" value=""/>
|
|
</div>
|
|
<div class="field">
|
|
<div class="label"><?php $LANGMNG->echo('w_icon');?>:</div>
|
|
<select class="input fa" name="sceneIcon" <?php echo (!$DEVICE['userIsAdmin'] ? 'disabled' : ''); ?>>
|
|
<option value="">No icon</option>
|
|
<option value="f0eb"> - fa-lightbulb-o</option>
|
|
<option value="f2dc"> - fa-snowflake-o</option>
|
|
<option value="f0e7"> - fa-bolt</option>
|
|
<option value="f2c7"> - fa-thermometer-full</option>
|
|
<option value="f236"> - fa-bed</option>
|
|
<option value="f185"> - fa-sun-o</option>
|
|
<option value="f2db"> - fa-microchip</option>
|
|
<option value="f011"> - fa-power-off</option>
|
|
<option value="f011"> - fa-desktop</option>
|
|
</select>
|
|
</div>
|
|
<div class="field">
|
|
<div class="label"><?php $LANGMNG->echo('l_choseDevice');?></div>
|
|
<select class="input" name="devices[]" multiple required>
|
|
<?php
|
|
foreach ($SUBDEVICES as $subdeviceId => $subdeviceData) {
|
|
echo '<option value="'.$subdeviceId.'">'.$subdeviceData['name'].'</option>';
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
<input type="submit" class="button" name="submit" value="<?php $LANGMNG->echo('b_next');?>"/>
|
|
</form>
|
|
</div>
|
|
</div>
|