diff --git a/factsheet/frontend/src/components/factsheet.js b/factsheet/frontend/src/components/factsheet.js index fa47dbe43..d88560448 100644 --- a/factsheet/frontend/src/components/factsheet.js +++ b/factsheet/frontend/src/components/factsheet.js @@ -58,6 +58,7 @@ import TableBody from '@mui/material/TableBody'; import TableCell from '@mui/material/TableCell'; import { ContentTableCell, FirstRowTableCell } from '../styles/oep-theme/components/tableStyles.js'; import InfoListItem from '../styles/oep-theme/components/infoListItem.js' +import BundleScenariosGridItem from '../styles/oep-theme/components/editBundleScenariosForms.js'; import MenuBookOutlinedIcon from '@mui/icons-material/MenuBookOutlined'; import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined'; @@ -1251,96 +1252,76 @@ const renderBasicInformation = () => ( - - - Study name: - - - - {'A study is a project with the goal to investigate something.'} -
- More info... -
- - } - > - -
-
-
- - - - - - Acronym: - - - - {'An acronym is an abbreviation of the title by using the first letters of each part of the title.'} -
- More info... -
- - } - > - -
-
-
- - - - - - Institutions: - - - - {'An institution is an organisation that serves a social purpose.'} -
- More info... -
- - } - > - -
-
-
- - - - - - - Contact person: - - - - {'A contact person is an agent that can be contacted for help or information about a specific service or good.'} -
- More info... -
- - } - > - -
-
-
- - - - + ( + + )} + TooltipComponent={HtmlTooltip} + /> + ( + + )} + TooltipComponent={HtmlTooltip} + /> + ( + + )} + TooltipComponent={HtmlTooltip} + /> + ( + + )} + TooltipComponent={HtmlTooltip} + />
); diff --git a/factsheet/frontend/src/styles/oep-theme/components/editBundleScenariosForms.js b/factsheet/frontend/src/styles/oep-theme/components/editBundleScenariosForms.js new file mode 100644 index 000000000..acda36fed --- /dev/null +++ b/factsheet/frontend/src/styles/oep-theme/components/editBundleScenariosForms.js @@ -0,0 +1,59 @@ +import React from 'react'; +import { styled } from '@mui/system'; +import Grid from '@mui/material/Grid'; +import Typography from '@mui/material/Typography'; +import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined'; + +const LabelItem = styled('div')(({ theme }) => ({ + display: 'flex', + flexDirection: 'row', + alignItems: 'center', + height: '100%', + + '& span:first-of-type': { + paddingRight: theme.spacing(1) + }, + '& svg': { + transform: 'translateY(3px)' + } +})); + +const BundleScenariosGridItem = ({ + spanValue, + tooltipText, + hrefLink, + TooltipComponent, + renderField +}) => { + return ( + + + + + {spanValue} + + + + {tooltipText} +
+ More info... +
+ + } + > + +
+
+
+
+ + {renderField()} + +
+
+ ); +}; + +export default BundleScenariosGridItem;