Commit cddefb41 authored by ns17's avatar ns17

Fixed responsiveness

parent 2321a643
Pipeline #22453 failed with stages
in 51 seconds
......@@ -63,49 +63,135 @@ export function DisciplinaSearch(props) {
const classes = useStyles();
const {rows, setRows} = React.useContext(Rows);
return ( <div>
<div>
<div>
<Paper className={classes.root}>
<Table className={classes.table} aria-label="simple table">
<TableHead>
<TableRow>
<TableCell>Código turma</TableCell>
<TableCell align="right">Curso</TableCell>
<TableCell align="right">Nome da disciplina</TableCell>
<TableCell align="right">Sala</TableCell>
<TableCell align="right">Dia</TableCell>
<TableCell align="right">Início</TableCell>
<TableCell align="right">Fim</TableCell>
</TableRow>
</TableHead>
<TableBody>
<TableRow>
<TableCell align="center">
<fixedHeader>
<b>Código turma</b>
</fixedHeader>
</TableCell >
{rows.map(row => (
<TableCell align="center" key={row.disciplina.codigo}>
{row.turma.codigo}
</TableCell>))}
</TableRow>
<TableRow align="center" scope="row">
<TableCell align="center">
<b>Curso</b>
</TableCell >
{rows.map(row => (
<TableCell align="center" key={row.disciplina.codigo}>
{row.curso? row.curso.nome : ""}
</TableCell>))}
</TableRow>
<TableRow align="center" scope="row">
<TableCell align="center">
<b>Nome da disciplina</b>
</TableCell >
{rows.map(row => (
<TableCell align="center" key={row.disciplina.codigo}>
{row.disciplina.nome}
</TableCell>))}
</TableRow>
<TableRow align="center" scope="row">
<TableCell align="center">
<b>Sala</b>
</TableCell >
{rows.map(row => (
<TableCell align="center" key={row.disciplina.codigo}>
{row.horarios.map((value, index) => {
return <p>{value.salaCode}</p>
})}
</TableCell>))}
</TableRow>
<TableRow align="center" scope="row">
<TableCell align="center">
<b> Dia</b>
</TableCell >
{rows.map(row => (
<TableCell align="center" key={row.disciplina.codigo}>
{row.horarios.map((value, index) => {
return <p>{value.dia}</p>
})}
</TableCell>))}
</TableRow>
<TableRow align="center" scope="row">
<TableCell align="center">
<b> Início</b>
</TableCell >
{rows.map(row => (
<TableCell align="center" key={row.disciplina.codigo}>
{row.horarios.map((value, index) => {
return <p>{value.horario_inicial}</p>
})}
</TableCell>))}
</TableRow>
<TableRow align="center" scope="row">
<TableCell align="center">
<b> Fim</b>
</TableCell >
{rows.map(row => (
<TableCell align="center" key={row.disciplina.codigo}>
{row.horarios.map((value, index) => {
return <p>{value.horario_final}</p>
})}
</TableCell>))}
</TableRow>
{/* <TableRow align="right">Sala</TableRow>
<TableRow align="right">Dia</TableRow>
<TableRow align="right">Início</TableRow>
<TableRow align="right">Fim</TableRow> */}
</TableBody>
{/* <TableBody>
{rows.map(row => (
<TableRow key={row.disciplina.codigo}>
<TableCell component="th" scope="row">{row.turma.codigo}</TableCell>
<TableCell align="right">{row.curso? row.curso.nome : ""}</TableCell>
<TableCell align="right">{row.disciplina.nome}</TableCell>
<TableCell align="right">
<TableCell key={row.disciplina.codigo}>
<TableRow align="center" scope="row">
{row.turma.codigo}
</TableRow>
<TableRow align="center">{row.curso? row.curso.nome : ""}</TableRow >
<TableRow align="center">{row.disciplina.nome}</TableRow>
<TableRow align="center">
{row.horarios.map((value, index) => {
return <p>{value.salaCode}</p>
})}
</TableCell>
<TableCell align="right">
</TableRow>
<TableRow align="center">
{row.horarios.map((value, index) => {
return <p>{value.dia}</p>
})}
</TableCell>
<TableCell align="right">
</TableRow>
<TableRow align="center">
{row.horarios.map((value, index) => {
return <p>{value.horario_inicial}</p>
})}
</TableCell>
<TableCell align="right">
</TableRow>
<TableRow align="center">
{row.horarios.map((value, index) => {
return <p>{value.horario_final}</p>
})}
</TableCell>
</TableRow>
</TableRow>
</TableCell>
))}
</TableBody>
</TableBody> */}
</Table>
</Paper>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment