347 |
$form->setType('date_retour_controle_legalite','datedisabled'); |
$form->setType('date_retour_controle_legalite','datedisabled'); |
348 |
$form->setType('date_finalisation_courrier','datedisabled'); |
$form->setType('date_finalisation_courrier','datedisabled'); |
349 |
|
|
350 |
// l'administrateur peut modifier les champs de retour de date |
|
|
if ($this->f->user_is_admin == true) { |
|
|
$form->setType('date_retour_signature','date'); |
|
|
$form->setType('date_retour_rar','date'); |
|
|
$form->setType('date_retour_controle_legalite','date'); |
|
|
} |
|
351 |
|
|
352 |
if($maj==0){ // add |
if($maj==0){ // add |
353 |
$form->setType('instruction', 'hiddenstatic'); |
$form->setType('instruction', 'hidden'); |
354 |
|
$form->setType('lettretype', 'hidden'); |
355 |
$form->setType('evenement', 'select'); |
$form->setType('evenement', 'select'); |
356 |
$form->setType('date_evenement', 'date2'); |
$form->setType('date_evenement', 'date2'); |
357 |
}else{ // modify |
}else{ // modify |
361 |
$form->setType('date_evenement', 'date2'); |
$form->setType('date_evenement', 'date2'); |
362 |
// necessaire pour calcul de date en modification |
// necessaire pour calcul de date en modification |
363 |
//$form->setType('delai', 'hiddenstatic'); |
//$form->setType('delai', 'hiddenstatic'); |
364 |
|
// l'administrateur peut modifier les champs de retour de date |
365 |
|
if ($this->f->user_is_admin == true) { |
366 |
|
$form->setType('date_retour_signature','date'); |
367 |
|
$form->setType('date_retour_rar','date'); |
368 |
|
$form->setType('date_retour_controle_legalite','date'); |
369 |
|
} |
370 |
} |
} |
371 |
} elseif($maj==2){ |
} elseif($maj==2){ |
372 |
$form->setType('dossier', 'hidden'); |
$form->setType('dossier', 'hidden'); |