Components › Overlays & dialogs › Dialog › Drawer form

Drawer form

deprecated
Deprecated — use Form-less dialog (dialog family) — first case: „Nový kontakt", proposal /preview/_navrhy/ramec.html?b=navrh&v=osoba instead. AD 14 September 2026 (OV-2): „drawer form už na nic nepoužíváme, nebudeme používat" — replaced by the form-less dialog. Code on main still has 20 <DrawerForm> call sites in 17 files (Lidé, Firmy, Banka, Majetek, Uživatelé, Zasedačky, Pokladna, Rozpočty, Telefony, Týmy, Vozidla, Dokumenty, Šanony, AI zaměstnanci, provize, náklady) — migration is open work, not done. Existing usages stay until they are migrated; do not build anything new on it.

Deprecated — create/edit forms move to the form-less dialog (e.g. „Nový kontakt"). The side panel with a field form is no longer used for new work.

Used in 18 files · 13 areas · 85× — components/deal, components/mail, components/orders, components/products, components/projects, pages/AiZamestnanciPage …

Default

components--drawer-form--defaultOpen standalone ↗Code

Variants

create form — the primary action carries the verb („Vytvořit“), not „OK“
short form — the drawer keeps its width whatever the number of fields
components--drawer-form--variantsOpen standalone ↗Code

States

not ready — the form is empty, so the primary action is off (type a name and it turns on)
saving — the primary action shows „Ukládám…“ and is not clickable again
failed — one sentence at the end of the form; everything the user typed stays where it was
components--drawer-form--statesOpen standalone ↗Code

Composition

Výpis kontaktů — the drawer takes the right-hand slot of the app shell (`.as-drawer`); the list stays readable next to it instead of being covered by a modal.
components--drawer-form--compositionOpen standalone ↗Code