20/12/22 - 21h30
parent
6952e01f30
commit
9cb4b8bf95
|
@ -1,4 +1,4 @@
|
|||
import React, { useState, useEffect, } from "react";
|
||||
import React, { useState, useEffect, useRef} from "react";
|
||||
import { useForm } from "react-hook-form";
|
||||
import { getCookie, setCookie } from 'react-use-cookie';
|
||||
import Box from '@mui/material/Box';
|
||||
|
@ -27,6 +27,9 @@ import { ConsoleView } from "react-device-detect";
|
|||
import { confirmAlert } from 'react-confirm-alert';
|
||||
import SendIcon from '@mui/icons-material/Send';
|
||||
import { FcViewDetails } from "react-icons/fc";
|
||||
import parse from 'html-react-parser'
|
||||
import { Editor } from '@tinymce/tinymce-react';
|
||||
|
||||
|
||||
function GestionAdministrative(props) {
|
||||
|
||||
|
@ -1692,20 +1695,21 @@ function GestionAdministrative(props) {
|
|||
}
|
||||
|
||||
document.getElementsByName("date_evaluation")[0].value = "";
|
||||
if (mylocalattendee.date_evaluation) {
|
||||
if (mylocalattendee.eval_date) {
|
||||
|
||||
var date_eval = new Date(moment(mylocalattendee.date_evaluation, "DD/MM/YYYY HH:mm:ss"));
|
||||
var date_eval = new Date(moment(mylocalattendee.eval_date, "YYYY/MM/DD"));
|
||||
setdetailuser_date_evaluation(date_eval);
|
||||
}
|
||||
|
||||
document.getElementsByName("note_eval")[0].value = "";
|
||||
if (mylocalattendee.note_evaluation) {
|
||||
document.getElementsByName("note_eval")[0].value = mylocalattendee.note_evaluation;
|
||||
if (mylocalattendee.eval_note) {
|
||||
document.getElementsByName("note_eval")[0].value = mylocalattendee.eval_note;
|
||||
}
|
||||
|
||||
document.getElementsByName("detail_evalution")[0].value = "";
|
||||
if (mylocalattendee.evaluation) {
|
||||
document.getElementsByName("detail_evalution")[0].value = mylocalattendee.evaluation;
|
||||
|
||||
if (mylocalattendee.eval_eval) {
|
||||
setfield_evaluation(mylocalattendee.eval_eval);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -1811,6 +1815,12 @@ function GestionAdministrative(props) {
|
|||
}
|
||||
|
||||
|
||||
const editorRef_evaluation = useRef(null);
|
||||
const [field_evaluation, setfield_evaluation] = useState("");
|
||||
function editor_keyup() {
|
||||
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='gestionadministrative'>
|
||||
<Helmet>
|
||||
|
@ -2391,8 +2401,6 @@ function GestionAdministrative(props) {
|
|||
</div>}
|
||||
</div>
|
||||
|
||||
-----
|
||||
|
||||
{String(display_detail_insc) === "1" && mysession && <div className="div_row" style={{ "border": "None", "background": '#F8F9F9', "padding": '5px' }}>
|
||||
Detail inscription
|
||||
<div className="div_row" style={{ "border": "None" }}>
|
||||
|
@ -2596,6 +2604,7 @@ function GestionAdministrative(props) {
|
|||
className="disabled_style"
|
||||
locale='fr-FR'
|
||||
|
||||
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
@ -2605,31 +2614,41 @@ function GestionAdministrative(props) {
|
|||
name="note_eval"
|
||||
id="note_eval"
|
||||
type="number"
|
||||
|
||||
|
||||
InputLabelProps={{
|
||||
shrink: true,
|
||||
}}
|
||||
inputProps={{ min: "0", max: "5", step: "1" }}
|
||||
disabled={false}
|
||||
inputProps={{ min: "0", max: "5", step: "1", readOnly: true, }}
|
||||
|
||||
className="disabled_style"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="session_caract"> Evaluation<br />
|
||||
<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
required
|
||||
name="detail_evalution"
|
||||
id="detail_evalution"
|
||||
<Editor
|
||||
onInit={(evt, editor) => editorRef_evaluation.current = editor}
|
||||
initialValue={field_evaluation}
|
||||
onKeyUp={editor_keyup}
|
||||
disabled = {true}
|
||||
|
||||
InputLabelProps={{
|
||||
shrink: true,
|
||||
init={{
|
||||
resize: false,
|
||||
|
||||
height: 100,
|
||||
menubar: false,
|
||||
plugins: [
|
||||
'advlist autolink lists link image charmap print preview anchor',
|
||||
'searchreplace visualblocks code fullscreen',
|
||||
'insertdatetime media table paste code help wordcount'
|
||||
],
|
||||
toolbar: false,
|
||||
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }'
|
||||
}}
|
||||
maxRows={4}
|
||||
rows={4}
|
||||
disabled={false}
|
||||
className="disabled_style"
|
||||
|
||||
/>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -2655,9 +2674,6 @@ function GestionAdministrative(props) {
|
|||
<Button variant="contained" className="bton_fermer" onClick={DownloadAttendeeDetail}>Imprimer fiche detaillee
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>}
|
||||
|
@ -2732,9 +2748,6 @@ function GestionAdministrative(props) {
|
|||
|
||||
</div>
|
||||
</div>}
|
||||
|
||||
|
||||
-----
|
||||
</div>
|
||||
<div className="pieddepage">
|
||||
<Footer />
|
||||
|
|
Loading…
Reference in New Issue