recette2
cherif 2025-05-14 21:42:55 +02:00
parent c5908167f2
commit 1d0189b0c9
1 changed files with 60 additions and 109 deletions

View File

@ -8,6 +8,7 @@ import { getCookie, setCookie } from 'react-use-cookie';
import { useHistory } from "react-router-dom";
import { DataGrid, GridToolbar, frFR } from '@mui/x-data-grid';
import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css";
import TextareaAutosize from '@mui/material/TextareaAutosize';
import 'react-tooltip/dist/react-tooltip.css'
import { Tooltip } from 'react-tooltip'
@ -6046,85 +6047,57 @@ const Jury = (props) => {
{String(soutenance_data_edit_mode) !== "1" && <div>
<div style={{ width: "100%" }}>
<b> Sujet </b> <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, width: "100%", height:'5rem', }}
required
<b> Sujet 1</b> <br />
<TextareaAutosize
name="detail_soutenance_sujet"
id="detail_soutenance_sujet"
InputLabelProps={{
shrink: true,
aria-label="minimum height"
maxRows={10}
//placeholder="Minimum 3 rows"
style={{ border: "1px solid gainsboro", width: '99%', padding: '2px',
maxHeight:'15rem', height:'10rem', minHeight:'10rem', marginBottom:'3rem'
}}
disabled={false}
//fullWidth
// sx={{ width: "80%" }}
//className="disabled_style"
value={p_detail_soutenance_sujet}
InputProps={{ style: { border: "1px solid gainsboro", width: '90%', padding:'2px', height:'5rem', margin:'auto' } }}
multiline
minRows={2}
maxRows={2}
rows={2}
/>
</div>
<div style={{ width: "100%" }}>
<b> Observation </b> <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, width: "100%" }}
required
<TextareaAutosize
name="detail_soutenance_observation"
id="detail_soutenance_observation"
InputLabelProps={{
shrink: true,
}}
disabled={false}
//fullWidth
// sx={{ width: "80%" }}
//className="disabled_style"
value={p_detail_soutenance_observation}
aria-label="minimum height"
InputProps={{ style: { border: "1px solid gainsboro", width: '90%', padding:'2px', height:'5rem', margin:'auto' } }}
multiline
minRows={2}
maxRows={2}
rows={2}
maxRows={10}
//placeholder="Minimum 3 rows"
style={{ border: "1px solid gainsboro", width: '99%', padding: '2px',
maxHeight:'15rem', height:'10rem', minHeight:'10rem', marginBottom:'3rem'
}}
value={p_detail_soutenance_observation}
/>
</div>
<div style={{ width: "100%" }}>
<b> Note </b> <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, width: "100%" }}
required
name="detail_soutenance_note"
<TextareaAutosize
name="detail_soutenance_note"
id="detail_soutenance_note"
InputLabelProps={{
shrink: true,
}}
disabled={false}
//fullWidth
// sx={{ width: "80%" }}
//className="disabled_style"
aria-label="minimum height"
rows={1}
style={{ border: "1px solid gainsboro", width: '99%', padding: '2px',
maxHeight:'3rem', height:'3rem', minHeight:'3rem', marginBottom:'3rem'
}}
value={p_detail_soutenance_note}
InputProps={{ style: { border: "1px solid gainsboro", width: '90%', padding:'2px', margin:'auto' } }}
/>
</div>
</div>}
@ -6133,91 +6106,69 @@ const Jury = (props) => {
<div style={{ width: "100%" }}>
<b> Sujet </b> <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, width: "100%", }}
required
<TextareaAutosize
name="detail_soutenance_sujet"
id="detail_soutenance_sujet"
InputLabelProps={{
shrink: true,
aria-label="minimum height"
minRows={3}
maxRows={4}
//placeholder="Minimum 3 rows"
style={{ border: "1px solid gainsboro", width: '99%', padding: '2px',
maxHeight:'15rem', height:'10rem', minHeight:'10rem', marginBottom:'3rem'
}}
disabled={false}
//fullWidth
// sx={{ width: "80%" }}
//className="disabled_style"
value={p_detail_soutenance_sujet}
onChange={(e) => {
value={p_detail_soutenance_sujet}
onChange={(e) => {
setp_detail_soutenance_sujet(e.target.value);
}}
InputProps={{ style: { border: "1px solid gainsboro", width: '90%', padding:'2px', height:'5rem', margin:'auto' } }}
multiline
minRows={2}
maxRows={2}
rows={2}
/>
</div>
<div style={{ width: "100%" }}>
<b> Observation </b> <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, width: "100%" }}
required
<TextareaAutosize
name="detail_soutenance_observation"
id="detail_soutenance_observation"
InputLabelProps={{
shrink: true,
aria-label="minimum height"
minRows={3}
maxRows={4}
//placeholder="Minimum 3 rows"
style={{ border: "1px solid gainsboro", width: '99%', padding: '2px',
maxHeight:'15rem', height:'10rem', minHeight:'10rem', marginBottom:'3rem'
}}
disabled={false}
//fullWidth
// sx={{ width: "80%" }}
//className="disabled_style"
value={p_detail_soutenance_observation}
onChange={(e) => {
value={p_detail_soutenance_observation}
onChange={(e) => {
setp_detail_soutenance_observation(e.target.value);
}}
InputProps={{ style: { border: "1px solid gainsboro", width: '90%', padding:'2px', height:'5rem', margin:'auto' } }}
multiline
minRows={2}
maxRows={2}
rows={2}
/>
</div>
<div style={{ width: "100%" }}>
<b> Note </b> <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, width: "80%" }}
required
name="detail_soutenance_note"
id="detail_soutenance_note"
InputLabelProps={{
shrink: true,
}}
disabled={false}
//fullWidth
// sx={{ width: "80%" }}
//className="disabled_style"
<TextareaAutosize
name="detail_soutenance_note"
id="detail_soutenance_note"
aria-label="minimum height"
rows={1}
style={{ border: "1px solid gainsboro", width: '99%', padding: '2px',
maxHeight:'3rem', height:'3rem', minHeight:'3rem', marginBottom:'3rem'
}}
value={p_detail_soutenance_note}
onChange={(e) => {
setp_detail_soutenance_note(e.target.value);
}}
InputProps={{ style: { border: "1px solid gainsboro", width: '90%', padding:'2px', margin:'auto' } }}
/>
</div>