aboutsummaryrefslogtreecommitdiffstats
path: root/admportal/views/partials/threshold_alarm.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'admportal/views/partials/threshold_alarm.ejs')
-rw-r--r--admportal/views/partials/threshold_alarm.ejs71
1 files changed, 71 insertions, 0 deletions
diff --git a/admportal/views/partials/threshold_alarm.ejs b/admportal/views/partials/threshold_alarm.ejs
new file mode 100644
index 00000000..f1df2ea9
--- /dev/null
+++ b/admportal/views/partials/threshold_alarm.ejs
@@ -0,0 +1,71 @@
+<div class="modal fade" id="add_threshold_alarm" tabindex="-1" role="dialog"
+ aria-labelledby="add_threshold_alarm_label" aria-hidden="true">
+ <div class="modal-dialog">
+ <div class="modal-content">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
+ <h4 class="modal-title">Add Threshold Alarm</h4>
+ </div>
+ <div class="modal-body">
+ <form name="addForm" role="form" action="/resalloc/addThresholdAlarm" method="POST">
+ <div class="form-group">
+ <label for="nf_resource_rule_id">*Resource Rule ID</label>
+ <input type="text" class="form-control" maxlength="20" name="nf_resource_rule_id" id="nf_resource_rule_id" placeholder="bigint(20)">
+ </div>
+ <div class="form-group">
+ <label for="nf_threshold_expression">*Threshold Expression</label>
+ <input type="text" class="form-control" maxlength="2000" name="nf_threshold_expression" id="nf_threshold_expression" placeholder="varchar(2000)">
+ </div>
+ <div class="form-group">
+ <label for="nf_threshold_message">*Threshold Message</label>
+ <input type="text" class="form-control" maxlength="500" name="nf_threshold_message" id="nf_threshold_message" placeholder="varchar(500)">
+ </div>
+ <div class="form-group">
+ <input type="hidden" name="nf_action" id="nf_action">
+ <button type="button" class="btn btn-primary" onclick="submitThresholdAlarm(this.form);">Submit</button>
+ <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+ </div>
+
+
+ <div class="modal fade" id="update_threshold_alarm" tabindex="-1" role="dialog"
+ aria-labelledby="threshold_alarm_label" aria-hidden="true">
+ <div class="modal-dialog">
+ <div class="modal-content">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
+ <h4 class="modal-title">Update Threshold Alarm</h4>
+ </div>
+ <div class="modal-body">
+ <form name="updateForm" role="form" action="/resalloc/updateThresholdAlarm" method="POST">
+ <div class="form-group">
+ <label for="uf_resource_threshold_id">*Resource Threshold ID</label>
+ <input readonly type="text" class="form-control" name="uf_resource_threshold_id" id="uf_resource_threshold_id">
+ </div>
+ <div class="form-group">
+ <label for="uf_resource_rule_id">*Resource Rule ID</label>
+ <input type="text" class="form-control" maxlength="20" name="uf_resource_rule_id" id="uf_resource_rule_id" placeholder="bigint(20)">
+ </div>
+ <div class="form-group">
+ <label for="uf_threshold_expression">*Threshold Expression</label>
+ <input type="text" class="form-control" maxlength="2000" name="uf_threshold_expression" id="uf_threshold_expression" placeholder="varchar(2000)">
+ </div>
+ <div class="form-group">
+ <label for="uf_threshold_message">*Threshold Message</label>
+ <input type="text" class="form-control" maxlength="2000" name="uf_threshold_message" id="uf_threshold_message" placeholder="varchar(2000)">
+ </div>
+ <div class="form-group">
+ <input type="hidden" name="uf_action" id="uf_action">
+ <input type="hidden" name="uf_key_resource_threshold_id" id="uf_key_resource_threshold_id">
+ <button type="button" class="btn btn-primary" onclick="submitThresholdAlarm(this.form);">Submit</button>
+ <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+ </div>
' href='#n289'>289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392