better front ui
This commit is contained in:
parent
79d8b4e1d0
commit
ab8991fc89
1 changed files with 17 additions and 3 deletions
|
@ -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>
|
||||
</form>
|
||||
<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>
|
||||
|
|
Reference in a new issue