is-monitor/is-monitor-frontend/src/app/resource-list/resource-list.component.html

23 lines
990 B
HTML
Raw Normal View History

<div style="margin-left:5px;">
2019-10-17 15:45:13 +02:00
<table class="table table-striped table-bordered" *ngFor="let key of resources.keys()">
<thead>
<tr>
2019-10-17 15:45:13 +02:00
<th [attr.colspan]="resources.get(key).mandatoryProperties.size+2">Resources identified by {{resources.get(key).type}}</th>
</tr>
<tr>
2019-10-16 15:25:51 +02:00
<th>Resource Type</th>
2019-10-17 15:45:13 +02:00
<th>UUID</th>
<th scope="col" *ngFor="let property of resources.get(key).mandatoryProperties">
2019-10-16 15:25:51 +02:00
{{ property.charAt(0).toLocaleUpperCase() + property.substr(1) }}
</th>
</tr>
</thead>
<tbody>
2019-10-17 15:45:13 +02:00
<tr *ngFor="let r of resources.get(key).resources">
<th>{{ r['@class'] }}</th>
<td>{{ r.header.uuid }}</td>
<td *ngFor="let property of resources.get(key).mandatoryProperties">{{ r.consistsOf[0].target[property] }}</td>
2019-10-16 15:25:51 +02:00
</tr>
</tbody>
</table>
</div>