summaryrefslogtreecommitdiffstats
path: root/vbd/gui/module/src/main/resources/vpp/views/config-vpp-dialog.html
blob: 3fcd4a68bc6a912fd604c332492426b8bebd9caf (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<md-dialog ng-cloak aria-label="new vpp dialog">
    <form>
        <md-toolbar>
            <div class="md-toolbar-tools">
                <h2 style="color: white">
                    Configuring {{ConfigVppDialogCtrl.vpp.name}}
                </h2>
                <span flex></span>
                <md-button class="md-icon-button" ng-click="ConfigVppDialogCtrl.close()" aria-label="close button">
                    <div>X</div>
                </md-button>
            </div>
        </md-toolbar>
        <md-dialog-content style="max-width:800px;max-height:810px; ">
            <div class="md-dialog-content">
                <md-content layout-padding>
                    <form name="vppConfigForm">
                        <div layout="row">
                            <md-input-container flex>
                                <label>
                                    Name
                                </label>
                                <input ng-model="ConfigVppDialogCtrl.vpp.name" disabled>
                            </md-input-container>
                            <md-input-container flex>
                                <label>
                                    IP Address
                                </label>
                                <input ng-model="ConfigVppDialogCtrl.vpp.ip" ng-disabled="ConfigVppDialogCtrl.vpp.status === 'connected'">
                            </md-input-container>
                            <md-input-container flex>
                                <label>
                                    Port
                                </label>
                                <input ng-model="ConfigVppDialogCtrl.vpp.port" ng-disabled="ConfigVppDialogCtrl.vpp.status === 'connected'">
                            </md-input-container>
                        </div>
                        <div layout="row">
                            <md-input-container flex ng-if="ConfigVppDialogCtrl.vpp.status != 'connected'">
                                <label>
                                    Username
                                </label>
                                <input ng-model="ConfigVppDialogCtrl.vpp.un">
                            </md-input-container>
                            <md-input-container flex ng-if="ConfigVppDialogCtrl.vpp.status != 'connected'">
                                <label>
                                    Password
                                </label>
                                <input ng-model="ConfigVppDialogCtrl.vpp.pw" type="password">
                            </md-input-container>
                        </div>

                    </form>
                </md-content>

            </div>
        </md-dialog-content>
        <md-progress-linear md-mode="indeterminate" ng-show="ConfigVppDialogCtrl.waiting"></md-progress-linear>
        <md-dialog-actions layout="row">
            <span flex></span>
            <md-button ng-click="ConfigVppDialogCtrl.updateConfig();" style="margin-right:20px;" class="md-accent" ng-if="ConfigVppDialogCtrl.vpp.status != 'connected'">
                Update
            </md-button>

        </md-dialog-actions>
    </form>
</md-dialog>