request->params['action'], ['edit', 'show']) === true) {
$empty = false;
$keySubmit = 'Trash.';
if ($initialisationRecu === true) {
$keySubmitService = 'WebdpoFiche.';
} else {
$keySubmitService = 'Trash.';
}
}
if (!isset($fieldsIsRequired)){
$fieldsIsRequired = true;
}
?>
WebcilForm->input($keySubmit.'declarantpersonnenom', [
'id' => 'declarantpersonnenom',
'label' => [
'text' => __d('fiche', 'fiche.champDeclarantpersonnenom')
],
'readonly' => true,
'required' => true
]);
$serviceFieldOptions = [
'id' => 'declarantservice',
'label' => [
'text' => __d('fiche', 'fiche.champDeclarantservice')
],
'required' => true,
];
if (in_array($this->request->params['action'], ['edit', 'show']) !== true ||
$initialisationRecu === true
) {
$countService = count($this->Session->read('User.service'));
if ($countService >= 2 && $fieldsIsRequired === true) {
foreach ($this->Session->read('User.service') as $service) {
$listeUserService[$service] = $service;
}
$serviceFieldOptions += [
'options' => $listeUserService,
'empty' => __d('fiche', 'fiche.emptySelectionnerServiceDeclarant'),
'placeholder' => false
];
} else
if ($countService == 0 || $fieldsIsRequired === false) {
$serviceFieldOptions += [
'readonly' => true,
'value' => 'Aucun service'
];
} else {
$serviceFieldOptions += [
'readonly' => true,
'value' => $this->Session->read('User.service')
];
}
} else {
$serviceFieldOptions += [
'readonly' => true
];
}
echo $this->WebcilForm->input($keySubmitService.'declarantservice', $serviceFieldOptions);
echo $this->WebcilForm->input($keySubmit.'declarantpersonneportable', [
'id' => 'declarantpersonneportable',
'label' => [
'text' => __d('fiche', 'fiche.champDeclarantpersonneportable')
],
'readonly' => true,
'placeholder' => false
]);
?>
WebcilForm->inputs([
$keySubmit.'declarantpersonneemail' => [
'id' => 'declarantpersonneemail',
'label' => [
'text' => __d('fiche', 'fiche.champDeclarantpersonneemail')
],
'readonly' => true,
'required' => true
],
$keySubmit.'declarantpersonnefix' => [
'id' => 'declarantpersonnefix',
'label' => [
'text' => __d('fiche', 'fiche.champDeclarantpersonnefix')
],
'readonly' => true,
'placeholder' => false
]
]);
?>
]*?>.*?>@si', "\n\r", $normeTraitement['Norme']['description']);
?>
WebcilForm->input('norme', [
'id' => 'shownorme',
'readonly' => true,
'placeholder' => false,
'value' => $norme
]);
?>
|
|
Html->link('', [
'controller' => 'normes',
'action' => 'download',
$normeTraitement['Norme']['fichier'],
$normeTraitement['Norme']['name_fichier']
], [
'class' => 'btn btn-default-default boutonShow btn-sm my-tooltip',
'title' => 'Télécharger la norme',
'escapeTitle' => false
]);
?>
|
WebcilForm->input('descriptionNorme', [
'id' => 'showdescriptionNorme',
'type' => 'textarea',
'readonly' => true,
'placeholder' => false,
'value' => $normeDescription
]);
?>
request->data['Fiche']['norme_id'])) {
$valueNorme = $this->request->data['Fiche']['norme_id'];
}
?>
WebcilForm->input('norme_id', [
'id' => 'norme_id',
'label' => [
'text' => __d('fiche', 'fiche.champNorme')
],
'options' => $options_normes,
'class' => 'usersDeroulant transformSelect form-control',
'empty' => true,
'placeholder' => false,
'data-placeholder' => __d('norme', 'norme.placeholderFiltreNorme'),
'value' => $valueNorme
]);
?>
WebcilForm->input('descriptionNorme', [
'id' => 'descriptionNorme',
'type' => 'textarea',
'readonly' => true,
'disabled' => true,
'placeholder' => false
]);
?>
WebcilForm->inputs([
'WebdpoFiche.outilnom' => [
'id' => 'outilnom',
'label' => [
'text' => __d('fiche', 'fiche.champOutilnom')
],
'required' => true,
'placeholder' => false
],
'transfert_hors_ue' => [
'id' => 'transfert_hors_ue',
'options' => [
true => 'Oui',
false => 'Non'
],
'label' => [
'text' => $this->Html->tag(
'abbr',
__d('fiche', 'fiche.champTransfertHorsUe'),
[
'data-content' => nl2br(__d('fiche', 'fiche.champTransfertHorsUeDefinition')),
'class' => 'popoverText'
]
)
],
'class' => 'transformSelect form-control',
'required' => true,
'empty' => false,
'data-placeholder' => ' ',
'default' => false
],
'donnees_sensibles' => [
'id' => 'donnees_sensibles',
'options' => [
true => 'Oui',
false => 'Non'
],
'label' => [
'text' => $this->Html->tag(
'abbr',
__d('fiche', 'fiche.champDonneesSensibles'),
[
'data-content' => nl2br(__d('fiche', 'fiche.champDonneesSensiblesDefinition')),
'class' => 'popoverText'
]
)
],
'class' => 'transformSelect form-control',
'required' => true,
'empty' => false,
'data-placeholder' => ' ',
'default' => false
]
]);
?>
WebcilForm->input('WebdpoFiche.finaliteprincipale', [
'id' => 'finaliteprincipale',
'label' => [
'text' => $this->Html->tag(
'abbr',
__d('fiche', 'fiche.champFinaliteprincipale'),
[
'data-content' => nl2br(__d('fiche', 'fiche.champFinaliteprincipaleDefinition')),
'class' => 'popoverText'
]
)
],
'type' => 'textarea',
'required' => true,
'placeholder' => false
]);
?>
WebcilForm->input('obligation_pia', [
'id' => 'obligation_pia',
'options' => [
true => 'Oui',
false => 'Non'
],
'class' => 'transformSelect form-control',
'required' => true,
'readonly' => true,
'disabled' => true,
'empty' => true,
'placeholder' => false,
'data-placeholder' => ' '
]);
?>
WebcilForm->hidden('obligation_pia', [
'id' => 'obligation_pia',
'value' => null
]);
}
?>
WebcilForm->input('realisation_pia', [
'id' => 'realisation_pia',
'options' => [
true => 'Oui',
false => 'Non'
],
'label' => [
'text' => $this->Html->tag(
'abbr',
__d('fiche', 'fiche.champRealisationPia'),
[
'data-content' => nl2br(__d('fiche', 'fiche.champRealisationPiaDefinition')),
'class' => 'popoverText'
]
)
],
'class' => 'transformSelect form-control',
'required' => true,
'empty' => $empty,
'placeholder' => false,
'data-placeholder' => ' '
]);
?>
WebcilForm->input('depot_pia', [
'id' => 'depot_pia',
'options' => [
true => 'Oui',
false => 'Non'
],
'class' => 'transformSelect form-control',
'required' => true,
'empty' => true,
'placeholder' => false,
'data-placeholder' => ' '
]);
?>
WebcilForm->input('coresponsable', [
'id' => 'coresponsable',
'options' => [
true => 'Oui',
false => 'Non'
],
'label' => [
'text' => $this->Html->tag(
'abbr',
__d('fiche', 'fiche.champCoresponsable'),
[
'data-content' => nl2br(__d('fiche', 'fiche.champCoresponsableDefinition')),
'class' => 'popoverText'
]
)
],
'class' => 'transformSelect form-control',
'required' => true,
'empty' => false,
'data-placeholder' => ' ',
'default' => false
]);
?>
WebcilForm->input('soustraitance', [
'id' => 'soustraitance',
'label' => [
'text' => $this->Html->tag(
'abbr',
$libelleFieldSoustraitance,
[
'data-content' => nl2br(__d('fiche', 'fiche.champSoustraitanceDefinition')),
'class' => 'popoverText'
]
)
],
'options' => [
true => 'Oui',
false => 'Non'
],
'class' => 'transformSelect form-control',
'required' => true,
'empty' => false,
'data-placeholder' => ' ',
'default' => false
]);
?>