[VID-6] Initial rebase push
[vid.git] / vid-app-common / src / main / webapp / app / vid / scripts / view-models / aaiGetSubs.htm
1 <!--\r
2   ============LICENSE_START=======================================================\r
3   VID\r
4   ================================================================================\r
5   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
6   ================================================================================\r
7   Licensed under the Apache License, Version 2.0 (the "License");\r
8   you may not use this file except in compliance with the License.\r
9   You may obtain a copy of the License at\r
10   \r
11        http://www.apache.org/licenses/LICENSE-2.0\r
12   \r
13   Unless required by applicable law or agreed to in writing, software\r
14   distributed under the License is distributed on an "AS IS" BASIS,\r
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16   See the License for the specific language governing permissions and\r
17   limitations under the License.\r
18   ============LICENSE_END=========================================================\r
19   -->\r
20 \r
21 <link rel="stylesheet" type="text/css" href="app/vid/styles/aaiGetSubs.css" />\r
22 <link rel="stylesheet" type="text/css" href="app/vid/styles/aaiSubDetails.css" />\r
23 <script src="app/vid/scripts/controller/aaiSubscriberController.js"></script>\r
24 <div ng-controller="aaiSubscriberController" ng-cloak>\r
25 \r
26         <div>\r
27                 <div class="statusLine" ng-class="{true:'aaiVisible', false:'aaiHidden'}[isSpinnerVisible]">\r
28                         <img src="app/vid/images/spinner.gif"></img>\r
29                         <label>Status:</label><span class="status">{{status}}</span>\r
30                 </div>\r
31 \r
32                 <div ng-if="errorMsg != null"><font color='red'>{{errorMsg}}<pre>{{errorDetails | json}}</pre></font></div>\r
33                 \r
34                  <h2 class="heading2"><center>Search Existing Service Instances</center></h2>\r
35                 <br>\r
36         Please search by the Subscriber name or enter Service Instance Id or Service Instance Name below:&nbsp;<br><br>\r
37          \r
38                 <table> \r
39                         <tr>\r
40                                 <td style="width:30%">\r
41                                 <div class="fn-ebz-container">  \r
42                                         <label  class="fn-ebz-text-label">Subscriber Name:</label>\r
43                                 </div>\r
44                                 </td>\r
45                                 <td style="width:30%" nowrap>\r
46                                         <div class="fn-ebz-container" ng-init="autoGetSubs();">\r
47                                                 <select  ng-model="selectedCustomer" ng-options="item.globalCustomerId as item.subscriberName for item in customerList | orderBy:'subscriberName'">\r
48                                                 <option value="">Select a subscriber</option></select>\r
49                                           &nbsp;&nbsp;<a class="btn btn-primary" ng-click="refreshSubs();" ><span class="glyphicon glyphicon-refresh"></span></a>\r
50                                         </div>\r
51                                 </td>\r
52                         \r
53                         </tr>\r
54                         <tr>\r
55                                 <td style="width:30%">\r
56                                         <div class="fn-ebz-container">\r
57                                                 <select  style="width: 250px;" ng-model="selectedserviceinstancetype" ng-options="stype.sinstance as stype.sinstance for stype in serviceInstanceses" >\r
58                                                 <option value="">Select a Service Instance</option>                                             \r
59                                                 </select>\r
60                                         </div>\r
61                                 </td>\r
62                         <td style="width:60%">\r
63                                 <div class="fn-ebz-container">\r
64                                                 <input type="text" style="width: 350px;" name="selectedServiceInstance" ng-model="selectedServiceInstance" restrict-input ="{type : selectedserviceinstancetype}" />\r
65                                         </div> \r
66                                 </td>\r
67                                 \r
68                 </tr>\r
69                 <tr>\r
70                                 <td>\r
71                                 <td style="width:30%">\r
72                                         <div>   \r
73                                                 <button type="submit" class="btn btn-primary" size="small" ng-click="getSubscriberDet(selectedCustomer,selectedserviceinstancetype,selectedServiceInstance);">Submit</button></a>\r
74                                         </div>\r
75                                 </td>\r
76                                 </td>\r
77                         </tr>\r
78                 </table>        \r
79                 \r
80         \r
81         </div>\r
82 \r
83 </div>\r