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 e928f99
Show file tree
Hide file tree
Showing 2 changed files with 20 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
18 changes: 18 additions & 0 deletions src/settingsKeyMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,24 @@ 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'
),
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 e928f99

Please sign in to comment.