Skip to content
Snippets Groups Projects
Commit 56e1ab67 authored by jkerdreu's avatar jkerdreu
Browse files

Added a default devices list



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2880 b32b6428-25c9-4566-ad07-03861ab6144f
parent 7762ec77
Branches
No related tags found
No related merge requests found
......@@ -10,23 +10,10 @@
Please edit grid.mako
</div>
<div class="grid-box">
<b>Eclairage</b>
${widgets.list_devices_addr(['6265eb30-8c59-11e9-98b1-b827ebe99201','6265eb30-8c59-11e9-98b1-b827ebe99202',])}
</div>
<div class="grid-box two">
<div data-is="generic-attrs" xaal_addr=6265eb30-8c59-11e9-98b1-b827ebe99201></div>
</div>
<div class="grid-box" style="text-align:center;">
<br/><br/><br/>
<span data-is="clock"/>
${widgets.list_all_devices()}
</div>
</div> <!-- end of grid -->
</div><!-- end of grib background -->
......
......@@ -131,6 +131,20 @@
</%def>
<%def name="list_all_devices()">
<table width=98%>
% for dev in devices:
% if tag(dev)!= 'generic':
<tr>
<td><a href="./generic/${dev.address}">➠</a>${dev.display_name}</td>
<td>${self.template.get_def(tag(dev)).render(dev.address) }</td>
</tr>
% endif
% endfor
</table>
</%def>
<%def name="list_devices_addr(values)">
<table width=98%>
% for addr in values:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment