blob: d3b01be7cfcf0a58c8d9b6895fd05972697770ac [file] [log] [blame]
Seshu-Kumar-Mbc4ce332016-09-14 18:15:51 +08001
2<!DOCTYPE html>
3<html>
4<head>
5 <head lang="en">
6 <meta charset="UTF-8">
7 <title></title>
8 <link href="css/bootstrap.min.css" rel="stylesheet" />
9 <link href="css/VMMain.css" rel="stylesheet" />
10 <link href="css/bootstrap-table.min.css" rel="stylesheet" />
11 <script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>
12 <script type="text/javascript" src="js/bootstrap.min.js"></script>
13 <script type="text/javascript" src="js/brs.js"></script>
14 <script type="text/javascript" src="js/bootstrap-table.min.js"></script>
15
16 <style type="text/css">
17 </style>
18 <script type="text/javascript">
19 $(document).ready(function() {
20
21 var jsondata = [];
22 jsondata = loadSiteData();
23 $('#site').bootstrapTable({
24 //Assigning data to table
25 data: jsondata
26 });
27
28
29 });
30
31 function operateFormatter(value, row, index) {
32 return [
33 '<img class="siteDeleteImg" src="images/delete.png" href="javascript:void(0)" style="cursor: pointer" name="title" title="Delete" />'
34 ].join('');
35
36 }
37 window.operateEvents = {
38 'click .siteDeleteImg': function (e, value, row, index) {
39 // TO DO ajex call for delete
40 deleteSite(row.id);
41 console.log(value, row, index);
42 }
43 };
44 </script>
45</head>
46<body id="open_base_site_cotentBody" class="cotentBody ng-scope">
47 <div class="container-fluid ms-controller">
48
49 <div class="uploadBtn">
50 <div id="open_base_tpL_userHeader" class="userHeader">
51 <div id="open_base_tpL_buttonGroup" class="openoButton_buttonGroupClass">
52 <div class="openo openo-widget-button openoButton_buttonClass_parent ng-isolate-scope openoButton_buttonClass defaultbutton openoButton_button_default" tabindex="0" id="false" text="res.brApp_ui_res_btn_create" icon-url="./images/add.png" cls="defaultbutton" click="clickAdd" style="display: inline-block; padding-left: 0px; padding-right: 0px;"><div class="openoButton_buttonInnerClass openo-corner-all openoButton_Image" id="false_button"><span class="openo-widget-button-image openoButton_buttonLeftImg" style="background-image: url(images/add.png);"></span><span class="openoButton_buttonCenterText openoButton_buttonCenterTextFont">Create</span><span class="openo-widget-button-image openoButton_buttonImgDefault"></span></div></div>
53
54
55 <div class="openo openo-widget-button openoButton_buttonClass_parent ng-isolate-scope openoButton_buttonClass undefined openoButton_button_default" tabindex="0" id="meEdit" text="res.brApp_ui_res_btn_edit" display="false" style="display: none;"><div class="openoButton_buttonInnerClass openo-corner-all" id="meEdit_button"><span class="openo-widget-button-image openoButton_buttonImgDefault"></span><span class="openoButton_buttonCenterText openoButton_buttonCenterTextFont">Edit</span><span class="openo-widget-button-image openoButton_buttonImgDefault"></span></div></div>
56
57 </div>
58 </div>
59 </div>
60
61 <div class="row-fluid" data-name="table_zone">
62 <div id='ict_virtualApplication_table_div'>
63 <div>
64 <div class="top">
65 <table id="site"
66 data-pagination="true" data-page-size="5" data-pagination-first-text="First" data-pagination-pre-text="Previous" data-pagination-next-text="Next" data-pagination-last-text="Last">
67 <thead>
68 <tr class="active" >
69 <th data-field="name" data-sortable="true">Name</th>
70 <th data-field="type" data-sortable="true">Type</th>
71 <th data-field="tenantID" data-sortable="true">Tenant Name</th>
72 <th data-field="tenantSiteIDs" data-sortable="true">Tenant Site</th>
73 <th data-field="location" data-sortable="true">Location</th>
74
75 <th align="center" data-formatter = "operateFormatter" data-events="operateEvents">Action</th>
76 </tr>
77 </thead>
78 </table>
79 </div>
80 </div>
81 </div>
82 </div>
83 <!-- <div id="tpListopenotable_pagination_wrapper" class="openo-table-pagination-wrapper" style="display: block;"><div class="pagination-container openo-pagination-theme openo-pagination"><div class="openoPagination_openoPaginationLengthOptions" id="tpListopenotable_wrapper_div"><input readonly="true" class="openo-pagination-select openopaginationselect" value="" id="tpListopenotable_wrapper_input" actualval="20" style="width: 32px;"><span class="openo-pagination-selectspan openopaginationselectspan" id="tpListopenotable_wrapper_trigger"></span></div><label style="display: block;float:left;">Total records: 23</label><li class="active"><span class="current prev openo-disabled" id="tpListopenotable_wrapper_prev">&nbsp;</span></li><ul><li class="active"><span class="current" id="tpListopenotable_wrapper_page_link_1">1</span></li><li><a class="page-link" id="tpListopenotable_wrapper_page_link_2">2</a></li><li><a class="page-link" id="tpListopenotable_wrapper_page_link_3">3</a></li><li><a class="page-link next" id="tpListopenotable_wrapper_next">&nbsp;</a></li></ul></div></div> -->
84
85 <div id="vmAppDialog" class="modal fade" tabindex="-1" role="dialog"
86 aria-labelledby="myModalLabel" aria-hidden="false">
87 <div class="modal-dialog">
88 <div class="modal-content">
89 <div class="content">
90 <div class="modal-header">
91 <button type="button" class="close" data-dismiss="modal"
92 aria-hidden="true">×
93 </button>
94 <h4 class="modal-title" id="myModalLabel">
95 <span>Create</span>
96 </h4>
97 </div>
98 <form class="form-horizontal" role="form" id="vmAppForm">
99 <div id="wizard">
100 <div class="modal-body">
101 <ul class="nav nav-pills nav-justified vmapp-margin">
102 </ul>
103 <div class="tab-content">
104 <div class="tab-pane active" id="basicTab">
105 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
106 <label class="col-sm-3 control-label">
107 <span>Name</span>
108 <span class="required">*</span>
109 </label>
110 <div class="col-sm-7">
111 <input type="text" id="name" name="name" class="form-control" placeholder="Name"/>
112 </div>
113 </div>
114 <div class="form-group">
115 <label class="col-sm-3 control-label">
116 <span>Type</span>&nbsp;&nbsp;&nbsp;
117 </label>
118
119 <div class="col-sm-7">
120 <select class="form-control" style ="padding-top: 0px;padding-bottom: 0px;" id="type"
121 name="type">
122 <option value="network_site">Network</option>
123 <option value="tenant_site">Tenant</option>
124 </select>
125 </div>
126 </div>
127 <!-- TODO: these field are ignored as of now
128 <div class="form-group">
129 <label class="col-sm-3 control-label">
130 <span>Tenant Name</span>&nbsp;&nbsp;&nbsp;
131 </label>
132 <div class="col-sm-7">
133 <input type="text" id="tenantName" name="tenantName" class="form-control" placeholder="Banglore"/>
134 </div>
135 </div>
136 <div class="form-group">
137 <label class="col-sm-3 control-label">
138 <span>Tenant Site</span>&nbsp;&nbsp;&nbsp;
139 </label>
140 <div class="col-sm-7">
141 <input type="text" id="tenantSite" name="tenantSite" class="form-control" placeholder="Banglore"/>
142 </div>
143 </div>
144 -->
145 <div class="form-group">
146 <label class="col-sm-3 control-label">
147 <span>Location</span>&nbsp;&nbsp;&nbsp;
148 </label>
149 <div class="col-sm-7">
150 <input type="text" id="location" name="location" class="form-control" placeholder="Banglore"/>
151 </div>
152 </div>
153 </div>
154
155
156 </div>
157 </div>
158 <div class="modal-footer">
159 <button type="button" class="btn SDBtn" data-dismiss="modal" aria-hidden="true" id="createSite">
160 <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
161 </button>
162 <button type="button" class="btn button-previous SDBtn">
163 <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
164 </button>
165
166 </div>
167 </div>
168 </form>
169 </div>
170 </div>
171 </div>
172 </div>
173 </div>
174 <div id="filterTpLogicalType_select_popupcontainer" class="openo openo-select-popup-container openo-hide" style="width: 155px; max-height: 130px; left: 628px; top: 104px; z-index: 1761;"><div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_0"><label class="openo-ellipsis openo-select-blank-item" style="width: 100%; display: block; height: 20px;"></label></div><div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_1"><label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">ETH</label></div><div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_2"><label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;" title="POS">POS</label></div><div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_3"><label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Trunk</label></div><div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_4"><label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Loopback</label></div></div>
175
176
177</body>
178</html>