Skip to content

Commit

Permalink
feat(DHIS2-16944): add login page settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Mar 8, 2024
1 parent c54683f commit 2d93349
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/settingsCategories.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export const categories = {
'keyRequireAddToView',
'keyUseCustomLogoFront',
'keyUseCustomLogoBanner',
'loginPageLayout',
'loginPageTemplate'
],
},
email: {
Expand Down
19 changes: 19 additions & 0 deletions src/settingsKeyMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,25 @@ const settingsKeyMapping = {
label: i18n.t('Require authority to add to view object lists'),
type: 'checkbox',
},
loginPageLayout: {
label: i18n.t(
'Login page theme'
),
type: 'dropdown',
options: {
DEFAULT: i18n.t('Default'),
SIDEBAR: i18n.t('Sidebar'),
CUSTOM: i18n.t('Custom'),
},
},
loginPageTemplate: {
label: i18n.t(
'Login page template'
),
configuration: true,
multiLine: true,
hintText: i18n.t('Paste the content of your HTML template'),
},
keyUseCustomLogoFront: {
label: i18n.t('Custom login page logo'),
type: 'staticContent',
Expand Down

0 comments on commit 2d93349

Please sign in to comment.