Add volume requirements table to the task group page

This commit is contained in:
Michael Lange 2020-02-12 23:01:25 -08:00
parent 3fbd267263
commit e4dcd9c2a4
1 changed files with 26 additions and 0 deletions

View File

@ -109,4 +109,30 @@
{{/if}}
</div>
</div>
{{#if model.volumes.length}}
<div data-test-volumes class="boxed-section">
<div class="boxed-section-head">
Volume Requirements
</div>
<div class="boxed-section-body is-full-bleed">
{{#list-table source=model.volumes as |t|}}
{{#t.head}}
<th>Name</th>
<th>Type</th>
<th>Source</th>
<th>Permissions</th>
{{/t.head}}
{{#t.body as |row|}}
<tr data-test-volume>
<td data-test-volume-name>{{row.model.name}}</td>
<td data-test-volume-type>{{row.model.type}}</td>
<td data-test-volume-source>{{row.model.source}}</td>
<td data-test-volume-permissions>{{if row.model.readOnly "Read" "Read/Write"}}</td>
</tr>
{{/t.body}}
{{/list-table}}
</div>
</div>
{{/if}}
</section>