1 <div style="width:80%;">
3 <div ng-controller="broadcastListController" >
5 <h1 class="heading1">Broadcast Messages</h1>
7 <div ng-repeat="location in messageLocations" >
8 {{location.label}} Messages
9 <div title="{{location.label}} Messages">
11 <table att-table table-data="location.messages" current-page="1">
12 <thead att-table-row type="header">
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>
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-->
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>
30 {{message.displayStartDate}}
32 <td width="10%">{{message.displayEndDate}}</td>
33 <td width="10%">{{message.sortOrder}}</td>
34 <td width="10%">{{message.siteCd}}</td>
36 <div ng-click="toggleActive(message);">
37 <input type="checkbox" ng-model="message.active" att-toggle-main>
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>
48 <input att-button btn-type="primary" size="small" class="button" type="button" value="Add" ng-click="editMessage(location);"/>