summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole3/frontend/src/app/pages/profile/profile.component.html
blob: 97761b02782ba77eadd1a4e3fe5eb6bf409c1b9f (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<section class="content-header">
    <h1 translate="{{user.username}}">
    </h1>
    <ol class="breadcrumb">
        <li><a ui-sref="app.dashboard"><i class="fa fa-dashboard"></i> {{'dashboard'|translate}}</a></li>
        <li class="active" translate="profile"></li>
    </ol>
</section>
<section fixed-toolboxbar class="toolboxbar">
    <div>
        <div class="col-md-12">
            <div class="box-tools pull-right">
                <button class="btn btn-primary" translate="save" (click)="save()"></button>
            </div>
        </div>
    </div>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title" translate="user_data"></h3>
                </div>
                <div class="box-body">
                    <form role="form">
                        <div class="form-group col-md-2">
                            <label translate="username"></label>
                            <input class="form-control" readonly="readonly" type="text" [(ngModel)]="user.username" name="username">
                        </div>
                        <div class="form-group col-md-4">
                            <label translate="password"></label>
                            <input type="password" class="form-control" name="password" >
                        </div>
                        <div class="form-group col-md-4">
                            <label translate="retype_password"></label>
                            <input type="password" class="form-control" name="retypePassword" >
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="col-md-12">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title" translate="user_preferences"></h3>
                </div>
                <div class="box-body">
                    <div class="form-group">
                        <fieldset>
                            <legend translate="ous"></legend>
                            <label class="help-block" translate="display_as"></label>
                            <div class="row">
                                <div class="form-group col-md-1">
                                    <input icheck type="radio" name="displayGrid" checkbox-class="icheckbox_square-blue" radio-class="iradio_square-blue" class="selection-checkbox" [(ngModel)]="user.preferences.ous.showGrid" value="true" />
                                    <label translate="grid"></label>
                                </div>
                                <div class="form-group col-md-1">
                                    <input icheck type="radio" name="displayTable" checkbox-class="icheckbox_square-blue" radio-class="iradio_square-blue" class="selection-checkbox" [(ngModel)]="user.preferences.ous.showGrid" value="false" />
                                    <label translate="table"></label>
                                </div>
                            </div>
                        </fieldset>
                        <fieldset>
                            <legend translate="app"></legend>
                            <div class="row">
                                <div class="form-group col-md-2">
                                    <label translate="language"></label>
                                    <select class="form-control" name="language" [(ngModel)]="user.preferences.language" (change)="ogCommonService.changeLanguage($event)">
                                        <option *ngFor="let lang of constants.languages" [ngValue]="lang.id" >{{lang.name}}</option>
                                    </select>
                                </div>
                                <div class="form-group col-md-2">
                                    <label translate="theme"></label>
                                    <select class="form-control" name="theme" [(ngModel)]="user.preferences.theme" (change)="changeTheme($event)">
                                        <option *ngFor="let theme of constants.themes"  >{{theme}}</option>
                                    </select>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>