2019-08-23 11:39:42 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<?php
|
|
|
|
$partial = new Partial('head');
|
|
|
|
$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', 'scene');
|
|
|
|
$partial->prepare('lang',$LANG);
|
|
|
|
$partial->render();
|
|
|
|
?>
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-md-9 main-body">
|
2019-08-24 11:13:04 +00:00
|
|
|
<a class="button is-primary m-1" onClick="$('#modal').removeClass('modal-container-hiden').show();"><?php echo $LANG['t_createScene'];?></a>
|
2019-08-23 11:39:42 +00:00
|
|
|
<div class="row no-gutters">
|
2019-08-24 11:13:04 +00:00
|
|
|
<?php foreach ($SCENES as $sceneId => $sceneData) {
|
|
|
|
//BUTTON
|
|
|
|
$partialScenButton = new Partial('sceneButton');
|
|
|
|
$partialScenButton->prepare('lang', $LANG);
|
|
|
|
$partialScenButton->prepare('sceneId', $sceneId);
|
|
|
|
$partialScenButton->prepare('sceneData', $sceneData);
|
|
|
|
|
|
|
|
$partialScenButton->render();
|
2019-08-23 11:39:42 +00:00
|
|
|
|
|
|
|
// Edit
|
|
|
|
$partialSceneEdit = new Partial('sceneEdit');
|
|
|
|
$partialSceneEdit->prepare('lang',$LANG);
|
|
|
|
$partialSceneEdit->prepare('sceneId',$sceneId);
|
|
|
|
$partialSceneEdit->prepare('scene',$sceneData);
|
|
|
|
|
|
|
|
$partialSceneEdit->render();
|
|
|
|
?>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if (isset($_POST['devices'])) {
|
|
|
|
$partial = new Partial('sceneCreateOptions');
|
|
|
|
$partial->prepare('lang',$LANG);
|
|
|
|
$partial->prepare('setStateFormDevices',$SETSTATEFORMDEVICES );
|
|
|
|
$partial->prepare('sceneIcon',$SCENEICON );
|
|
|
|
$partial->prepare('SceneName',$SCENENAME );
|
2019-08-24 11:13:04 +00:00
|
|
|
|
2019-08-23 11:39:42 +00:00
|
|
|
$partial->render();
|
|
|
|
} else {
|
|
|
|
$partial = new Partial('sceneCreate');
|
|
|
|
$partial->prepare('lang',$LANG);
|
|
|
|
$partial->prepare('subDevices',$SUBDEVICES);
|
2019-08-24 11:13:04 +00:00
|
|
|
|
2019-08-23 11:39:42 +00:00
|
|
|
$partial->render();
|
|
|
|
}
|
|
|
|
$partial = new Partial('footer');
|
|
|
|
$partial->render();
|
|
|
|
?>
|
|
|
|
</body>
|
|
|
|
</html>
|