+
{t('editor.vertebra.new')}
+
+ set({ code })}
+ />
+ set({ fr })}
+ />
+ set({ en })}
+ />
+ set({ count })}
+ />
+ set({ min, max })}
+ />
+
+ {edit.fieldError('form') && (
+
+ {edit.fieldError('form')}
+
+ )}
+
+ {t('editor.vertebra.add')}
+
+
+ )
+}
diff --git a/apps/app/src/components/editor/vertebrae/RegionRow.tsx b/apps/app/src/components/editor/vertebrae/RegionRow.tsx
new file mode 100644
index 00000000..9a23d0b0
--- /dev/null
+++ b/apps/app/src/components/editor/vertebrae/RegionRow.tsx
@@ -0,0 +1,176 @@
+import { useState } from 'react'
+import type { VertebralRegion } from '@faunosteo/core-wasm/types'
+import ActionButton from '@/components/editor/fields/ActionButton'
+import MoveButtons from '@/components/editor/fields/MoveButtons'
+import ReadOnlyValue from '@/components/editor/fields/ReadOnlyValue'
+import TextField from '@/components/editor/fields/TextField'
+import { isBlank } from '@/editor/sheetDocument'
+import { useEditCommand } from '@/editor/useEditCommand'
+import type { Locale } from '@/i18n/types'
+import { useT } from '@/i18n/useT'
+import RangeFields from './RangeFields'
+import { parseRange, wholeNumber } from './numbers'
+
+const textOf = (value: number | undefined): string =>
+ value === undefined ? '' : String(value)
+
+/** One vertebral region: the code is read-only after creation, the rest commits per field. */
+export default function RegionRow({
+ region,
+ index,
+ count,
+ readOnly,
+ onDelete,
+}: {
+ region: VertebralRegion
+ index: number
+ count: number
+ readOnly: boolean
+ onDelete: () => void
+}) {
+ const t = useT()
+ const edit = useEditCommand()
+ const key = { kind: 'region', code: region.code } as const
+ const send = (field: string, patch: Partial