45 lines
No EOL
1.5 KiB
Handlebars
45 lines
No EOL
1.5 KiB
Handlebars
<div class="title">Huegasm</div>
|
|
{{#unless bridgeUsername}}
|
|
{{#if bridgeIp}}
|
|
<img src="assets/images/pressButtonBridge.png" id="pressButtonBridgeImg">
|
|
{{paper-progress-linear warn=true value=bridgeUserNamePingIntervalProgress}}
|
|
{{#if isAuthenticating}}
|
|
<p>Your bridge IP is <b>{{bridgeIp}}</b> <br>
|
|
Press the button on your bridge to authenticate this application.</p>
|
|
{{else}}
|
|
<p>You failed to press the button. <a class="noTextDecoration" href="#" {{action 'retry'}}>RETRY</a></p>
|
|
{{/if}}
|
|
{{else}}
|
|
{{#unless bridgeFindStatus}}
|
|
{{paper-progress-circular}}
|
|
<p>Trying to find your bridge's IP.</p>
|
|
{{/unless}}
|
|
|
|
{{#if bridgeFindMultiple}}
|
|
<p>Found multiple hue bridges. <br>
|
|
Please select the one you want to use for this application.</p>
|
|
|
|
<div id="bridgeButtonGroup">
|
|
{{#each multipleBridgeIps as |bridge|}}
|
|
{{#paper-radio value=bridge selected=bridgeIp}}{{bridge}}{{/paper-radio}}
|
|
{{/each}}
|
|
</div>
|
|
{{else}}
|
|
{{#if bridgeFindFail}}
|
|
<p>A hue bridge was not found on your network. <br>
|
|
Enter one manually?</p>
|
|
|
|
<span id="bridgeInput">
|
|
{{paper-input label="Hue bridge IP address" value=manualBridgeIp}}
|
|
{{#paper-button action="findBridgeByIp" primary=true}}Find{{/paper-button}}
|
|
</span>
|
|
|
|
{{#if manualBridgeIpNotFound}}
|
|
<p class="bg-danger">
|
|
Could not find a bridge with that IP address.
|
|
</p>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/unless}} |