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 d92b4d1
Show file tree
Hide file tree
Showing 3 changed files with 22 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
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'
),
multiLine: true,
hintText: i18n.t('Paste the content of your HTML template'),
rowsMax: 10
},
keyUseCustomLogoFront: {
label: i18n.t('Custom login page logo'),
type: 'staticContent',
Expand Down

0 comments on commit d92b4d1

Please sign in to comment.