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

Move add role button

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