Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
GUI elements LED and beeper no longer rendered when not configured.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lindros committed Feb 21, 2014
1 parent 80b346a commit 9fde964
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions sd_card/web/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,20 @@
<small class="pull-right text-muted"><em>{{reader.Wiegand.Id}}</em></small>
</div>

<div class="panel-body">
<!-- PIN DIGITS -->
<div>
<div>
<div class="panel-body">
<div ng-if="reader['GreenLED'] || reader['Beeper']">
<!-- LED & BEEPER -->
<span>
<p class="text-center">
<i class="fa fa-circle fa-2x" ng-class="{'greenLED-on': reader['GreenLED'].IsActive, 'greenLED-off': !reader['GreenLED'].IsActive}"></i>
&nbsp
<i class="fa fa-2x" ng-class="{'fa-volume-up': reader['Beeper'].IsActive, 'fa-volume-off': !reader['Beeper'].IsActive}"></i>
<i ng-if="reader['GreenLED']" class="fa fa-circle fa-2x" ng-class="{'greenLED-on': reader['GreenLED'].IsActive, 'greenLED-off': !reader['GreenLED'].IsActive}"></i>
&nbsp
<i ng-if="reader['Beeper']" class="fa fa-2x" ng-class="{'fa-volume-up': reader['Beeper'].IsActive, 'fa-volume-off': !reader['Beeper'].IsActive}"></i>
</p>
</span>

<span>

</span>
</span>
</div>

<br>
<!-- PIN DIGITS -->
<div class="btn-group btn-group-justified">
<a id="keypad-1" class="btn btn-default" ng-mousedown="keypadPlaySound()" ng-class="isConnected() ? '' : 'disabled'" ng-click="keypadPress('1', door.Id, reader.Wiegand.Id)"><strong>1</strong></a>
<a id="keypad-2" class="btn btn-default" ng-mousedown="keypadPlaySound()" ng-class="isConnected() ? '' : 'disabled'" ng-click="keypadPress('2', door.Id, reader.Wiegand.Id)"><strong>2</strong></a>
Expand Down

0 comments on commit 9fde964

Please sign in to comment.