Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 96 #277

Merged
merged 1 commit into from
Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/Libki/Controller/API/Client/v1_0.pm
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ sub index : Path : Args(0) {
inactivityWarning => $c->stash->{Settings}->{ClientInactivityWarning},
inactivityLogout => $c->stash->{Settings}->{ClientInactivityLogout},

ClientTimeNotificationFrequency => $c->stash->{Settings}->{ClientInactivityLogout},
ClientTimeWarningThreshold => $c->stash->{Settings}->{ClientInactivityLogout},

ClientStyleSheet => $c->stash->{Settings}->{ClientStyleSheet},

InternetConnectivityURLs => $c->stash->{Settings}->{InternetConnectivityURLs},
Expand Down
32 changes: 30 additions & 2 deletions root/dynamic/templates/administration/settings/index.tt
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,39 @@
</div>
</fieldset>

<fieldset>
<legend>[% c.loc("Client notifications") %]</legend>

<div class="form-group">
<label for="ClientTimeNotificationFrequency">[% c.loc("Client time notification frequency") %]</label>
<div class="input-group">
<input type="text" class="form-control" id="ClientTimeNotificationFrequency" name="ClientTimeNotificationFrequency" value="[% ClientTimeNotificationFrequency %]">
<div class="input-group-append">
<span class="input-group-text">[% c.loc("Minutes") %]</span>
</div>
</div>
<small class="form-text text-muted">[% c.loc("Frequency with which to request the host OS display a message with the user's remaining time.") %]</small>
<small class="form-text text-muted">[% c.loc("Note: Host operating system may not honor message requests based on the OS configuration.") %]</small>
</div>

<div class="form-group">
<label for="ClientTimeWarningThreshold">[% c.loc("Client time warning threshold") %]</label>
<div class="input-group">
<input type="text" class="form-control" id="ClientTimeWarningThreshold" name="ClientTimeWarningThreshold" value="[% ClientTimeWarningThreshold %]">
<div class="input-group-append">
<span class="input-group-text">[% c.loc("Minutes") %]</span>
</div>
</div>
<small class="form-text text-muted">[% c.loc("When the user's remaining remaining time drops below the threshold, Libki will request the OS display the user's remaining time in a warning message once per minute.") %]</small>
</div>

</fieldset>

<fieldset>
<legend>[% c.loc("Client inactivity") %]</legend>

<div class="form-group">
<label for="ClientInactivity">[% c.loc("Client inactivity warning") %]</label>
<label for="ClientInactivityWarning">[% c.loc("Client inactivity warning") %]</label>
<div class="input-group">
<input type="text" class="form-control" id="ClientInactivityWarning" name="ClientInactivityWarning" value="[% ClientInactivityWarning %]">
<div class="input-group-append">
Expand All @@ -218,7 +246,7 @@
</div>

<div class="form-group">
<label for="ClientInactivity">[% c.loc("Client inactivity logout") %]</label>
<label for="ClientInactivityLogout">[% c.loc("Client inactivity logout") %]</label>
<div class="input-group">
<input type="text" class="form-control" id="ClientInactivityLogout" name="ClientInactivityLogout" value="[% ClientInactivityLogout %]">
<div class="input-group-append">
Expand Down