-
Notifications
You must be signed in to change notification settings - Fork 277
Expand file tree
/
Copy pathpreferences.html
More file actions
136 lines (126 loc) · 8.52 KB
/
Copy pathpreferences.html
File metadata and controls
136 lines (126 loc) · 8.52 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
<!DOCTYPE html>
<html data-theme="" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="script-src 'self'">
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="../node_modules/@fortawesome/fontawesome-free/css/all.min.css">
<link rel="stylesheet" href="../css/styles.css">
<script src="../node_modules/jquery/dist/jquery.min.js" charset="utf-8"></script>
<script src="../node_modules/bootstrap/dist/js/bootstrap.bundle.js" charset="utf-8"></script>
<script type="module" src="preferences.js"></script>
</head>
<body id="preferences-window" class="common-window">
<div>
<div class="header-title" data-i18n="$Preferences.userPreferences">
User preferences
</div>
<section>
<div class="section-title" data-i18n="$Preferences.workingDays">Working days</div>
<div class="weekdays-selector">
<input type="checkbox" id="sunday" name="working-days-sunday" class="weekday" />
<label for="sunday" data-i18n="$Preferences.sun">Sun</label>
<input type="checkbox" id="monday" name="working-days-monday" class="weekday" />
<label for="monday" data-i18n="$Preferences.mon">Mon</label>
<input type="checkbox" id="tuesday" name="working-days-tuesday" class="weekday" />
<label for="tuesday" data-i18n="$Preferences.tue">Tue</label>
<input type="checkbox" id="wednesday" name="working-days-wednesday" class="weekday" />
<label for="wednesday" data-i18n="$Preferences.wed">Wed</label>
<input type="checkbox" id="thursday" name="working-days-thursday" class="weekday" />
<label for="thursday" data-i18n="$Preferences.thu">Thu</label>
<input type="checkbox" id="friday" name="working-days-friday" class="weekday" />
<label for="friday" data-i18n="$Preferences.fri">Fri</label>
<input type="checkbox" id="saturday" name="working-days-saturday" class="weekday" />
<label for="saturday" data-i18n="$Preferences.sat">Sat</label>
</div>
<div class="flex-box">
<p data-i18n="$Preferences.hideNonWorkingDay">Hide non-working days (Month View)</p>
<label id='non-working-label' class="switch"><input type="checkbox" name="hide-non-working-days"><span class="slider round"></span></label>
</div>
<div class="flex-box">
<p data-i18n="$Preferences.hoursPerDay">Hours per day</p>
<input data-i18n="[placeholder]$Preferences.hours-per-day;[oninvalid]$Generic.hours-on-invalid" title="X, XX, XX.X, X.XX, X:XX, XX.XX, XX:XX" type="text" name="hours-per-day" id="hours-per-day" maxlength=5 pattern="^((0|1)?[0-9]|2[0-3])(\.[0-9][0-9]?|:[0-5][0-9])?$" value="08:00" size=5 required>
</div>
<div class="flex-box">
<p><i class="fas fa-utensils"></i><span data-i18n="$Preferences.enablePrefillBreakTime">Enable prefilling of break time</span></p>
<label class="switch"><input type="checkbox" id='enable-prefill-break-time' name="enable-prefill-break-time"><span class="slider round"></span></label>
</div>
<div class="flex-box">
<p data-i18n="$Preferences.breakTimeInterval">Break time interval</p>
<input data-i18n="[placeholder]$Preferences.break-time-interval" title="X, XX, XX.X, X.XX, X:XX, XX.XX, XX:XX" type="text" name="break-time-interval" id="break-time-interval" maxlength=5 pattern="^((0|1)?[0-9]|2[0-3])(\.[0-9][0-9]?|:[0-5][0-9])?$" value="00:30" size=5 required">
</div>
</section>
<section>
<div class="section-title" data-i18n="$Preferences.notification">Notification</div>
<div class="flex-box">
<p><i class="far fa-bell"></i> <span data-i18n="$Preferences.notification">Notification</span></p>
<label class="switch"><input type="checkbox" id="notification" name="notification"><span class="slider round"></span></label>
</div>
<div class="flex-box">
<p><i class="fas fa-redo"></i> <span data-i18n="$Preferences.allowRecurringNotifications">Allow recurring notifications</span></p>
<label class="switch"><input type="checkbox" id="repetition" name="repetition"><span class="slider round"></span></label>
</div>
<div class="flex-box mb-2">
<p><i class="fas fa-stopwatch"></i><span data-i18n="$Preferences.minutesBetweenNotifications">Minutes between notifications</span></p>
<input type="number" name="notifications-interval" id="notifications-interval" min="1" max="30" value="5" required">
</div>
</section>
<section>
<div class="section-title" data-i18n="$Preferences.appBehavior">App Behavior</div>
<div class="flex-box">
<p><i class="fas fa-globe"></i><span data-i18n="$Preferences.language">Language</span></p>
<select class="selects-right" id="language" name="language">
</select>
</div>
<div class="flex-box">
<p><i class="far fa-play-circle"></i><span data-i18n="$Preferences.startOnLogin">Start on Login</span></p>
<label id='start-at-login' class="switch"><input type="checkbox" name="start-at-login"><span class="slider round"></span></label>
</div>
<div class="flex-box">
<p></i><span data-i18n="$Preferences.minimizeToTray">Minimize button should minimize to tray</span></p>
<label id='minimize-to-tray' class="switch"><input type="checkbox" name="minimize-to-tray"><span class="slider round"></span></label>
</div>
<div class="flex-box">
<p><span data-i18n="$Preferences.closeMinimizeToTray">Close button should minimize to tray</span></p>
<label id='close-to-tray' class="switch"><input type="checkbox" name="close-to-tray"><span class="slider round"></span></label>
</div>
</section>
<section>
<div class="section-title" data-i18n="$Preferences.view">View</div>
<div class="flex-box">
<p><i class="fas fa-calendar-day"></i><span data-i18n="$Preferences.countTodayOnTotals">Count Today in Totals</span></p>
<label id='count-today' class="switch"><input type="checkbox" name="count-today"><span class="slider round"></span></label>
</div>
<div class="flex-box">
<p><i class="fas fa-sign-in-alt"></i><span data-i18n="$Preferences.overallBalanceStart">Overall Balance Start Date</span></p>
<label id='overall-balance-start-date'><input type="date" class="date-right" name="overall-balance-start-date"></label>
</div>
<div class="flex-box">
<p><i class="fas fa-eye"></i><span data-i18n="$Preferences.view">View</span></p>
<select class="selects-right" id="view" name="view">
<option value="month" data-i18n="$Preferences.month" selected>Month</option>
<option value="day" data-i18n="$Preferences.day">Day</option>
</select>
</div>
<div class="flex-box">
<p><i class="fas fa-swatchbook"></i><span data-i18n="$Preferences.themes">Themes</span></p>
<select class="selects-right" id="theme" name="theme">
<option value="system-default" data-i18n="$Preferences.systemDefault" selected>System Default</option>
<option value="light" data-i18n="$Preferences.light">Light</option>
<option value="dark" data-i18n="$Preferences.dark">Dark</option>
<option value="cadent-star" data-i18n="$Preferences.cadentStar">Cadent Star</option>
</select>
</div>
</section>
<section>
<div class="section-title" data-i18n="$Preferences.reset">Reset</div>
<div class="flex-box" name="preferences-area">
<p><i class="fas fa-undo"></i><span data-i18n="$Preferences.reset-preferences">Reset to default preferences</span></p>
<button name="reset-button" id="reset-button" type="button" data-i18n="$Preferences.reset">
Reset
</button>
</div>
</section>
</div>
</body>
</html>