15/05/23 - 23h

recette2
cherif 2023-05-15 22:30:56 +02:00
parent 615b9cad27
commit 957a2b4c7d
1 changed files with 9 additions and 12 deletions

View File

@ -1393,13 +1393,9 @@ const DisplayDetailClass_new_v2 = (props) => {
<div className="mob_info_page_title_desc_desc description_block">
{parse(String(DetailTraining["description"]))}
</div>
</div>
{GetCurrentClass_result && GetCurrentClass_result.length > 0 &&
<div className="mob_info_page_title_desc">
@ -1411,10 +1407,11 @@ const DisplayDetailClass_new_v2 = (props) => {
<ul style={{ "width": "100%" }}>
{GetCurrentClass_result && GetCurrentClass_result.slice(0, 5).map((formation) => (
<li style={{ "height": "2.8rem" }}>
{(JSON.parse(formation).session_ondemande) && (JSON.parse(formation).session_ondemande) === "1" && <nav> Sessions de formation à la demande</nav>}
{( !(JSON.parse(formation).session_ondemande) || (JSON.parse(formation).session_ondemande) === "0") && <nav>
{(JSON.parse(formation).distantiel) === "1" && (JSON.parse(formation).presentiel) === "1" &&
(JSON.parse(formation).date_debut).substring(0, 10) !== (JSON.parse(formation).date_fin).substring(0, 10) &&
<nav>
@ -1462,7 +1459,7 @@ const DisplayDetailClass_new_v2 = (props) => {
{(JSON.parse(formation).adresse)} &nbsp;{(JSON.parse(formation).code_postal)}
</nav>}
</nav>}
</li>
))}
@ -1865,7 +1862,7 @@ const DisplayDetailClass_new_v2 = (props) => {
<div className="block_info_page_pave_title_desc">
<div className="block_info_page_pave_title_desc_title">
Description
Description
</div>
{DetailTraining["description"] && <div className="block_info_page_pave_title_desc description_block">
{parse(String(DetailTraining["description"]))}
@ -1884,15 +1881,15 @@ const DisplayDetailClass_new_v2 = (props) => {
<div className="block_info_page_pave_title_desc_desc session_block">
<ul style={{ "width": "100%" }}>
{GetCurrentClass_result && GetCurrentClass_result.slice(0, 5).map((formation) => (
<li style={{ "height": "2.8rem" }}>
{(JSON.parse(formation).session_ondemande) && (JSON.parse(formation).session_ondemande) === "1" && <nav> Sessions de formation à la demande</nav>}
{(JSON.parse(formation).distantiel) === "1" && (JSON.parse(formation).presentiel) === "1" &&
{( !(JSON.parse(formation).session_ondemande) || (JSON.parse(formation).session_ondemande) === "0") && <nav>
{(JSON.parse(formation).distantiel) === "1" && (JSON.parse(formation).presentiel) === "1" &&
(JSON.parse(formation).date_debut).substring(0, 10) !== (JSON.parse(formation).date_fin).substring(0, 10) &&
<nav>
{(JSON.parse(formation).date_debut).substring(0, 10)}&nbsp; au&nbsp;
@ -1939,7 +1936,7 @@ const DisplayDetailClass_new_v2 = (props) => {
{(JSON.parse(formation).adresse)} &nbsp;{(JSON.parse(formation).code_postal)}
</nav>}
</nav>}
</li>
))}
@ -2068,7 +2065,7 @@ const DisplayDetailClass_new_v2 = (props) => {
</div>}
{String(ismetiermanaged) === "1" && <div className="">
<img src={DetailTraining.img_url} alt="autre" className="" style={{"maxWidth":"100%"}} />
<img src={DetailTraining.img_url} alt="autre" className="" style={{ "maxWidth": "100%" }} />
</div>}