512ce7e813a3451b322fb4e1f57d3f821401554e
[portal/sdk.git] /
1 <div style="width:80%;">
2     
3 <div ng-controller="broadcastListController" >  
4         
5         <h1 class="heading1">Broadcast Messages</h1>
6         <br>
7                 <div ng-repeat="location in messageLocations" >
8                         {{location.label}} Messages
9                         <div title="{{location.label}} Messages">
10                                 
11                                 <table att-table table-data="location.messages" current-page="1">
12                                         <thead att-table-row type="header">
13                                                 <tr>
14                                                         <th att-table-header sortable="false" width="10%">No.</th>
15                                                         <th att-table-header sortable="false" width="30%">Message Text</th>
16                                                         <th att-table-header sortable="false" width="10%">Start Date</th>
17                                                         <th att-table-header sortable="false" width="10%">End Date</th>
18                                                         <th att-table-header sortable="false" width="10%">Sort Order</th>
19                                                         <th att-table-header sortable="false" width="10%">Server</th>
20                                                         <th att-table-header sortable="false" width="10%">Active?</th>
21                                                         <th att-table-header sortable="false" width="10%">Delete?</th>
22                                                 </tr>
23                                         </thead>
24                                         <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-->
25                                           <tr>
26                                            {{message.id}}
27                                             <td width="10%"><a href="javascript:editMessage({{location.value}},'{{location.label}}',{{message.id}});">{{$index+1}}</a></td>
28                                             <td width="30%">{{message.messageText}}</td>
29                                             <td width="10%">
30                                                 {{message.displayStartDate}}
31                                             </td>
32                                             <td width="10%">{{message.displayEndDate}}</td>
33                                             <td width="10%">{{message.sortOrder}}</td>
34                                             <td width="10%">{{message.siteCd}}</td>
35                                             <td width="10%">
36                                                 <div ng-click="toggleActive(message);">
37                                                         <input type="checkbox" ng-model="message.active" att-toggle-main>
38                                                 </div>
39                                             </td>
40                                              <td att-table-body width="10%">
41                                                     <div ng-click="remove(message);" style="font-size:20px;"><a href="javascript:void(0)" class="icon-trash"></a></div>
42                                              </td>
43                                           </tr>
44                                          
45                                         </tbody>
46                                 </table>
47                         </div>
48                         <input att-button btn-type="primary" size="small" class="button" type="button" value="Add" ng-click="editMessage(location);"/>
49                   <br/><br/><br/>
50                 </div>
51         </div>
52 </div>