mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
Remove required from all admin add/edit form inputs
- Skip required-field validation for orientation/ap/finality/licence/jury in admin add+edit
This commit is contained in:
@@ -8,8 +8,10 @@
|
||||
* 3. TFE (obligatoire)
|
||||
* 4. Annexes éventuelles (optionnel)
|
||||
*
|
||||
* Variables consumed: none beyond APP_ROOT (always available).
|
||||
* Variables consumed:
|
||||
* bool $adminMode — when true, no field is required (admin add/edit mode).
|
||||
*/
|
||||
$adminMode = $adminMode ?? false;
|
||||
?>
|
||||
<fieldset>
|
||||
<legend>Fichiers</legend>
|
||||
@@ -27,7 +29,7 @@
|
||||
$label = 'Note d\'intention :';
|
||||
$accept ='.pdf';
|
||||
$hint = 'Format PDF uniquement.';
|
||||
$required = true;
|
||||
$required = !$adminMode;
|
||||
include APP_ROOT . '/templates/partials/form/file-field.php';
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user