Scenes/Automation function Fixs
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<div class="modal-container" id="modal">
|
||||
<div class="modal">
|
||||
<div class="modal" action="" >
|
||||
<a href=""><i class="fa fa-times close"></i></a>
|
||||
<h4 class="mb-4"><?php $LANGMNG->echo('t_createAutomation'); ?></h4>
|
||||
<form method="post">
|
||||
<div class="field">
|
||||
<input type="hidden" name="action" value="add" required/>
|
||||
<input type="hidden" name="atSelector" value="<?php echo $_POST['atSelector']; ?>" required/>
|
||||
<input type="hidden" name="name" value="<?php echo $_POST['name']; ?>" required/>
|
||||
<input type="hidden" name="atSelectorValue" value="<?php if (isset($_POST['atTime'])) {
|
||||
|
@@ -5,6 +5,7 @@
|
||||
</div>
|
||||
<h4 class="mb-4"><?php $LANGMNG->echo('t_createAutomation');?></h4>
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="edit" required/>
|
||||
<input name="automation_id" type="hidden" value="<?php echo $AUTOMATIONID; ?>">
|
||||
<div class="field">
|
||||
<div class="label"><?php $LANGMNG->echo('l_nameAt');?></div>
|
||||
|
@@ -4,7 +4,7 @@
|
||||
<i class="fa fa-times"></i>
|
||||
</div>
|
||||
<h4 class="mb-4"><?php $LANGMNG->echo('t_createScene');?></h4>
|
||||
<form method="post" action="" >
|
||||
<form method="post">
|
||||
<div class="field">
|
||||
<div class="label"><?php $LANGMNG->echo('w_title');?>:</div>
|
||||
<input type="text" class="input" name="sceneName" value=""/>
|
||||
|
@@ -3,7 +3,7 @@
|
||||
<div class="close">
|
||||
<i class="fa fa-times"></i>
|
||||
</div>
|
||||
<h4 class="mb-4"><?php echo $LANG['t_createScene'];?></h4>
|
||||
<h4 class="mb-4"><?php $LANGMNG->echo('t_createScene');?></h4>
|
||||
<form method="post">
|
||||
<input type="hidden" name="sceneName" value="<?php echo $SCENENAME; ?>">
|
||||
<input type="hidden" name="sceneIcon" value="<?php echo $SCENEICON; ?>">
|
||||
@@ -20,7 +20,7 @@
|
||||
<?php
|
||||
$i++;
|
||||
} ?>
|
||||
<input type="submit" class="button" name="submit" value="<?php echo $LANG['b_create'];?>"/>
|
||||
<input type="submit" class="button" name="submitFinal" value="<?php echo $LANGMNG->echo('b_create');?>"/>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
@@ -44,8 +44,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (isset($_POST['devices'])) {
|
||||
$partial = new Partial('sceneCreateOptions');
|
||||
<?php if (isset($_POST['submit'])) {
|
||||
$partial = new Partial('sceneCreateFinal');
|
||||
$partial->prepare('langMng',$LANGMNG);
|
||||
$partial->prepare('setStateFormDevices',$SETSTATEFORMDEVICES );
|
||||
$partial->prepare('sceneIcon',$SCENEICON );
|
||||
|
Reference in New Issue
Block a user