summaryrefslogtreecommitdiffstats
path: root/admportal/views/partials/resource_rule.ejs
blob: 05d0bf4e19e4a8bd67dc73b5a71848d5d4f9a6ee (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<div class="modal fade" id="add_resource_rule" tabindex="-1" role="dialog"
        aria-labelledby="add_resource_rule_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 Resource Rule</h4>
          </div>
          <div class="modal-body">
            <form name="addForm" role="form" action="/resalloc/addResourceRule" method="POST">
              <div class="form-group">
                <label for="nf_resource_name">*Name</label>
                <input type="text" class="form-control" maxlength="50" name="nf_resource_name" id="nf_resource_name" placeholder="varchar(50)">
              </div>
              <div class="form-group">
                <label for="nf_end_point_position">*End Point Position</label>
                <input type="text" class="form-control" maxlength="50" name="nf_end_point_position" id="nf_end_point_position" placeholder="varchar(50)">
              </div>
              <div class="form-group">
                <label for="nf_service_expression">*Service Expression</label>
                <input type="text" class="form-control" maxlength="2000" name="nf_service_expression" id="nf_service_expression" placeholder="varchar(2000)">
              </div>
              <div class="form-group">
                <label for="nf_equipment_level">*Equipment Level</label>
                <input type="text" class="form-control" maxlength="50" name="nf_equipment_level" id="nf_equipment_level" placeholder="varchar(50)">
              </div>
              <div class="form-group">
                <label for="nf_equipment_expression">*Equipment Expression</label>
                <input type="text" class="form-control" maxlength="2000" name="nf_equipment_expression" id="nf_equipment_expression" placeholder="varchar(2000)">
              </div>
              <div class="form-group">
                <label for="nf_allocation_expression">*Allocation Expression</label>
                <input type="text" class="form-control" maxlength="2000" name="nf_allocation_expression" id="nf_allocation_expression" placeholder="varchar(2000)">
              </div>
              <div class="form-group">
                <label for="nf_soft_limit_expression">*Soft Limit Expression</label>
                <input type="text" class="form-control" maxlength="2000" name="nf_soft_limit_expression" id="nf_soft_limit_expression" placeholder="varchar(2000)">
              </div>
              <div class="form-group">
                <label for="nf_hard_limit_expression">*Hard Limit Expression</label>
                <input type="text" class="form-control" maxlength="2000" name="nf_hard_limit_expression" id="nf_hard_limit_expression" placeholder="varchar(2000)">
              </div>
              <div class="form-group">
                <label for="nf_service_model">*Service Model</label>
                <input type="text" class="form-control" maxlength="50" name="nf_service_model" id="nf_service_model" placeholder="varchar(50)">
              </div>
              <div class="form-group">
                <input type="hidden" name="nf_action" id="nf_action">
                <button type="button" class="btn btn-primary" onclick="submitResourceRule(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_resource_rule" tabindex="-1" role="dialog" 
		aria-labelledby="update_resource_rule_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 Resource Rule</h4>
          </div>
          <div class="modal-body">
            <form role="form" action="/resalloc/updateResourceRule" method="POST">
              <div class="form-group">
                <label for="uf_resource_rule_id">*Rule ID</label>
                <input readonly type="text" class="form-control" name="uf_resource_rule_id" id="uf_resource_rule_id">
              </div>
              <div class="form-group">
                <label for="uf_resource_name">*Name</label>
                <input type="text" class="form-control" maxlength="50" name="uf_resource_name" id="uf_resource_name" placeholder="varchar(50)">
              </div>
              <div class="form-group">
                <label for="uf_end_point_position">*End Point Position</label>
                <input type="text" class="form-control" maxlength="50" name="uf_end_point_position" id="uf_end_point_position" placeholder="varchar(50)">
              </div>
              <div class="form-group">
                <label for="uf_service_expression">*Service Expression</label>
                <input type="text" class="form-control" maxlength="2000" name="uf_service_expression" id="uf_service_expression" placeholder="varchar(2000)">
              </div>
              <div class="form-group">
                <label for="uf_equipment_level">*Equipment Level</label>
                <input type="text" class="form-control" maxlength="50" name="uf_equipment_level" id="uf_equipment_level" placeholder="varchar(50)">
			  </div>
              <div class="form-group">
                <label for="uf_equipment_expression">*Equipment Expression</label>
                <input type="text" class="form-control" maxlength="2000" name="uf_equipment_expression" id="uf_equipment_expression" placeholder="varchar(2000)">
			  </div>
              <div class="form-group">
                <label for="uf_allocation_expression">*Allocation Expression</label>
                <input type="text" class="form-control" maxlength="2000" name="uf_allocation_expression" id="uf_allocation_expression" placeholder="varchar(2000)">
              </div>
              <div class="form-group">
                <label for="uf_soft_limit_expression">*Soft Limit Expression</label>
                <input type="text" class="form-control" maxlength="2000" name="uf_soft_limit_expression" id="uf_soft_limit_expression" placeholder="varchar(2000)">
              </div>
              <div class="form-group">
                <label for="uf_hard_limit_expression">*Hard Limit Expression</label>
                <input type="text" class="form-control" maxlength="2000" name="uf_hard_limit_expression" id="uf_hard_limit_expression" placeholder="varchar(2000)">
              </div>
              <div class="form-group">
                <label for="uf_service_model">*Service Model</label>
                <input type="text" class="form-control" maxlength="50" name="uf_service_model" id="uf_service_model" placeholder="varchar(50)">
              </div>
              <div class="form-group">
				<input type="hidden" name="uf_action" id="uf_action">
				<input type="hidden" name="uf_key_resource_rule_id" id="uf_key_resource_rule_id">
                <button type="button" class="btn btn-primary" onclick="submitResourceRule(this.form);">Submit</button>
				<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
              </div>
           </form>
          </div>
      </div>
    </div>
  </div>