Skip to content
Snippets Groups Projects
Commit d0806575 authored by Andreas Ellewsen's avatar Andreas Ellewsen
Browse files

Merge branch 'move-button' into 'master'

Move add role button

See merge request !182
parents 44f7d800 5b3bcee9
No related branches found
No related tags found
1 merge request!182Move add role button
Pipeline #102167 passed
...@@ -259,17 +259,7 @@ export default function GuestInfo({ ...@@ -259,17 +259,7 @@ export default function GuestInfo({
</Button> </Button>
<h2>{t('guestInfo.roleInfoHead')}</h2> <h2>{t('guestInfo.roleInfoHead')}</h2>
<h3> <h3>{t('guestInfo.roleInfoBody')}</h3>
{t('guestInfo.roleInfoBody')}
<Button
variant="contained"
color="secondary"
component={Link}
to={`/sponsor/guest/${pid}/newrole`}
>
{t('sponsor.addRole')}
</Button>
</h3>
<TableContainer component={Paper}> <TableContainer component={Paper}>
<Table sx={{ minWidth: 650 }} aria-label="simple table"> <Table sx={{ minWidth: 650 }} aria-label="simple table">
...@@ -285,6 +275,18 @@ export default function GuestInfo({ ...@@ -285,6 +275,18 @@ export default function GuestInfo({
{guest.roles.map((role) => ( {guest.roles.map((role) => (
<RoleLine key={role.id} pid={pid} role={role} /> <RoleLine key={role.id} pid={pid} role={role} />
))} ))}
<TableRow>
<TableCell align="left">
<Button
variant="contained"
color="secondary"
component={Link}
to={`/sponsor/guest/${pid}/newrole`}
>
{t('sponsor.addRole')}
</Button>
</TableCell>
</TableRow>
</TableBody> </TableBody>
</Table> </Table>
</TableContainer> </TableContainer>
......
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