mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
refactor form structure per new spec + fix
- split jury into interne/externe/ULB, - remove president from student form, - add language_autre, - split duration into pages+minutes+annexes, - move licence to degrés d'ouverture with CC2r, - add license_custom, - filter PACS from student AP list, - editable généralités help block, - Libre toggle per settings Fix: - missing comma after cc4r column in schema.sql - remove duplicate form footer from partage template - remove couverture from student files fieldset; add promoteur ULB conditional disable via JS on Approfondi - promoteur ULB: remove 'si applicable', make required when visible
This commit is contained in:
@@ -8,9 +8,7 @@
|
||||
* array $orientations — options for the orientation select.
|
||||
* array $apPrograms — options for the AP select.
|
||||
* array $finalityTypes — options for the finality select.
|
||||
* array $languages — options for the language checkbox list.
|
||||
* array $formatTypes — options for the format checkbox list.
|
||||
* array $formData — raw form data (used for checkbox checked state).
|
||||
* array $formData — raw form data (used for selected state).
|
||||
*/
|
||||
|
||||
$oldFn = $oldFn ?? (function_exists('old') ? 'old' : fn($k, $d = '') => $d);
|
||||
@@ -46,17 +44,6 @@ $formData = $formData ?? [];
|
||||
$attrs = $withAutofocusFn('finality');
|
||||
include APP_ROOT . '/templates/partials/form/select-field.php';
|
||||
?>
|
||||
|
||||
<?php $name = 'languages'; $label = 'Langue(s) :'; $options = $languages; $checked = $formData['languages'] ?? []; $required = true; include APP_ROOT . '/templates/partials/form/checkbox-list.php'; ?>
|
||||
<?php $name = 'formats'; $label = 'Format(s) :'; $options = $formatTypes; $checked = $formData['formats'] ?? []; include APP_ROOT . '/templates/partials/form/checkbox-list.php'; ?>
|
||||
|
||||
<?php
|
||||
$name = 'tag'; $label = 'Mots-clés :'; $value = $oldFn('tag');
|
||||
$placeholder = 'sociologie, anthropologie, ...';
|
||||
$hint = 'Séparez par des virgules. Max 10 mots-clés.';
|
||||
$attrs = $withAutofocusFn('tag');
|
||||
include APP_ROOT . '/templates/partials/form/text-field.php';
|
||||
?>
|
||||
</fieldset>
|
||||
<?php
|
||||
unset($oldFn, $withAutofocusFn);
|
||||
|
||||
Reference in New Issue
Block a user