aboutsummaryrefslogtreecommitdiffstats
path: root/oom-app-overlay/src/main/webapp/app/oom/cloudify/execution_table.html
blob: f29e90dd872f89348f76b37b7a585623157002f5 (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
<div id="page-content">

	<h1 class="heading-page" id="executions-page">Executions</h1>
	
   	<!-- show progress indicator -->
	<div ng-show="ecdapp.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="ecdapp.isDataLoading">
		
		<div id="button-search-row">
			<div style="float:right;">
		           <div class="form-field form-field__small"> 
					<input 
						type="text"
						placeholder="Search Executions"
						ng-model="ecdapp.searchString"/>
				</div>
			</div>
		</div>

		<div ng-show="ecdapp.isRequestFailed">
			<span class="ecd-error-message">{{ecdapp.errMsg}}</span>
		</div>
	
		<div ng-hide="ecdapp.isRequestFailed">
	
	    	<div 
	    		b2b-table 
	    		id="executions-table"
	    		class="b2b-table-div" 
	    		table-data="ecdapp.tableData" 
	    		search-string="ecdapp.searchString" 
	    		current-page="ecdapp.currentPageIgnored"
	    		next-sort="ecdapp.nextSortIgnored">
	
		        <table>
		        
		            <thead b2b-table-row type="header">	
						<tr id="th-header-row">
							<th b2b-table-header key="id">ID</th>
							<th b2b-table-header key="deployment_id">Deployment ID</th>
							<th b2b-table-header key="blueprint_id">Blueprint ID</th>
							<th b2b-table-header key="workflow_id">Workflow ID</th>
							<th b2b-table-header key="description">Description</th>
							<th b2b-table-header key="created_at">Created Date</th>
							<th b2b-table-header key="status">Status</th>
							<th b2b-table-header key="error">Error</th>
				  			<th b2b-table-header sortable="false"><i class="icon-controls-gear ecd-icon-display"></i></th>
						</tr>
					</thead>
					
		            <tbody b2b-table-row type="body" row-repeat="rowData in ecdapp.tableData">
						<tr id="tr-rowData">
							<td b2b-table-body
								ng-bind="rowData.id"/>
							<td b2b-table-body
								ng-bind="rowData.deployment_id"/>
							<td b2b-table-body
								ng-bind="rowData.blueprint_id"/>
							<td b2b-table-body
								ng-bind="rowData.workflow_id"/>
							<td b2b-table-body
								ng-bind="rowData.description"/>
							<td b2b-table-body
								ng-bind="rowData.created_at"/>
							<td b2b-table-body
								ng-bind="rowData.status"/>
							<td b2b-table-body>
						    	<div ng-show="rowData.error" ng-click="ecdapp.viewErrorModalPopup(rowData);">
						    		<a href="" title="View error details" class="icon-people-preview ecd-icon-action"></a>
						    	</div>
					     	</td>
							<td b2b-table-body> 
						    	<div ng-click="ecdapp.cancelExecutionModalPopup(rowData);">
									<a href="" title="Cancel execution" class="icon-controls-stop ecd-icon-action"></a>
						    	</div>
					     	</td>
						</tr>
					</tbody>
				</table>
			</div> 
		
			<div b2b-pagination="" total-pages="ecdapp.totalPages" 
						current-page="ecdapp.currentPageNum" click-handler="pageChangeHandler"
						role="navigation">
			</div>
					
		</div>
		
		<div style="height: 10px;">
			<!-- space between page number and black footer -->
		</div>
		
	</div><!-- loading -->
	
</div><!-- page content -->