Skip to content

Commit 193aa1c

Browse files
committed
feat(admin-ui): implement middle name
1 parent 5c4394a commit 193aa1c

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

admin-ui/app/routes/Apps/Gluu/GluuInputRow.js

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function GluuInputRow({
1313
lsize,
1414
rsize,
1515
doc_category,
16+
disabled = false,
1617
}) {
1718
const [customType, setCustomType] = useState(null)
1819

@@ -35,6 +36,7 @@ function GluuInputRow({
3536
name={name}
3637
defaultValue={value}
3738
onChange={formik.handleChange}
39+
disabled={disabled}
3840
/>
3941
{type == 'password' && (
4042
<div style={{ position: 'absolute', right: 20, top: 7 }}>

admin-ui/plugins/user-management/components/UserManagement/UserForm.js

+22
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ function UserForm({ formik }) {
4646
'jansStatus',
4747
'userPassword',
4848
'givenName',
49+
'middleName',
4950
'sn',
5051
]
5152
const getCustomAttributeById = (id) => {
@@ -92,6 +93,17 @@ function UserForm({ formik }) {
9293
<Form onSubmit={formik.handleSubmit}>
9394
<FormGroup row>
9495
<Col sm={8}>
96+
{userDetails && (
97+
<GluuInputRow
98+
label="INUM"
99+
name="INUM"
100+
value={userDetails.inum || ''}
101+
lsize={3}
102+
rsize={9}
103+
formik={formik}
104+
disabled={true}
105+
/>
106+
)}
95107
<GluuInputRow
96108
doc_category={DOC_SECTION}
97109
label="First Name"
@@ -102,6 +114,16 @@ function UserForm({ formik }) {
102114
rsize={9}
103115
/>
104116

117+
<GluuInputRow
118+
doc_category={DOC_SECTION}
119+
label="Middle Name"
120+
name="middleName"
121+
value={formik.values.middleName || ''}
122+
formik={formik}
123+
lsize={3}
124+
rsize={9}
125+
/>
126+
105127
<GluuInputRow
106128
doc_category={DOC_SECTION}
107129
label="Last Name"

0 commit comments

Comments
 (0)