Hello.
When i'm on the main screen, and press a button for a room, i get the following error:
I can't figure what's wrong... My rooms_menu works fine, and lists all my rooms. when i press the room the rooms_menu for that room seems like this:
And in the room_sleeping:
I can't figure out what's the rooms.html is for, but it seems like this:
When i'm on the main screen, and press a button for a room, i get the following error:
Code:
Error accoured in twig-template engine! error: A template that extends another one cannot have a body but a byte order mark (BOM) has been detected; it must be removed. file: room_sleeping.html line: 1 --------------------------------------------------------------------------------
Code:
<li data-icon="false"> <a href="index.php?page=room_sleeping"> <img class="icon"' src='{{ icon0 }}scene_making_love.png'/><h3>Soveværelse</h3> <div class="ui-li-aside"></div> </a> </li>
Code:
{% extends "rooms.html" %} {% block content %} <h1><img class="icon" src='{{ icon0 }}scene_making_love.svg' />Soveværelse</h1> <div class="preblock"> </div> <div class="block"> <div class="set-2" data-role="collapsible-set" data-theme="c" data-content-theme="a" data-mini="true"> <div data-role="collapsible" data-collapsed="false"> <h3>Licht</h3> <div>{{ device.dimmer('licht', 'Tür dimmen', 'gaeste_licht_schalten', 'gaeste_licht_setzen') }}</div> </div> <div data-role="collapsible"> <h3>Einstellungen</h3> </div> </div> </div> {% endblock %}
Code:
{% extends "base.html" %} {% block sidebar %} {% include 'rooms_menu.html' %} {% endblock %} {% block content %} Rooms {% endblock %}
Kommentar