summaryrefslogtreecommitdiff
path: root/client/partials/image/image.html
blob: 1604b30498e7b49690d104da9af095c61bcf2526 (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
42
43
44
45


<div class="panel panel-default" ng-controller="imageCtrl">
    <div class="panel-heading">
        Image Manager
    </div>
    <div class="panel-body">


        <div  class="btn-group btn-group-md" role="group" aria-label="...">
            <button type="button" class="btn btn-default" ng-click="showCreateImageModal()">Create Image</button>
            <button type="button" class="btn btn-default">Download</button>
        </div>
        <p></p>
        <table class="table table-hover">
            <thead>
                <tr>
                    <th>Name</th>
                    <th>Status</th>
                    <th>Size</th>
                    <th>Action</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="image in images">
                    <td>{{ image.name}}</td>
                    <td ng-if="image.status == 'queued'"><font color="red">{{ image.status}}</font></td>
                    <td ng-if="image.status != 'queued'"><font color="green">{{ image.status}}</font></td>

                    <td>{{ (image.size / 1048576).toFixed(2)}} MB</td>
                    <td>
                        <button type="button" class="btn btn-primary" ng-click="edit(image)">Edit</button>
                        <button type="button" class="btn btn-danger" ng-click="deleteImage(image.id)">Remove</button>
                    </td>
                </tr>

            </tbody>
        </table>





    </div>
</div>