mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-11-07 13:13:05 -05:00
Add a boolean web config option to control visibility of the Back and Refresh navigation buttons shown at the top of most views. Uses a body class and CSS rule so no individual view files need changes. Also remove the ZM_WEB_BUTTON_STYLE INSERT from the migration SQL since zmupdate.pl handles Config table inserts from ConfigData.pm.in. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
749 B
SQL
20 lines
749 B
SQL
--
|
|
-- Convert ZM_OPT_USE_REMEMBER_ME from boolean to tri-state (None/Yes/No)
|
|
--
|
|
|
|
UPDATE Config SET
|
|
Value = CASE WHEN Value = '1' THEN 'No' ELSE 'None' END,
|
|
Type = 'string',
|
|
DefaultValue = 'None',
|
|
Hint = 'None|Yes|No',
|
|
Pattern = '(?^i:^([YyNn]))',
|
|
Format = ' $1 ',
|
|
Prompt = 'Show a "Remember Me" option on the login page',
|
|
Help = '
|
|
Controls whether a "Remember Me" checkbox appears on the login page.
|
|
None: No checkbox is shown. Sessions always persist for ZM_COOKIE_LIFETIME.
|
|
Yes: Checkbox is shown and checked by default. Users may uncheck it for a session-only cookie.
|
|
No: Checkbox is shown and unchecked by default. Users may check it to persist the session.
|
|
'
|
|
WHERE Name = 'ZM_OPT_USE_REMEMBER_ME';
|