From c25bacf17fe72fdcb8102503f3f1c4c208d469b8 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 21 Sep 2020 22:33:41 -0700 Subject: Implement category selection --- modern/src/DevicePage.js | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) (limited to 'modern/src/DevicePage.js') diff --git a/modern/src/DevicePage.js b/modern/src/DevicePage.js index 900b279b..a4b2e8b0 100644 --- a/modern/src/DevicePage.js +++ b/modern/src/DevicePage.js @@ -3,7 +3,7 @@ import TextField from '@material-ui/core/TextField'; import t from './common/localization'; import EditItemView from './EditItemView'; -import { Accordion, AccordionSummary, AccordionDetails, makeStyles, Typography } from '@material-ui/core'; +import { Accordion, AccordionSummary, AccordionDetails, makeStyles, Typography, FormControl, InputLabel, Select } from '@material-ui/core'; import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; const useStyles = makeStyles(() => ({ @@ -12,6 +12,30 @@ const useStyles = makeStyles(() => ({ }, })); +const deviceCategories = [ + 'default', + 'animal', + 'bicycle', + 'boat', + 'bus', + 'car', + 'crane', + 'helicopter', + 'motorcycle', + 'offroad', + 'person', + 'pickup', + 'plane', + 'ship', + 'tractor', + 'train', + 'tram', + 'trolleybus', + 'truck', + 'van', + 'scooter', +]; + const DevicePage = () => { const classes = useStyles(); @@ -67,6 +91,17 @@ const DevicePage = () => { onChange={(event) => setItem({...item, contact: event.target.value})} label={t('deviceContact')} variant="filled" /> + + {t('deviceCategory')} + + -- cgit v1.2.3