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