diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-22 16:13:29 -0400 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-22 16:13:29 -0400 |
| commit | 75e42b0d8ad6ba5f48c675a847d8baaa88c6ba90 (patch) | |
| tree | e2995005559793ad7ec8bc87b8a41d5ee953dd85 /www | |
| parent | 19a7883f233a9ff43e6585732ae8f7e7a2ae06f2 (diff) | |
make sure all fields are hidden if ES is off
Diffstat (limited to 'www')
| -rw-r--r-- | www/templates/eventserversettings.html | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/www/templates/eventserversettings.html b/www/templates/eventserversettings.html index 97b3e6f6..a3ed37aa 100644 --- a/www/templates/eventserversettings.html +++ b/www/templates/eventserversettings.html @@ -5,30 +5,27 @@ <button data-badge="{{$root.alarmCount}}" class="animated infinite tada button button-icon button-clear ion-ios-bell notification-badge" ng-click="handleAlarms();" ng-if="$root.isAlarm"></button> </ion-nav-buttons> <ion-content> - + <ion-checkbox ng-model="check.isUseEventServer">use event server</ion-checkbox> - - <label class="item item-input item-floating-label" ng-if="check.isUseEventServer"> - <span class="input-label">Event Server</span> - <input autocapitalize="none" - autocomplete="off" autocorrect="off" - type="text" placeholder="Event notification url" - ng-model="loginData.eventServer"> - - - </label> - - <ul class="list" > - - <li class="item item-checkbox" ng-repeat= "monitor in monitors" > - <label class="checkbox"> - <input type="checkbox" ng-model ="monitor.Monitor.isChecked" ng-checked="monitor.Monitor.isChecked"> - </label> - {{monitor.Monitor.Name}} - </li> - - -</ul> - + + <label class="item item-input item-floating-label" ng-if="check.isUseEventServer"> + <span class="input-label">Event Server</span> + <input autocapitalize="none" autocomplete="off" autocorrect="off" type="text" placeholder="Event notification url" ng-model="loginData.eventServer"> + + + </label> + + <ul class="list" ng-if="check.isUseEventServer"> + + <li class="item item-checkbox" ng-repeat="monitor in monitors"> + <label class="checkbox"> + <input type="checkbox" ng-model="monitor.Monitor.isChecked" ng-checked="monitor.Monitor.isChecked"> + </label> + {{monitor.Monitor.Name}} + </li> + + + </ul> + </ion-content> -</ion-view> +</ion-view>
\ No newline at end of file |
