summaryrefslogtreecommitdiffstats
path: root/vbd/gui/module/src/main/resources/vpp/views/inventory-table.tpl.html
blob: ab62c75c37b998fc7043aa5abbd007db48f1d307 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<div ng-controller="InventoryTableController">
    <div layout="row" flex="100" layout-margin>
        <div class="md-whiteframe-z2 flex">
            <md-content layout-padding>
                <div style="float: left">
                    <h3>VPP List</h3>
                </div>
                <div style="float: right">
                    <md-button ng-click="addVppShowForm()" class="md-raised">Mount VPP</md-button>
                    <md-button ng-click="getVppList()" class="md-raised">Reload VPPs</md-button>
                </div>

                <table st-table="displayVppList" st-safe-src="vppList" class="table table-striped">
                    <thead>
                    <tr>
                        <th st-sort="name" class="interactive">VPP Name</th>
                        <th st-sort="ipAddress" class="interactive">IP Address</th>
                        <th st-sort="port" class="interactive">Port</th>
                        <th st-sort="status" class="interactive">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)" class="md-accent">View Topology</md-button>-->
                            <md-button ng-click="selectVpp(vpp); setMainView('inventoryDetail')" >Detail</md-button>
                            <md-button ng-click="editVppShowForm(vpp)" ng-disabled="vpp.status === 'connected'" class="md-accent">Edit</md-button>
                            <md-button ng-click="deleteVpp(vpp)" class="md-accent">Delete</md-button>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </md-content>
        </div>
    </div>
</div>