Skip to content

Commit

Permalink
Improve HTML structure to avoid embedded p's warning
Browse files Browse the repository at this point in the history
  • Loading branch information
IanMayo committed Aug 6, 2024
1 parent 679a13a commit c65aa8d
Showing 1 changed file with 48 additions and 53 deletions.
101 changes: 48 additions & 53 deletions src/resources/users/UserForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,64 +284,59 @@ export default function UserForm({ isEdit }: FormProps): React.ReactElement {
</Select>
</FormControl>
<Typography
component={'div'}
sx={{
marginTop: '30px',
marginBottom: '-20px',
fontSize: '14px'
}}>
<p>
<span
style={{
fontWeight: '600',
fontSize: '18px'
}}>
Departure Date
</span>{' '}
This is the date when the user will no longer be able to log into VAL.
If the user needs to be reactivated, this date can be updated.
</p>

<p>
<span
style={{
fontWeight: '600',
fontSize: '18px'
}}>
Password
</span>{' '}
The password should include these items:
<ul>
<li>At least 10 characters in length</li>
<li>Upper and lower case letters</li>
<li>At least one digit</li>
<li>At least one special character</li>
</ul>
</p>
<p>
<span
style={{
fontWeight: '600',
fontSize: '18px'
}}>
User Role
</span>
The above user roles have these permissions in VAL:
<ul>
<li>
<b>None</b> this user can log into VAL, but cannot make any
changes to any data
</li>
<li>
<b>RCO-User</b> can perform all VAL processes (including setting
temporary passwords), with the exception of editing some rarely
changing drop-down lists
</li>
<li>
<b>RCO-Power-User</b> can perform all processes of RCO-User, plus
can modify drop-down lists (such as media-type or vault-location)
</li>
</ul>
</p>
<span
style={{
fontWeight: '600',
fontSize: '18px'
}}>
Departure Date
</span>{' '}
This is the date when the user will no longer be able to log into VAL.
If the user needs to be reactivated, this date can be updated.
<br />
<span
style={{
fontWeight: '600',
fontSize: '18px'
}}>
Password
</span>{' '}
The password should include these items:
<ul>
<li>At least 10 characters in length</li>
<li>Upper and lower case letters</li>
<li>At least one digit</li>
<li>At least one special character</li>
</ul>
<span
style={{
fontWeight: '600',
fontSize: '18px'
}}>
User Role
</span>{' '}
The above user roles have these permissions in VAL:
<ul>
<li>
<b>None</b> this user can log into VAL, but cannot make any changes
to any data
</li>
<li>
<b>RCO-User</b> can perform all VAL processes (including setting
temporary passwords), with the exception of editing some rarely
changing drop-down lists
</li>
<li>
<b>RCO-Power-User</b> can perform all processes of RCO-User, plus
can modify drop-down lists (such as media-type or vault-location)
</li>
</ul>
</Typography>
</SimpleForm>
)
Expand Down

0 comments on commit c65aa8d

Please sign in to comment.