Skip to content

Commit

Permalink
feat(admin-ui): implement middle name
Browse files Browse the repository at this point in the history
  • Loading branch information
mjatin-dev committed Jun 16, 2022
1 parent 5c4394a commit 193aa1c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin-ui/app/routes/Apps/Gluu/GluuInputRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function GluuInputRow({
lsize,
rsize,
doc_category,
disabled = false,
}) {
const [customType, setCustomType] = useState(null)

Expand All @@ -35,6 +36,7 @@ function GluuInputRow({
name={name}
defaultValue={value}
onChange={formik.handleChange}
disabled={disabled}
/>
{type == 'password' && (
<div style={{ position: 'absolute', right: 20, top: 7 }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function UserForm({ formik }) {
'jansStatus',
'userPassword',
'givenName',
'middleName',
'sn',
]
const getCustomAttributeById = (id) => {
Expand Down Expand Up @@ -92,6 +93,17 @@ function UserForm({ formik }) {
<Form onSubmit={formik.handleSubmit}>
<FormGroup row>
<Col sm={8}>
{userDetails && (
<GluuInputRow
label="INUM"
name="INUM"
value={userDetails.inum || ''}
lsize={3}
rsize={9}
formik={formik}
disabled={true}
/>
)}
<GluuInputRow
doc_category={DOC_SECTION}
label="First Name"
Expand All @@ -102,6 +114,16 @@ function UserForm({ formik }) {
rsize={9}
/>

<GluuInputRow
doc_category={DOC_SECTION}
label="Middle Name"
name="middleName"
value={formik.values.middleName || ''}
formik={formik}
lsize={3}
rsize={9}
/>

<GluuInputRow
doc_category={DOC_SECTION}
label="Last Name"
Expand Down

0 comments on commit 193aa1c

Please sign in to comment.