diff options
author | 2016-02-07 02:59:07 -0800 | |
---|---|---|
committer | 2016-02-07 18:48:11 +0000 | |
commit | f5e3e98d5c14252db91b8642028728553b43baca (patch) | |
tree | e649a4dc6fc326bd2f39475d6ca359d96b322952 /vbd/gui/module/src/main/resources/vpp/views/inventory-table.tpl.html | |
parent | df53da6e0a476db6c0e46b9d5e6c2b5d620c600a (diff) |
Inventory rework
- ui-grid replaces by smart-table
- dark theme setted
- orange buttons added
Change-Id: I2afe3231a1e889a1d23056242167cad65cbfae11
Signed-off-by: Daniel Malachovsky <daniel.malachovsky@pantheon.sk>
Signed-off-by: Varun Seereeram <vseereer@cisco.com>
Diffstat (limited to 'vbd/gui/module/src/main/resources/vpp/views/inventory-table.tpl.html')
-rw-r--r-- | vbd/gui/module/src/main/resources/vpp/views/inventory-table.tpl.html | 55 |
1 files changed, 27 insertions, 28 deletions
diff --git a/vbd/gui/module/src/main/resources/vpp/views/inventory-table.tpl.html b/vbd/gui/module/src/main/resources/vpp/views/inventory-table.tpl.html index 4f15332de..3335ad395 100644 --- a/vbd/gui/module/src/main/resources/vpp/views/inventory-table.tpl.html +++ b/vbd/gui/module/src/main/resources/vpp/views/inventory-table.tpl.html @@ -1,32 +1,31 @@ <div ng-controller="InventoryTableController"> <md-button ng-click="addVppShowForm()">Mount VPP</md-button> <md-button ng-click="getVppList()">Reload VPPs</md-button> - <!--FIXME: decide which element to use, if static, or ui-grid--> - <!--<table class="footable"> - <thead> - <tr> - <th>VPP Name</th> - <th>IP Address</th> - <th>Port</th> - <th>Connection Status</th> - <th>Actions</th> - </tr> - </thead> - <tbody> - <tr ng-repeat="vpp in vppList"> - <td>{{vpp.name}}</td> - <td>{{vpp.ipAddress}}</td> - <td>{{vpp.port}}</td> - <td>{{vpp.status}}</td> - <td> - <md-button ng-click="viewTopology(vpp)">View Topology</md-button> - <md-button ng-click="editVppShowForm(vpp)" ng-hide="vpp.status === 'connected'">Edit</md-button> - <md-button ng-click="deleteVpp(vpp)" >Delete</md-button> - </td> - </tr> - </tbody> - </table>--> - <div ng-controller="InventoryTableDefinitonController" class="black"> - <div ui-grid="gridOptions" ui-grid-expandable class="grid"></div> - </div> + + <md-content layout-padding> + <table st-table="displayVppList" st-safe-src="vppList" class="table table-striped"> + <thead> + <tr> + <th st-sort="name">VPP Name</th> + <th st-sort="ipAddress">IP Address</th> + <th st-sort="port">Port</th> + <th st-sort="status">Connection Status</th> + <th>Actions</th> + </tr> + </thead> + <tbody> + <tr ng-repeat="vpp in displayVppList"> + <td>{{vpp.name}}</td> + <td>{{vpp.ipAddress}}</td> + <td>{{vpp.port}}</td> + <td>{{vpp.status}}</td> + <td> + <md-button ng-click="viewTopology(vpp)">View Topology</md-button> + <md-button ng-click="editVppShowForm(vpp)" ng-hide="vpp.status === 'connected'">Edit</md-button> + <md-button ng-click="deleteVpp(vpp)" >Delete</md-button> + </td> + </tr> + </tbody> + </table> + </md-content> </div>
\ No newline at end of file |