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 9, 2024
1 parent c54683f commit 562a3cf
Show file tree
Hide file tree
Showing 3 changed files with 18 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
15 changes: 15 additions & 0 deletions src/settingsKeyMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,21 @@ 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 562a3cf

Please sign in to comment.