From eb02c2330f4cedba9a39ae7b230d96805f55a96c Mon Sep 17 00:00:00 2001 From: rosaga Date: Wed, 31 Jan 2024 15:21:42 +0300 Subject: [PATCH] concept request form --- pages/RequestConcept.js | 142 ++++++++++++++++++++++++++++++++++++++++ pages/index.js | 2 +- 2 files changed, 143 insertions(+), 1 deletion(-) create mode 100644 pages/RequestConcept.js diff --git a/pages/RequestConcept.js b/pages/RequestConcept.js new file mode 100644 index 0000000..420d548 --- /dev/null +++ b/pages/RequestConcept.js @@ -0,0 +1,142 @@ +import React, { useState } from 'react'; +import Box from '@mui/material/Box'; +import { Button, Select, MenuItem, TextField, Typography, InputLabel, FormControl, IconButton } from '@mui/material'; +import AddIcon from '@mui/icons-material/Add'; +import DeleteIcon from '@mui/icons-material/Delete'; + +function RequestConcept() { + const [sections, setSections] = useState([]); + const [dataType, setDataType] = useState(''); + + const addSection = () => { + setSections([...sections, { id: sections.length + 1 }]); + }; + + const deleteSection = (id) => { + setSections(sections.filter((section) => section.id !== id)); + }; + const handleDataTypeChange = (event) => { + setDataType(event.target.value); + }; + const dataTypes = [ + 'Boolean', + 'Coded', + 'Complex', + 'Date', + 'Datetime', + 'Document', + 'None', + 'Numeric', + 'Rule', + 'Structured-Numeric', + 'Text', + 'Time', + ]; + return ( +
+ + Request Addition of New Concepts + + + + + Concept Class + + + + + DataType + + + + + + Names & Synonyms + + + + + {sections.map((section) => ( + + + + + + Locale + + + + Type + + + + + deleteSection(section.id)} + > + + + + + + + ))} + + + + + + +
+ ); +} + +export default RequestConcept; diff --git a/pages/index.js b/pages/index.js index 706dcfd..f76de01 100644 --- a/pages/index.js +++ b/pages/index.js @@ -110,7 +110,7 @@ export default function Home() { You can submit a request for a concept to be added, or visit our help & support page -