2019-08-23 11:39:42 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<?php
|
|
|
|
$partial = new Partial('head');
|
2019-10-11 14:38:20 +00:00
|
|
|
$partial->prepare('baseDir', $BASEDIR);
|
2019-08-23 11:39:42 +00:00
|
|
|
$partial->render();
|
|
|
|
?>
|
|
|
|
<title><?php echo $TITLE ?></title>
|
|
|
|
</head>
|
|
|
|
<body class="no-transitions">
|
|
|
|
<div class="row no-gutters main">
|
|
|
|
<div class="col-md-3 d-sm-none"></div>
|
|
|
|
<div class="col-md-3 nav-container">
|
2019-09-19 12:48:31 +00:00
|
|
|
<?php
|
|
|
|
$partial = new Partial('menu');
|
|
|
|
$partial->prepare('item','automation');
|
2019-10-11 12:12:05 +00:00
|
|
|
$partial->prepare('langMng',$LANGMNG);
|
2019-09-19 12:48:31 +00:00
|
|
|
$partial->render();
|
|
|
|
?>
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-md-9 main-body">
|
2019-10-11 12:12:05 +00:00
|
|
|
<a class="button is-primary m-1" onClick="$('#modal').removeClass('modal-container-hiden').show();"><?php $LANGMNG->echo('t_createAutomation'); ?></a>
|
2019-08-23 11:39:42 +00:00
|
|
|
<div class="row no-gutters">
|
2019-08-23 12:30:46 +00:00
|
|
|
<?php foreach ($AUTOMATIONS as $automationId => $automationData) {
|
|
|
|
//BUTTON
|
|
|
|
$partial = new Partial('automationButton');
|
2019-10-11 12:12:05 +00:00
|
|
|
$partial->prepare('langMng',$LANGMNG);
|
2019-08-23 12:30:46 +00:00
|
|
|
$partial->prepare('automationId',$automationId);
|
|
|
|
$partial->prepare('automationData',$automationData);
|
|
|
|
$partial->render();
|
|
|
|
|
|
|
|
//EDIT
|
|
|
|
$partial = new Partial('automationEdit');
|
2019-10-11 12:12:05 +00:00
|
|
|
$partial->prepare('langMng',$LANGMNG);
|
2019-08-23 12:30:46 +00:00
|
|
|
$partial->prepare('automationId',$automationId);
|
|
|
|
$partial->prepare('automation',$automationData);
|
|
|
|
$partial->prepare('subDevices',$SUBDEVICES);
|
|
|
|
$partial->render();
|
|
|
|
} ?>
|
|
|
|
</div>
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-08-23 12:30:46 +00:00
|
|
|
<?php
|
|
|
|
if (isset($_POST['modalNext'])) {
|
|
|
|
$partial = new Partial('automationCreateFinal');
|
2019-10-11 12:12:05 +00:00
|
|
|
$partial->prepare('langMng',$LANGMNG);
|
2019-08-23 12:30:46 +00:00
|
|
|
$partial->prepare('subDevices',$SUBDEVICES);
|
|
|
|
$partial->render();
|
|
|
|
} else {
|
|
|
|
$partial = new Partial('automationCreate');
|
2019-10-11 12:12:05 +00:00
|
|
|
$partial->prepare('langMng',$LANGMNG);
|
2019-08-23 12:30:46 +00:00
|
|
|
$partial->prepare('subDevices',$SUBDEVICES);
|
|
|
|
$partial->render();
|
|
|
|
}
|
2019-08-23 11:39:42 +00:00
|
|
|
$partial = new Partial('footer');
|
|
|
|
$partial->render();
|
|
|
|
?>
|
|
|
|
</body>
|
|
|
|
</html>
|