summaryrefslogtreecommitdiffstats
path: root/admportal/views/partials/threshold_alarm.ejs
blob: f1df2ea97830672999c03710d505a7df0aaea601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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>