This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Console: URL Alert setup redo to match current design
- Loading branch information
Viliam Rockai
committed
Aug 13, 2015
1 parent
25d5c8f
commit 6637ac6
Showing
15 changed files
with
430 additions
and
401 deletions.
There are no files selected for viewing
25 changes: 12 additions & 13 deletions
25
console/src/main/scripts/plugins/directives/alert/html/fieldset-dampening.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
<fieldset> | ||
<legend>Alert</legend> | ||
<hk-switch ng-show="hkSwitchEnabled" | ||
hk-model="hkSwitch" | ||
id="usage-less-switch" class="pull-right-switch"></hk-switch> | ||
<legend>{{hkTitle || 'Alert'}}</legend> | ||
<div class="form-group"> | ||
<label class="col-sm-3 control-label">Create Alert</label> | ||
<div class="col-sm-9"> | ||
<div class="radio"> | ||
<label for="every-time-heap"> | ||
<input type="radio" name="alert-heap" id="every-time-heap" ng-value="false" ng-model="durationEnabled" | ||
ng-click="durationToggle()" checked=""> | ||
Every time conditions are met. | ||
ng-click="durationToggle()" checked="" ng-disabled="!hkSwitch"> | ||
{{hkTitleMet || 'Every time conditions are met.'}} | ||
</label> | ||
</div> | ||
<div class="radio"> | ||
<label for="greater-time-heap"> | ||
<input type="radio" name="alert-heap" id="greater-time-heap" ng-value="true" ng-model="durationEnabled" | ||
ng-click="durationToggle()"> | ||
Only when conditions are met for greater than: | ||
ng-click="durationToggle()" ng-disabled="!hkSwitch"> | ||
{{hkTitleUnmet || 'Only when conditions are met for greater than:'}} | ||
</label> | ||
</div> | ||
<div class="input-group input-select indented"> | ||
<input type="number" class="form-control" placeholder="Duration" ng-model="hkConvertedDuration" | ||
ng-disabled="!durationEnabled" ng-change="durationChange()"> | ||
<select pf-select ng-model="responseUnit" id="responseUnit" | ||
ng-disabled="!durationEnabled" | ||
ng-options="item.value as item.label for item in timeUnits" | ||
ng-change="computeTimeInUnits()"></select> | ||
</div> | ||
<hk-time-input hk-duration="hkDuration" | ||
hk-disabled="!durationEnabled || !hkSwitch" | ||
hk-change="durationChange()" | ||
id="dw-duration"></hk-time-input> | ||
</div> | ||
</div> | ||
</fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
console/src/main/scripts/plugins/directives/components/html/hk-switch.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
console/src/main/scripts/plugins/directives/components/html/time-input.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="input-group input-select indented"> | ||
<input type="number" class="form-control" placeholder="Duration" ng-model="hkConvertedDuration" | ||
ng-disabled="hkDisabled" ng-change="durationChange()" id="{{id}}"> | ||
<select pf-select ng-model="responseUnit" id="responseUnit" | ||
ng-disabled="hkDisabled" | ||
ng-options="item.value as item.label for item in timeUnits" | ||
ng-change="computeTimeInUnits()"></select> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
107 changes: 0 additions & 107 deletions
107
console/src/main/scripts/plugins/metrics/html/alerts-setup.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
console/src/main/scripts/plugins/metrics/html/modals/alerts-url-availability-setup.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<div class="modal-header"> | ||
<button type="button" class="close" ng-click="mas.cancel()"> | ||
<span class="pficon pficon-close"></span> | ||
</button> | ||
<h4 class="modal-title">Availability Alert Settings</h4> | ||
</div> | ||
|
||
<div class="modal-body alert-settings"> | ||
<div class="hk-tab-content"> | ||
<p>Configure conditions settings for Availability alerts and notifications.</p> | ||
|
||
<form class="form-horizontal"> | ||
<hk-fieldset-dampening hk-duration="mas.adm.avail.responseDuration" | ||
hk-title="Downtime" | ||
hk-switch="mas.adm.avail.conditionEnabled" | ||
hk-title-met="Everytime the URL is down." | ||
hk-title-unmet="Only when the URL is down for more than:"></hk-fieldset-dampening> | ||
|
||
<hk-fieldset-notification hk-alert-email="mas.adm.avail.email"></hk-fieldset-notification> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
<div class="modal-footer alert-settings"> | ||
<button type="button" class="btn btn-primary" ng-click="mas.save()" | ||
ng-disabled="!mas.isSettingChange || mas.saveProgress"> | ||
<div ng-show="mas.saveProgress" class="spinner spinner-xs hk-modal-spinner"></div> | ||
Save | ||
</button> | ||
<button type="button" class="btn btn-default" ng-click="mas.cancel()">Cancel</button> | ||
</div> |
Oops, something went wrong.