Skip to content
Snippets Groups Projects
Commit 402c5e54 authored by Tore.Brede's avatar Tore.Brede
Browse files

Merge branch 'GREG-60_updates_to_summary_page' into 'master'

GREG-60: Updates to summary page

See merge request !99
parents b2a71661 a01f306d
No related branches found
No related tags found
1 merge request!99GREG-60: Updates to summary page
Pipeline #96443 passed
...@@ -71,6 +71,9 @@ ...@@ -71,6 +71,9 @@
"registerPeriodText": "Enter role and duration.", "registerPeriodText": "Enter role and duration.",
"summaryContactInformation": "Summary contact information", "summaryContactInformation": "Summary contact information",
"summaryPeriod": "Summary period", "summaryPeriod": "Summary period",
"contactInformation": "Contact information" "contactInformation": "Contact information",
"guestRole": "Guest role",
"guestPeriod":"Period",
"guestDepartment": "Department"
} }
} }
...@@ -71,6 +71,9 @@ ...@@ -71,6 +71,9 @@
"registerPeriodText": "Fyll inn rolle og periode.", "registerPeriodText": "Fyll inn rolle og periode.",
"summaryContactInformation": "Summary contact information", "summaryContactInformation": "Summary contact information",
"summaryPeriod": "Summary period", "summaryPeriod": "Summary period",
"contactInformation": "Kontaktinformasjon" "contactInformation": "Kontaktinformasjon",
"guestRole": "Gjesterolle",
"guestPeriod": "Periode",
"guestDepartment": "Avdeling"
} }
} }
...@@ -72,6 +72,9 @@ ...@@ -72,6 +72,9 @@
"registerPeriodText": "Fyll inn rolle og periode.", "registerPeriodText": "Fyll inn rolle og periode.",
"summaryContactInformation": "Summary contact information", "summaryContactInformation": "Summary contact information",
"summaryPeriod": "Summary period", "summaryPeriod": "Summary period",
"contactInformation": "Kontaktinformasjon" "contactInformation": "Kontaktinformasjon",
"guestRole": "Gjesterolle",
"guestPeriod": "Periode",
"guestDepartment": "Avdeling"
} }
} }
...@@ -28,9 +28,6 @@ export default function FrontPage() { ...@@ -28,9 +28,6 @@ export default function FrontPage() {
<li key="register"> <li key="register">
<Link to="/register/">Registration</Link> <Link to="/register/">Registration</Link>
</li> </li>
<li key="registerwizard">
<Link to="/registerwizard/">Registration wizard</Link>
</li>
</ul> </ul>
</p> </p>
<Debug /> <Debug />
......
...@@ -9,7 +9,6 @@ import { ...@@ -9,7 +9,6 @@ import {
TableCell, TableCell,
TableHead, TableHead,
TableRow, TableRow,
Typography,
} from '@mui/material' } from '@mui/material'
import format from 'date-fns/format' import format from 'date-fns/format'
...@@ -88,17 +87,25 @@ const StepSummary = forwardRef((props: StepSummaryProperties, ref: Ref<PersonFor ...@@ -88,17 +87,25 @@ const StepSummary = forwardRef((props: StepSummaryProperties, ref: Ref<PersonFor
return ( return (
<> <>
<Typography variant='h5' sx={{ <Box sx={{
paddingTop: '1rem', paddingTop: '1rem',
paddingBottom: '1rem', paddingBottom: '1rem',
}}>{t('registerWizardText.summaryContactInformation')}</Typography> }}>
<Box sx={{ typography: 'subtitle2' }}> {t('registerWizardText.summaryContactInformation')}
{t('registerWizardText.summaryPage')}
</Box> </Box>
<Box sx={{ maxWidth: '30rem' }}>
<Box sx={{ padding: '1rem', bgcolor: 'primary.dark' }}>{t('registerWizardText.contactInformation')}</Box>
<Grid container> <Box sx={{ typography: 'body2' }}>
{t('registerWizardText.summaryPage')}
</Box>
<Box sx={{ marginTop: '1rem', maxWidth: '50rem' }}>
<Box sx={{
typography: 'subtitle2',
marginBottom: '0.5rem',
paddingLeft: '0.5rem',
bgcolor: 'primary.dark',
}}>{t('registerWizardText.contactInformation')}</Box>
<Grid sx={{ typography: 'body2', paddingLeft: '0.5rem' }} container>
<Grid item xs={4}> <Grid item xs={4}>
{t('input.fullName')} {t('input.fullName')}
</Grid> </Grid>
...@@ -113,28 +120,30 @@ const StepSummary = forwardRef((props: StepSummaryProperties, ref: Ref<PersonFor ...@@ -113,28 +120,30 @@ const StepSummary = forwardRef((props: StepSummaryProperties, ref: Ref<PersonFor
</Grid> </Grid>
</Grid> </Grid>
<Typography variant='h5' sx={{ <Box sx={{
paddingTop: '1rem', paddingTop: '1rem',
paddingBottom: '1rem', paddingBottom: '1rem',
}}>{t('registerWizardText.summaryPeriod')}</Typography> }}>
{t('registerWizardText.summaryPeriod')}
</Box>
<Table> <Table>
<TableHead sx={{ <TableHead sx={{
padding: '1rem', paddingLeft: '0.5rem',
bgcolor: 'primary.dark', bgcolor: 'primary.dark',
}}> }}>
<TableRow> <TableRow>
<TableCell>Guest role</TableCell> <TableCell>{t('registerWizardText.guestRole')}</TableCell>
<TableCell>Period</TableCell> <TableCell>{t('registerWizardText.guestPeriod')}</TableCell>
<TableCell>Department</TableCell> <TableCell>{t('registerWizardText.guestDepartment')}</TableCell>
<TableCell>Comment</TableCell> <TableCell>{t('input.comment')}</TableCell>
</TableRow> </TableRow>
</TableHead> </TableHead>
<TableBody> <TableBody>
<TableRow> <TableRow>
<TableCell>{roleTypeName}</TableCell> <TableCell>{roleTypeName}</TableCell>
<TableCell>{formData.role_start === null ? null : format(formData.role_start as Date, 'yyyy-MM-dd')}-{formData.role_end === null ? null : format(formData.role_end as Date, 'yyyy-MM-dd')}</TableCell> <TableCell>{formData.role_start === null ? null : format(formData.role_start as Date, 'yyyy-MM-dd')} - {formData.role_end === null ? null : format(formData.role_end as Date, 'yyyy-MM-dd')}</TableCell>
<TableCell>{ousName}</TableCell> <TableCell>{ousName}</TableCell>
<TableCell>{formData.comment}</TableCell> <TableCell>{formData.comment}</TableCell>
</TableRow> </TableRow>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment