diff --git a/dashboard/src/components/CustomFieldDisplay.js b/dashboard/src/components/CustomFieldDisplay.js index e41e2c4ef..2fe533bbf 100644 --- a/dashboard/src/components/CustomFieldDisplay.js +++ b/dashboard/src/components/CustomFieldDisplay.js @@ -4,7 +4,7 @@ import { formatDateTimeWithNameOfDay, formatDateWithNameOfDay } from '../service const showBoolean = (value) => { if (value === null) return ''; if (value === undefined) return ''; - if (!value) return 'Non'; + if (!value) return ''; return 'Oui'; }; diff --git a/dashboard/src/components/CustomFieldInput.js b/dashboard/src/components/CustomFieldInput.js index 688f6172d..9c171347e 100644 --- a/dashboard/src/components/CustomFieldInput.js +++ b/dashboard/src/components/CustomFieldInput.js @@ -31,7 +31,7 @@ const CustomFieldInput = ({ field, values, handleChange, model, colWidth = null, {!hideLabel && ( )} {!!['text', 'number'].includes(field.type) && ( @@ -88,18 +88,27 @@ const CustomFieldInput = ({ field, values, handleChange, model, colWidth = null, )} {!!['boolean'].includes(field.type) && ( - - - handleChange({ target: { value: !values[field.name], name: field.name } })} - disabled={disabled} - /> - + /* + display: flex; + flex-direction: column; + margin-left: 20px; + width: 80%; + */ +
+ +
)} {!!['yes-no'].includes(field.type) && (