add name to automatization

This commit is contained in:
unknown committed 2019-10-08 18:23:57 +02:00
1 parent 9ae039a4b5
commit 68da935592
8 files changed
+38 -18

No files matched your search

+18 -9
View File
@@ -10,23 +10,23 @@
case 'sunSet':
echo'&#xf186';
break;
case 'sunRise':
echo'&#xf185 ';
break;
case 'inHome':
echo'&#xf090';
break;
case 'outHome':
echo'&#xf08b';
break;
case 'outDevice':
echo'&#xf2db';
break;
default:
echo'&#xf017';
break;
@@ -36,10 +36,11 @@
</div>
<div class="col">
<h5 class="text-right break-all">
<?php
if (!in_array($AUTOMATIONDATA['ifSomething'], ["sunRise", "sunSet"])) {
<?php
/*if (!in_array($AUTOMATIONDATA['ifSomething'], ["sunRise", "sunSet"])) {
echo $AUTOMATIONDATA['ifSomething'];
}
}*/
echo $AUTOMATIONDATA['name'];
?>
</h5>
</div>
@@ -49,6 +50,14 @@
<?php echo implode(', ',$AUTOMATIONDATA['onDays']);?>
</div>
</div>
<div class="row">
<div class="col">
<a class="button is-primary m-1" onclick="$('#modal').removeClass('modal-container-hiden').show();">restart</a>
</div>
<div class="col">
<a class="button is-primary m-1" onclick="$('#modal').removeClass('modal-container-hiden').show();">deaktivovat</a>
</div>
</div>
</div>
</div>
</div>
</div>