front end improvements
This commit is contained in:
parent
da11548b76
commit
fddf4464b8
1 changed files with 2 additions and 4 deletions
|
@ -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>
|
||||
|
|
Reference in a new issue