2019-08-23 11:39:42 +00:00
|
|
|
<div class="modal-container modal-container-hiden" id="modal">
|
|
|
|
<div class="modal">
|
|
|
|
<a href=""><i class="fa fa-times close"></i></a>
|
2019-10-11 12:12:05 +00:00
|
|
|
<h4 class="mb-4"><?php $LANGMNG->echo('t_createAutomation')?></h4>
|
2019-11-22 14:07:54 +00:00
|
|
|
<form method="post" action="" >
|
2019-08-23 11:39:42 +00:00
|
|
|
<div class="field">
|
2019-10-11 12:12:05 +00:00
|
|
|
<div class="label"><?php $LANGMNG->echo('l_nameAt')?></div>
|
2019-10-08 16:23:57 +00:00
|
|
|
<div class="field">
|
|
|
|
<input class="input" type="text" name="name" required/>
|
|
|
|
</div>
|
2019-10-11 12:12:05 +00:00
|
|
|
<div class="label"><?php $LANGMNG->echo('l_runAt')?></div>
|
2019-08-23 11:39:42 +00:00
|
|
|
<div class="field">
|
|
|
|
<select class="input" name="atSelector" id="valueSelector" required>
|
2019-10-11 12:12:05 +00:00
|
|
|
<option value="sunSet"><?php $LANGMNG->echo('l_sunSet')?></option>
|
|
|
|
<option value="sunRise"><?php $LANGMNG->echo('l_sunRice')?></option>
|
|
|
|
<option value="inHome"><?php $LANGMNG->echo('l_inHome')?></option>
|
|
|
|
<option value="outHome"><?php $LANGMNG->echo('l_outHome')?></option>
|
|
|
|
<option value="time"><?php $LANGMNG->echo('l_time')?></option>
|
|
|
|
<option value="atDeviceValue"><?php $LANGMNG->echo('l_deviceValue');?></option>
|
|
|
|
<option value="noOneHome"><?php $LANGMNG->echo('w_noOne') . ' ' . $LANGMNG->get('w_neni') . ' ' . $LANGMNG->get('w_home');?></option>
|
|
|
|
<option value="someOneHome"><?php $LANGMNG->echo('w_someOne') . ' ' . $LANGMNG->get('w_is') . ' ' . $LANGMNG->get('w_home');?></option>
|
2019-08-23 11:39:42 +00:00
|
|
|
</select>
|
|
|
|
<input class="input" type="time" name="atTime" id="atTime" disabled/>
|
|
|
|
<select class="input" name="atDeviceValue" id="atDeviceValue" disabled>
|
|
|
|
<?php foreach ($SUBDEVICES as $subDeviceKey => $subDeviceValue){ ?>
|
|
|
|
<option value="<?php echo $subDeviceKey; ?>"><?php echo $subDeviceValue['name']; ?>[<?php echo $subDeviceValue['type']; ?>]</option>
|
|
|
|
<?php } ?>
|
|
|
|
</select>
|
|
|
|
=
|
|
|
|
<input class="input" type="num" name="atDeviceValueInt" id="atDeviceValueInt" required disabled/>
|
|
|
|
</div>
|
2019-08-23 12:30:46 +00:00
|
|
|
|
2019-10-11 12:12:05 +00:00
|
|
|
<div class="label"><?php $LANGMNG->echo('l_affectedDevices')?></div>
|
2019-08-23 11:39:42 +00:00
|
|
|
<div class="field">
|
|
|
|
<select class="input" name="devices[]" multiple>
|
2019-10-08 16:23:57 +00:00
|
|
|
<?php foreach ($SUBDEVICES as $subDeviceKey => $subDeviceValue){
|
2019-08-23 11:39:42 +00:00
|
|
|
if ($subDeviceValue['type'] != 'on/off') continue;?>
|
2019-08-24 11:07:07 +00:00
|
|
|
<option value="<?php echo $subDeviceValue['masterDevice']; ?>"><?php echo $subDeviceValue['name']; ?></option>
|
2019-08-23 11:39:42 +00:00
|
|
|
<?php } ?>
|
|
|
|
</select>
|
2019-10-08 16:23:57 +00:00
|
|
|
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
2019-10-11 12:12:05 +00:00
|
|
|
<div class="label"><?php $LANGMNG->echo('l_atDays')?></div>
|
2019-08-23 11:39:42 +00:00
|
|
|
<div class="field">
|
2019-10-11 12:12:05 +00:00
|
|
|
<input type="checkbox" name="day[]" value="mon"/> <?php $LANGMNG->echo('d_monday'); ?>
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2019-10-11 12:12:05 +00:00
|
|
|
<input type="checkbox" name="day[]" value="tue"/> <?php $LANGMNG->echo('d_tuesday'); ?>
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2019-10-11 12:12:05 +00:00
|
|
|
<input type="checkbox" name="day[]" value="wed"/> <?php $LANGMNG->echo('d_wednesday'); ?>
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2019-10-11 12:12:05 +00:00
|
|
|
<input type="checkbox" name="day[]" value="thu"/> <?php $LANGMNG->echo('d_thursday'); ?>
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2019-10-11 12:12:05 +00:00
|
|
|
<input type="checkbox" name="day[]" value="fri"/> <?php $LANGMNG->echo('d_friday'); ?>
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2019-10-11 12:12:05 +00:00
|
|
|
<input type="checkbox" name="day[]" value="sat"/> <?php $LANGMNG->echo('d_saturday'); ?>
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2019-10-11 12:12:05 +00:00
|
|
|
<input type="checkbox" name="day[]" value="sun"/> <?php $LANGMNG->echo('d_sunday'); ?>
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-10-11 12:12:05 +00:00
|
|
|
<input type="submit" class="button" name="modalNext" value="<?php $LANGMNG->echo('b_next')?>"/>
|
2019-08-23 11:39:42 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2019-10-08 16:23:57 +00:00
|
|
|
</div>
|