-
Notifications
You must be signed in to change notification settings - Fork 930
Expand file tree
/
Copy pathsettings.component.html
More file actions
136 lines (116 loc) · 4.5 KB
/
settings.component.html
File metadata and controls
136 lines (116 loc) · 4.5 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!--
Copyright since 2025 Mifos Initiative
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<!-- TODO: Add user specific settings for choice of language and date format. -->
<!-- Global Web App Configuration Settings -->
<div class="container">
<mat-accordion>
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>
{{ 'labels.inputs.Main Configuration' | translate }}
</mat-panel-title>
</mat-expansion-panel-header>
<div class="layout-column">
<mifosx-language-selector></mifosx-language-selector>
<mat-form-field>
<mat-label>{{ 'labels.inputs.Default Date Format' | translate }}</mat-label>
<mat-select [formControl]="dateFormat">
@for (dateFormat of dateFormats; track dateFormat) {
<mat-option [value]="dateFormat">
{{ dateFormat }}
</mat-option>
}
</mat-select>
</mat-form-field>
<mat-form-field>
<mat-label>{{ 'labels.inputs.Default Datetime Format' | translate }}</mat-label>
<mat-select [formControl]="datetimeFormat">
@for (datetimeFormat of datetimeFormats; track datetimeFormat) {
<mat-option [value]="datetimeFormat">
{{ datetimeFormat }}
</mat-option>
}
</mat-select>
</mat-form-field>
<mat-form-field>
<mat-label>{{ 'labels.inputs.Decimals to Display' | translate }}</mat-label>
<mat-select [formControl]="decimalsToDisplay">
@for (decimalOpt of decimals; track decimalOpt) {
<mat-option [value]="decimalOpt">
{{ decimalOpt }}
</mat-option>
}
</mat-select>
</mat-form-field>
</div>
</mat-expansion-panel>
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>
{{ 'labels.inputs.Images' | translate }}
</mat-panel-title>
</mat-expansion-panel-header>
<div class="layout-column">
<span class="header">{{ 'labels.inputs.Favicon' | translate }}</span>
<mifosx-file-upload></mifosx-file-upload>
<span class="header">{{ 'labels.inputs.Cover Image' | translate }}</span>
<mifosx-file-upload></mifosx-file-upload>
<span class="header">{{ 'labels.inputs.Logo' | translate }}</span>
<mifosx-file-upload></mifosx-file-upload>
<span class="header">{{ 'labels.inputs.Logo with Organization Name' | translate }}</span>
<mifosx-file-upload></mifosx-file-upload>
</div>
</mat-expansion-panel>
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>
{{ 'labels.inputs.Theme and Font' | translate }}
</mat-panel-title>
</mat-expansion-panel-header>
<div class="layout-column">
<span class="header">{{ 'labels.inputs.Theme' | translate }}</span>
<mifosx-theme-picker></mifosx-theme-picker>
<mat-form-field>
<mat-label>{{ 'labels.inputs.Default Font' | translate }}</mat-label>
<mat-select [formControl]="fontFamily">
@for (font of fonts; track font) {
<mat-option [value]="font">
{{ font }}
</mat-option>
}
</mat-select>
</mat-form-field>
</div>
</mat-expansion-panel>
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>
{{ 'labels.inputs.Contact Information' | translate }}
</mat-panel-title>
</mat-expansion-panel-header>
<div class="layout-column">
<mat-form-field>
<mat-label>{{ 'labels.inputs.Website' | translate }}</mat-label>
<input type="url" matInput />
</mat-form-field>
<mat-form-field>
<mat-label>{{ 'labels.inputs.Email' | translate }}</mat-label>
<input type="email" matInput />
</mat-form-field>
<mat-form-field>
<mat-label>{{ 'labels.inputs.Contact No' | translate }}</mat-label>
<input type="tel" matInput />
</mat-form-field>
</div>
</mat-expansion-panel>
</mat-accordion>
<div class="submit-actions">
<button mat-raised-button color="primary" [disabled]="!hasChanges" (click)="submit()">
{{ 'labels.buttons.Submit' | translate }}
</button>
</div>
</div>