Files
magnum-ui/magnum_ui/static/dashboard/container-infra/baymodels/table/table.html
Shu Muto b31c2bfc90 Rename service to 'container-infra'
Magnum renames its service_type [1]. According to that,
this patch renames service name, Angular module name,
related URLs and related strings.

[1] https://bugs.launchpad.net/magnum/+bug/1584251

Change-Id: If730ff75826b7f6d50b308b78f8e881da6696966
Implements: blueprint rename-service
2016-05-30 10:50:31 +09:00

135 lines
4.4 KiB
HTML

<div>
<hz-magic-search-context ng-controller="BaymodelsTableController as table"
filter-facets="table.baymodelFacets">
<hz-magic-search-bar></hz-magic-search-bar>
<actions class="batch-action" allowed="table.baymodelResource.batchActions" type="batch"></actions>
<table hz-table ng-cloak st-magic-search
st-table="table.baymodels"
st-safe-src="table.baymodelsSrc"
default-sort="name"
default-sort-reverse="false"
class="table table-striped table-rsp table-detail">
<thead>
<!--
Table-column-headers:
The headers for the table columns
-->
<tr>
<th class="multi_select_column">
<input type="checkbox" hz-select-all="table.baymodels">
</th>
<th class="expander"></th>
<th class="rsp-p1" st-sort="name" st-sort-default translate>
Name
</th>
<th class="rsp-p2" st-sort="id" translate>
ID
</th>
<th class="rsp-p1" st-sort="coe" translate>
COE
</th>
<th class="rsp-p2" st-sort="network-driver" translate>
Network Driver
</th>
<th class="actions_column" translate>
Actions
</th>
</tr>
</thead>
<tbody>
<!--
Table-rows:
This is where we declaratively define the table columns.
Include multi_select_column if you want to select all.
Include expander if you want to inline details.
Include actions_column if you want to perform actions.
rsp-p1 rsp-p2 are responsive priority as user resizes window.
-->
<tr ng-repeat-start="bm in table.baymodels track by bm.id">
<td class="multi_select_column">
<input type="checkbox"
ng-model="tCtrl.selections[bm.id].checked"
hz-select="bm">
</td>
<td class="expander">
<i class="fa fa-chevron-right"
hz-expand-detail
duration="200">
</i>
</td>
<td class="rsp-p1"><a ng-href="project/baymodels/{$ bm.id $}">{$ bm.name|noName $}</a></td>
<td class="rsp-p2">{$ bm.id $}</td>
<td class="rsp-p1">{$ bm.coe $}</td>
<td class="rsp-p2">{$ bm.network_driver $}</td>
<td class="actions_column">
<!--
Table-row-action-column:
Actions taken here applies to a single item/row.
-->
<actions allowed="table.baymodelResource.itemActions" type="row" item="bm"></actions>
</td>
</tr>
<tr ng-repeat-end class="detail-row">
<!--
Detail-row:
Contains detailed information on this item.
Can be toggled using the chevron button.
Ensure colspan is greater or equal to number of column-headers.
-->
<td class="detail" colspan="100">
<!--
The responsive columns that disappear typically should reappear here
with the same responsive priority that they disappear.
E.g. table header with rsp-p2 should be here with rsp-alt-p2
-->
<div class="row">
<span class="rsp-alt-p2">
<dl class="col-xs-5">
<dt translate>ID</dt>
<dd>{$ bm.id $}</dd>
</dl>
<dl class="col-xs-3">
<dt translate>Network Driver</dt>
<dd>{$ bm.network_driver $}</dd>
</dl>
</span>
</div>
<div class="row">
<dl class="col-xs-5">
<dt translate>Image ID</dt>
<dd>{$ bm.image_id $}</dd>
</dl>
<dl class="col-xs-3">
<dt translate>Registry Enabled</dt>
<dd>{$ bm.registry_enabled $}</dd>
</dl>
<dl class="col-xs-4">
<dt translate>Labels</dt>
<dd ng-repeat="lbl in b.labels">{$ lbl $}</dd>
</dl>
</div>
</td>
</tr>
<tr hz-no-items items="table.baymodels"></tr>
</tbody>
<!--
Table-footer:
This is where we display number of items and pagination controls.
-->
<tfoot hz-table-footer items="table.baymodels"></tfoot>
</table>
</hz-magic-search-context>
</div>