Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-sdk-app / src / main / webapp / app / fusion / scripts / view-models / profile-page / post_search.html
1 <!--
2   ================================================================================
3   eCOMP Portal SDK
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ================================================================================
19   -->
20 <div style="margin-bottom:20px;">
21 <h1 class="heading1">User Search</h1>
22       <br>
23                 Please enter search criteria below:<br/>
24
25             <div class="fn-ebz-container">
26                   Last Name:<br/>
27                   <input class="fn-ebz-text" type="text"   ng-model="postSearchBean.lastName" value="" size="25">
28             </div>
29           
30             <div class="fn-ebz-container">
31                   First Name:<br/>
32                   <input class="fn-ebz-text" type="text" ng-model="postSearchBean.firstName" value="" size="25">
33             </div>
34          
35             <div class="fn-ebz-container">
36                   User ID:<br/>
37                   <input class="fn-ebz-text" type="text" ng-model="postSearchBean.orgUserId" value="" size="25">
38             </div>
39            
40             <div class="fn-ebz-container">
41                   Manager User ID:<br/>
42                   <input class="fn-ebz-text" type="text" ng-model="postSearchBean.orgManagerUserId" value="" size="25">
43             </div>
44            <br>
45             <div class="fn-ebz-container">
46                   Organization:<br/>
47                   <input class="fn-ebz-text" type="text" ng-model="postSearchBean.orgCode" value="" size="25">
48             </div>
49            
50             <div class="fn-ebz-container">
51                   Email:<br/>
52                   <input class="fn-ebz-text" type="text" ng-model="postSearchBean.email" value="" size="25">
53             </div>
54      <br>
55      <div>
56                         <input att-button btn-type="primary" size="small" class="button" type="submit" value="Search" ng-click="search(postSearchBean);" />
57                 
58                     <input att-button btn-type="primary" size="small" class="button" type="submit" value="Reset"  ng-click="reset();"/>
59          </div>
60          <br>
61          
62                 {{noResultsString}}
63      
64      <div ng-if="profileList.length != 0">
65             <table att-table table-data="profileList" view-per-page="viewPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage">
66                   <thead att-table-row type="header" >
67                     <tr>
68                         <th att-table-header  width="5%" align="left">No</th>
69                         <th att-table-header  width="30%" key="lastName" align="left">Name</th>
70                         <th att-table-header  width="5%"  key="orgUserId" align="left">OrgUserId</th>
71                         <th att-table-header  width="10%" key="orgCode" align="left">Organization</th>
72                         <th att-table-header  width="20%" align="left">Phone</th>
73                         <th att-table-header  width="20%" key="email" align="left">Email</th>
74                         <th att-table-header  width="10%" align="left">Import?</th>
75                         </tr>
76                   </thead>
77                 
78             <tbody att-table-row type="body" row-repeat="profile in profileList" style="max-height: 980px;" ><!-- background colors will alternate not properly with multiple tbody-->  
79               <tr >
80                 <td att-table-body width="5%" align="left">
81                 {{$index + 1}}
82                 </td>
83                 <td att-table-body width="30%" align="left">                    
84                       <div ng-if="ngexistingUsers[profile.orgUserId] == null">
85                           {{profile.lastName}},&nbsp;{{profile.firstName}}
86                   </div>
87                       <div ng-if="ngexistingUsers[profile.orgUserId] != null">
88                       <a href="profile.htm?profile_id={{ngexistingUsers[profile.orgUserId]}}" alt="View/Edit Profile">
89                           {{profile.lastName}},&nbsp;{{profile.firstName}}
90                           </a>
91                    </div>
92                
93                 </td>
94                 <td att-table-body width="5%" align="left">
95                 {{profile.orgUserId}}
96                 </td>
97                 <td att-table-body width="10%" align="left">
98                 {{profile.orgCode}}
99                 </td>
100                 <td att-table-body width="20%" align="left">
101                 {{profile.phone}}
102                 </td>
103                 <td att-table-body width="20%" align="left">
104                 {{profile.email}}
105                 </td>
106                 
107                 <td att-table-body width="10%" align="left">
108                             <div ng-if="ngexistingUsers[profile.orgUserId] == null">
109                                 <div ng-click="toggleSelection(profile);">
110                                 <input name="selected" type="checkbox" ng-model="profile.selected" att-checkbox/>
111                                 </div>
112                              </div>
113                              <div ng-if="ngexistingUsers[profile.orgUserId] != null">
114                                 Exists
115                              </div>
116                 </td>
117               </tr>
118               </tbody>
119             </table>
120             <div class="fn-ebz-container">
121                   Rows Per Page:
122                   <input class="fn-ebz-text" type="text" ng-model="viewPerPage" size="5" style="width: 47px;">
123         </div>
124                 <div class="fn-ebz-container">
125                   Current Page:
126                   <input class="fn-ebz-text" type="text" ng-model="currentPage" size="5" style="width: 47px;">
127         </div>
128         <div class="fn-ebz-container">
129                   Total Page(s):
130                   <input class="fn-ebz-text" type="text" ng-model="totalPage" size="5" readonly="true" style="width: 47px;">
131         </div>
132                 
133         <div ng-if="profileList.length != 0">
134           <input att-button btn-type="primary" size="small" class="button" type="submit" value="Import" ng-click="process();"/>
135         </div>
136
137       </div>
138       
139 </div>