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"> <script type="text/ng-template" id="/home.html">
<div class="header"> <div class="header">
<h1>Autome</h1> <h1>Autome</h1>
<form ng-submit="toggleLight()" style="margin-top:30px;"> <table class="u-full-width">
<button type="submit" class="button-primary">Light</button> <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> </form>
</td>
</tr>
</tbody>
</table>
<form ng-submit="irTest()" style="margin-top:30px;"> <form ng-submit="irTest()" style="margin-top:30px;">
<button type="submit" class="button-primary">IR</button> <button type="submit" class="button-primary">IR</button>
</form> </form>