main
html 58 lines 2.1 KB
Raw
1 <html>
2 <head>
3 <title>Locale</title>
4 </head>
5
6 <body>
7 <div x-data>
8 <template x-if="$store.settings.settings">
9 <div>
10 <div class="section-title">Locale</div>
11 <div class="section-description">
12 Control how dates and times appear across Agent Zero.
13 </div>
14
15 <div class="field">
16 <div class="field-label">
17 <div class="field-title">Timezone</div>
18 <div class="field-description">
19 Effective timezone: <span x-text="$store.settings.effectiveTimezone"></span>
20 </div>
21 </div>
22 <div class="field-control">
23 <select
24 :value="$store.settings.settings.timezone || 'auto'"
25 @change="$store.settings.settings.timezone = $event.target.value"
26 x-effect="$nextTick(() => { $el.value = $store.settings.settings.timezone || 'auto'; })"
27 >
28 <option value="auto">Automatic (browser)</option>
29 <template x-for="option in $store.settings.additional?.timezones || []" :key="option.value">
30 <option :value="option.value" x-text="option.label"></option>
31 </template>
32 </select>
33 </div>
34 </div>
35
36 <div class="field">
37 <div class="field-label">
38 <div class="field-title">Time format</div>
39 <div class="field-description">
40 Choose the clock style used for displayed times.
41 </div>
42 </div>
43 <div class="field-control">
44 <select
45 :value="$store.settings.settings.time_format || '12h'"
46 @change="$store.settings.settings.time_format = $event.target.value"
47 x-effect="$nextTick(() => { $el.value = $store.settings.settings.time_format || '12h'; })"
48 >
49 <option value="12h">12-hour (AM/PM)</option>
50 <option value="24h">24-hour</option>
51 </select>
52 </div>
53 </div>
54 </div>
55 </template>
56 </div>
57 </body>
58 </html>