summaryrefslogtreecommitdiffstats
path: root/admportal/views/partials/resource_rule.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'admportal/views/partials/resource_rule.ejs')
-rw-r--r--admportal/views/partials/resource_rule.ejs118
1 files changed, 118 insertions, 0 deletions
diff --git a/admportal/views/partials/resource_rule.ejs b/admportal/views/partials/resource_rule.ejs
new file mode 100644
index 00000000..05d0bf4e
--- /dev/null
+++ b/admportal/views/partials/resource_rule.ejs
@@ -0,0 +1,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>