Project

General

Profile

1
<wf-process-modal proc-id="currentId" visible="showModal"></wf-process-modal>
2

    
3
<form class="form-inline pull-right" style="margin-bottom: 20px;">
4
	<input type="text" class="form-control input-sm" ng-model="searchHistory" placeholder="Filter..."/>
5
	<button type="button" class="btn btn-default btn-sm" ng-click="doOnRefesh()">
6
		<span class="glyphicon glyphicon-refresh"></span>
7
	</button>
8
</form>
9

    
10
<table class="table table-striped" style="font-size:12px;">
11
	<thead>
12
		<tr>
13
			<th style="width: 15%;">Process Id</th>
14
			<th style="width: 40%;">Workflow name</th>
15
			<th style="width: 15%;">Workflow family</th>
16
			<th class="text-center" style="width: 10%;">Status</th>
17
			<th class="text-right">Date</th>
18
		</tr>
19
	</thead>
20
	<tbody>
21
		<tr ng-repeat="h in filteredHistory = (ngModel | filter: searchHistory)">
22
			<td><a href="javascript:void(0)" ng-click="showProcess(h.procId)">{{h.procId}}</a></td>
23
			<td>{{h.name}}</td>
24
			<td>{{h.family}}</td>
25
			<td class="text-center"><span class="label label-default" ng-class="{
26
				'label-success': h.status == 'SUCCESS',
27
				'label-danger': h.status == 'FAILURE',
28
				'label-info': h.status == 'EXECUTING'}">{{h.status}}</span></td>
29
			<td class="text-right">{{ (h.date > 0 && h.date < 9999999999999) ? (h.date | date:"yyyy-MM-dd HH:mm:ss") : "not yet started" }}</td>
30
		</tr>
31
	<tr ng-show="filteredHistory.length == 0">
32
		<td colspan="5">No entry</td>
33
	</tr>
34
	</tbody>
35
</table>
(12-12/15)