Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-sdk-app / src / main / webapp / app / fusion / scripts / view-models / profile-page / broadcast_list.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="width:80%;">
21     
22 <div ng-controller="broadcastListController" >  
23         
24         <h1 class="heading1">Broadcast Messages</h1>
25         <br>
26                 <div ng-repeat="location in messageLocations" >
27                         {{location.label}} Messages
28                         <div title="{{location.label}} Messages">
29                                 
30                                 <table att-table table-data="location.messages" current-page="1">
31                                         <thead att-table-row type="header">
32                                                 <tr>
33                                                         <th att-table-header sortable="false" width="10%">No.</th>
34                                                         <th att-table-header sortable="false" width="30%">Message Text</th>
35                                                         <th att-table-header sortable="false" width="10%">Start Date</th>
36                                                         <th att-table-header sortable="false" width="10%">End Date</th>
37                                                         <th att-table-header sortable="false" width="10%">Sort Order</th>
38                                                         <th att-table-header sortable="false" width="10%">Server</th>
39                                                         <th att-table-header sortable="false" width="10%">Active?</th>
40                                                         <th att-table-header sortable="false" width="10%">Delete?</th>
41                                                 </tr>
42                                         </thead>
43                                         <tbody att-table-row type="body" row-repeat="message in location.messages" style="max-height: 980px;" ><!-- background colors will alternate not properly with multiple tbody-->
44                                           <tr>
45                                            {{message.id}}
46                                             <td width="10%"><a href="javascript:editMessage({{location.value}},'{{location.label}}',{{message.id}});">{{$index+1}}</a></td>
47                                             <td width="30%">{{message.messageText}}</td>
48                                             <td width="10%">
49                                                 {{message.displayStartDate}}
50                                             </td>
51                                             <td width="10%">{{message.displayEndDate}}</td>
52                                             <td width="10%">{{message.sortOrder}}</td>
53                                             <td width="10%">{{message.siteCd}}</td>
54                                             <td width="10%">
55                                                 <div ng-click="toggleActive(message);">
56                                                         <input type="checkbox" ng-model="message.active" att-toggle-main ng-true-value="on" ng-false-value="off">
57                                                 </div>
58                                             </td>
59                                              <td att-table-body width="10%">
60                                                     <div ng-click="remove(message);" style="font-size:20px;"><a href="javascript:void(0)" class="ion-trash-b"></a></div>
61                                              </td>
62                                           </tr>
63                                          
64                                         </tbody>
65                                 </table>
66                         </div>
67                         <input att-button btn-type="primary" size="small" class="button" type="button" value="Add" ng-click="editMessage(location);"/>
68                   <br/><br/><br/>
69                 </div>
70         </div>
71 </div>