aboutsummaryrefslogtreecommitdiffstats
path: root/dcae_dmaapbc_webapp/dbca-overlay/src/main/webapp/app/dbcapp/dmaapaccess/dmaap_access_list.html
blob: 36a52aa03ff324c31682b914fefa3490c1b0a01d (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
<!-- DMaaP Access List. Controller is specified by route provider -->
<div id="page-content">

	<h1 class="heading-page" id="dmaapAccess">DMaaP Access Profiles</h1>

   	<!-- show progress indicator -->
	<div ng-show="dbcapp.isDataLoading">
		<div class="span" style="margin-bottom:20px;">
    		<i class="icon-primary-spinner small" role="img" aria-label="Please wait while the content loads"></i>
    		Please wait while the content loads.
	    </div>
	</div>

	<div ng-hide="dbcapp.isDataLoading">

		<div id="button-search-row">		
			<!-- no button -->
			<div style="float:right;">
		           <div class="form-field form-field__small"> 
					<input 
						type="text"
						placeholder="Search profiles"
						ng-model="dbcapp.searchString"/>
				    <!-- <i class="icon-primary-questionmark"></i> -->
				</div>
			</div>
		</div>

		<div ng-show="dbcapp.isRequestFailed">
			<span class="errorMessageText">{{dbcapp.errMsg}}</span>
		</div>

		<div style="text-align: justify; text-align-last: auto;">Click on
			a radio button to select that profile for use in this web application.
		</div>
		
		<div ng-show="dbcapp.isRequestFailed">
			<span class="errorMessageText">{{dbcapp.errMsg}}</span>
		</div>
		
    	<div 
    		b2b-table 
    		id="dmaap-access-table"
    		class="b2b-table-div" 
    		table-data="dbcapp.tableData" 
    		search-string="dbcapp.searchString" 
    		current-page="dbcapp.currentPageIgnored"
    		next-sort="dbcapp.nextSortIgnored">

	        <table>
	        
	            <thead b2b-table-row type="header">	
					<tr id="th-header-row">
						<th b2b-table-header sortable="false">Selected</th>
						<th b2b-table-header key="name">Name</th>
						<th b2b-table-header key="dmaapUrl">URL</th>
						<th b2b-table-header key="mechId">Mech ID</th>
					</tr>
				</thead>

	            <tbody b2b-table-row type="body" row-repeat="rowData in dbcapp.tableData">
					<tr>
						<td b2b-table-body>
            				<label class="radio">
            					<input
            						type="radio" 
									name="dmaapSelGroup" 
									title="rowData.id"
									ng-value="rowData.id" 
									ng-model="dbcapp.selectDmaapModel.id"
									ng-change="dbcapp.selectDmaapAccess(rowData);">
	                				<i class="skin"></i>
	                				<span></span>
                			</label>
						</td>
						<td b2b-table-body 
							ng-bind="rowData.name"
							ng-click="dbcapp.editDmaapAccessModalPopup(rowData)"></td>
						<td b2b-table-body 
							ng-bind="rowData.dmaapUrl"
							ng-click="dbcapp.editDmaapAccessModalPopup(rowData)"></td>
						<td b2b-table-body 
							ng-bind="rowData.mechId"
							ng-click="dbcapp.editDmaapAccessModalPopup(rowData)"></td>
					</tr>
				</tbody>
			</table>
		</div>

	</div><!-- loading -->
	
</div><!-- page content -->