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> <h1>Autome</h1>
<table class="u-full-width"> <table class="u-full-width">
<thead> <thead>
<th>Name</th> <th>RC Switches</th>
<th>Function</th> <th>Function</th>
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="RC in RCs | orderBy:'switch_id'"> <tr ng-repeat="RC in RCs | orderBy:'switch_id'">
<td> {{RC.name}} </td> <td> {{RC.name}} </td>
<td> <td>
<form ng-submit="irTest()" style="margin-top:30px;"> <button ng-click="irTest(RC)" ng-class="{'true':'button-primary','false':'button'}[RC.state]" type="submit" >Toggle RC</button>
<button type="submit" class="button-primary">Toggle RC</button>
</form>
</td> </td>
</tr> </tr>
</tbody> </tbody>