summaryrefslogtreecommitdiffstats
path: root/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/datarouter/dr_feed_pub_sub_list_popup_template.html
blob: 80fe26ece1a6ce951162dbdf305456b50ab08e63 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!--
  ================================================================================
  DCAE DMaaP Bus Controller Web Application
  ================================================================================
  Copyright (C) 2017 AT&T Intellectual Property
  ================================================================================
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  ================================================================================
  -->
<script type="text/ng-template" id="feed_pub_sub_list_popup.html">
	<div class="modal__informative font-showcase" style="width:900px;">
	
		<div class="modal__header">
  	  	<h2 class="font-showcase-font-name" style="width: 900px;">{{dbcapp.label}}</h2>
		</div>
		<div class="divider-container">
			<hr> 
		</div>      
    	<div class="modal__content">           	 	
			<div class="fn-ebz-container">

		<h4>Publishers</h4>
		
		<table att-table 
			id="pubs-table"
			table-data="dbcapp.showFeed.pubs" 
			search-string="dbcapp.searchString"
			view-per-page="dbcapp.viewPerPageIgnored"
			current-page="dbcapp.currentPageIgnored" 
			total-page="dbcapp.totalPageIgnored">

			<thead att-table-row type="header">
				<tr>
					<th att-table-header sortable="false" key="pubId">Pub ID</th>
					<th att-table-header sortable="false" key="dcaeLocationName">DCAE Location Name</th>
					<th att-table-header sortable="false" key="status">Status</th>
					<th att-table-header sortable="false" key="username">User Name</th>
				</tr>
			</thead>
			<tbody att-table-row type="body" row-repeat="rowData in dbcapp.showFeed.pubs">
				<tr>
					<td att-table-body 
						ng-bind="rowData.pubId"/>
					<td att-table-body 
						ng-bind="rowData.dcaeLocationName"/>
					<td att-table-body 
						ng-bind="rowData.status"/>
					<td att-table-body 
						ng-bind="rowData.username"
						ng-click="dbcapp.editPubModalPopup(rowData)"/>
				</tr>
			</tbody>
		</table>
		
		<h4>Subscribers</h4>
		
		<table att-table 
			id="subs-table"
			table-data="dbcapp.showFeed.subs" 
			search-string="dbcapp.searchString"
			view-per-page="dbcapp.viewPerPageIgnored"
			current-page="dbcapp.currentPageIgnored" 
			total-page="dbcapp.totalPageIgnored">

			<thead att-table-row type="header">
				<tr>
					<th att-table-header sortable="false">Sub ID</th>
					<th att-table-header sortable="false">DCAE Location Name</th>
					<th att-table-header sortable="false">Delivery URL</th>
					<th att-table-header sortable="false">Log URL</th>
					<th att-table-header sortable="false">Owner</th>
					<th att-table-header sortable="false">Status</th>
					<th att-table-header sortable="false">Susp</th>
					<th att-table-header sortable="false">User Name</th>
				</tr>
			</thead>
			<tbody att-table-row type="body" row-repeat="rowData in dbcapp.showFeed.subs">
				<tr>
					<td att-table-body 
						ng-bind="rowData.subId"/>
					<td att-table-body 
						ng-bind="rowData.dcaeLocationName"/>
					<td att-table-body 
						ng-bind="rowData.deliveryURL"/>
					<td att-table-body 
						ng-bind="rowData.logURL"/>
					<td att-table-body 
						ng-bind="rowData.owner"/>
					<td att-table-body 
						ng-bind="rowData.status"/>
					<td att-table-body> 
						{{rowData.suspended | dbcYesNoFilter}}
					</td>
					<td att-table-body 
						ng-bind="rowData.username"/>
				</tr>
			</tbody>
		</table>
		
		</div>
		
		<div class="modal__footer">
			<button class="button button--primary button--small"
					href="javascript:void(0)" 
					ng-click="dbcapp.close()">
				Close
			</button>
		</div>
	
	</div>
	
</script>