Skip to content

Commit

Permalink
feat: change form design
Browse files Browse the repository at this point in the history
  • Loading branch information
mjatin-dev committed Apr 6, 2022
1 parent 2996777 commit 95fe299
Showing 1 changed file with 134 additions and 107 deletions.
241 changes: 134 additions & 107 deletions admin-ui/plugins/admin/components/UserManagement/UserForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,113 +27,140 @@ function UserForm() {
return (
<Form>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="User Name" size={12} />
</Col>
<Col sm={9}>
<Input placeholder={'User Name'} id="userName" name="userName" />
</Col>
</FormGroup>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="Full Name" size={12} />
</Col>
<Col sm={3}>
<Input placeholder={'Given Name'} id="givenName" name="givenName" />
</Col>
<Col sm={3}>
<Input
placeholder={'Middle Name'}
id="middleName"
name="middleName"
/>
</Col>
<Col sm={3}>
<Input
placeholder={'Family Name'}
id="familyName"
name="familyName"
/>
</Col>
</FormGroup>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="Display Name" size={12} />
</Col>
<Col sm={9}>
<Input
placeholder={'Display Name'}
id="displayName"
name="displayName"
/>
</Col>
</FormGroup>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="Nick Name" size={12} />
</Col>
<Col sm={9}>
<Input placeholder={'Nick Name'} id="nickName" name="nickName" />
</Col>
</FormGroup>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="Title" size={12} />
</Col>
<Col sm={9}>
<Input placeholder={'Title'} id="title" name="title" />
</Col>
</FormGroup>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="User Type" size={12} />
</Col>
<Col sm={9}>
<Input placeholder={'User Type'} id="userType" name="userType" />
</Col>
</FormGroup>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="Preffered Language" size={12} />
</Col>
<Col sm={9}>
<Input
type="select"
name="preferredLanguage"
id="preferredLanguage"
multiple={false}
>
<option value="en">en</option>
<option value="fr">fr</option>
<option value="pt">pt</option>
</Input>
</Col>
</FormGroup>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="Timezone" size={12} />
</Col>
<Col sm={9}>
<Input type="select" name="timezone" id="timezone" multiple={false}>
{timezones.map((data, key) => (
<option value={data} key={key}>
{data}
</option>
))}
</Input>
</Col>
</FormGroup>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="Password" size={12} />
</Col>
<Col sm={9}>
<Input
type="password"
placeholder={'Password'}
id="password"
name="password"
/>
<Col sm={8}>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="User Name" size={12} />
</Col>
<Col sm={9}>
<Input placeholder={'User Name'} id="userName" name="userName" />
</Col>
</FormGroup>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="Full Name" size={12} />
</Col>
<Col sm={3}>
<Input
placeholder={'Given Name'}
id="givenName"
name="givenName"
/>
</Col>
<Col sm={3}>
<Input
placeholder={'Middle Name'}
id="middleName"
name="middleName"
/>
</Col>
<Col sm={3}>
<Input
placeholder={'Family Name'}
id="familyName"
name="familyName"
/>
</Col>
</FormGroup>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="Display Name" size={12} />
</Col>
<Col sm={9}>
<Input
placeholder={'Display Name'}
id="displayName"
name="displayName"
/>
</Col>
</FormGroup>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="Nick Name" size={12} />
</Col>
<Col sm={9}>
<Input placeholder={'Nick Name'} id="nickName" name="nickName" />
</Col>
</FormGroup>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="Title" size={12} />
</Col>
<Col sm={9}>
<Input placeholder={'Title'} id="title" name="title" />
</Col>
</FormGroup>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="User Type" size={12} />
</Col>
<Col sm={9}>
<Input placeholder={'User Type'} id="userType" name="userType" />
</Col>
</FormGroup>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="Preffered Language" size={12} />
</Col>
<Col sm={9}>
<Input
type="select"
name="preferredLanguage"
id="preferredLanguage"
multiple={false}
>
<option value="en">en</option>
<option value="fr">fr</option>
<option value="pt">pt</option>
</Input>
</Col>
</FormGroup>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="Timezone" size={12} />
</Col>
<Col sm={9}>
<Input
type="select"
name="timezone"
id="timezone"
multiple={false}
>
{timezones.map((data, key) => (
<option value={data} key={key}>
{data}
</option>
))}
</Input>
</Col>
</FormGroup>
<FormGroup row>
<Col sm={3}>
<GluuLabel label="Password" size={12} />
</Col>
<Col sm={9}>
<Input
type="password"
placeholder={'Password'}
id="password"
name="password"
/>
</Col>
</FormGroup>
</Col>
<Col sm={4}>
<div className="border border-light ">
<div className="bg-light text-bold p-2">Available Claims</div>
<ul className="list-group">
<li className="list-group-item">Birthday</li>
<li className="list-group-item">
CIBA Device Registration Token
</li>
<li className="list-group-item">CIBA User Code</li>
<li className="list-group-item">Country</li>
<li className="list-group-item">Enrollment Code</li>
</ul>
</div>
</Col>
</FormGroup>
</Form>
Expand Down

0 comments on commit 95fe299

Please sign in to comment.