archivist: enum dropdowns on the official values, template as enum

- buildEnumControl offers only the official select values plus the
  "Ajouter une valeur…" entry; the entry opens a modal that registers
  the value through POST /api/archivist/fields/{field}/values, then
  selects it (US-37)
- the free-text fallback input is gone; a value unknown to the list
  (e.g. a pipeline proposal) appears as a temporary option registered
  by the correction or the import path
- config.jsonc declares "template" as enum so its select list is
  managed by the application and always equals the template names
This commit is contained in:
2026-11-12 09:44:57 +01:00
parent 9d7a1add12
commit a8ff31a3c5
2 changed files with 76 additions and 28 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
{ "name": "emittingCompany", "type": "text", "mandatory": true },
{ "name": "documentType", "type": "enum", "mandatory": true },
{ "name": "emissionDate", "type": "date", "mandatory": true },
{ "name": "template", "type": "text", "mandatory": false },
{ "name": "template", "type": "enum", "mandatory": false },
{ "name": "bankAccount", "type": "enum", "mandatory": false },
{ "name": "address", "type": "text", "mandatory": false },
{ "name": "reference", "type": "text", "mandatory": false }