front end improvements

This commit is contained in:
Shannon Sterz 2016-02-18 15:48:57 +01:00
parent da11548b76
commit fddf4464b8

View file

@ -28,16 +28,14 @@
<h1>Autome</h1>
<table class="u-full-width">
<thead>
<th>Name</th>
<th>RC Switches</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>
<button ng-click="irTest(RC)" ng-class="{'true':'button-primary','false':'button'}[RC.state]" type="submit" >Toggle RC</button>
</td>
</tr>
</tbody>