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 11, 2024
1 parent fd16326 commit e07a9c1
Show file tree
Hide file tree
Showing 3 changed files with 17 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
1 change: 1 addition & 0 deletions src/settingsFields.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ class SettingsFields extends React.Component {
min: mapping.minValue,
max: mapping.maxValue,
helpText: mapping.helpText,
rowsMax: mapping.rowsMax,
},
validators,
}
Expand Down
14 changes: 14 additions & 0 deletions src/settingsKeyMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,20 @@ 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,
rowsMax: 10,
},
keyUseCustomLogoFront: {
label: i18n.t('Custom login page logo'),
type: 'staticContent',
Expand Down

0 comments on commit e07a9c1

Please sign in to comment.