better front ui

This commit is contained in:
Shannon Sterz 2016-02-17 23:18:23 +01:00
parent 79d8b4e1d0
commit ab8991fc89

View file

@ -26,9 +26,23 @@
<script type="text/ng-template" id="/home.html">
<div class="header">
<h1>Autome</h1>
<form ng-submit="toggleLight()" style="margin-top:30px;">
<button type="submit" class="button-primary">Light</button>
<table class="u-full-width">
<thead>
<th>Name</th>
<th>Function</th>
</thead>
<tbody>
<tr ng-repeat="RC in RCs | orderBy:'switch_id'">
<td> {{RC.name}} </td>
<td>
<form ng-submit="irTest()" style="margin-top:30px;">
<button type="submit" class="button-primary">Toggle RC</button>
</form>
</td>
</tr>
</tbody>
</table>
<form ng-submit="irTest()" style="margin-top:30px;">
<button type="submit" class="button-primary">IR</button>
</form>