diff --git a/Frontend/src/components/Aufnahmeantrag.js b/Frontend/src/components/Aufnahmeantrag.js index 7b5d7c0..18215f0 100644 --- a/Frontend/src/components/Aufnahmeantrag.js +++ b/Frontend/src/components/Aufnahmeantrag.js @@ -1,16 +1,42 @@ import React, { Component } from "react"; import { - FormControl, FormControlLabel, Checkbox, TextField, Typography, Grid, Fab, - Container + Container, + FormControl, + InputLabel, + MenuItem, + Select, + OutlinedInput } from "@material-ui/core"; import SendIcon from "@material-ui/icons/Send"; -import { makeStyles } from "@material-ui/core/styles"; +import { withStyles, createStyles } from "@material-ui/core/styles"; + +const useStyles = createStyles(theme => ({ + textField: { + margingLeft: theme.spacing(1), + marginRight: theme.spacing(1) + }, + fab: { + margin: theme.spacing(1) + }, + form: { + backgroundColor: "#f5f5f5", + borderRadius: "5px", + margin: "20px", + padding: "20px" + }, + checkbox: { + display: "flex", + alignItems: "center", + height: "100%", + marginLeft: "7px" + } +})); class Aufnahmeantrag extends Component { state = { @@ -37,34 +63,20 @@ class Aufnahmeantrag extends Component { this.setState({ [name]: event.target.value }); }; - useStyles = makeStyles(theme => ({ - textField: { - marginLeft: theme.spacing(1), - marginRight: theme.spacing(1), - width: 200 - }, - header: { - textAlign: "center" - }, - fab: { - margin: theme.spacing(1) - } - })); - render() { - const classes = this.useStyles; + const classes = this.props.classes; return ( - +
- + Aufnahmeantrag - + - + - + - + - + - + - + - + - + - + - + - - + - - - + + Laufzeit + + + + + + + className={classes.textField} + > + + Unterichtstyp + + + - - this.handleChange("Ermaessigt")} - value="Ermaessigt" - color="primary" - /> - } - label="Schüler/Student/Azubi" - /> + +
+ this.handleChange("Ermaessigt")} + value="Ermaessigt" + color="primary" + /> + } + label="Schüler/Student/Azubi" + /> +
- + Bankverbindung - + - + - +
); } } -export default Aufnahmeantrag; +export default withStyles(useStyles)(Aufnahmeantrag);