Files
petriandClaude Opus 5.5 679bf57eb4 Vaihe 1/3: pohjatiedot (palveluyksiköt, palvelut ja työtehtävät)
- Uusi catalog-moduuli: palveluyksikkö → (palvelu) → työtehtävä ilman hintoja.
- Pohjatiedot-sivu /catalog/ pääkäyttäjälle ja johdolle (oikeus catalog.manage):
  lisäys ja muokkaus dialogissa, Siirrä ylös / Siirrä alas, käytöstä poisto ja
  käyttöön otto. Fokus ja aria-live-ilmoitus jokaisen muutoksen jälkeen.
- Rivejä ei poisteta. Käytöstä poistetun yläkohdan alla olevat rivit säilyttävät
  oman tilansa, mutta eivät ole valittavissa. Nimi on yksilöllinen samalla
  tasolla kirjainkoosta riippumatta.
- Työtehtävän voi siirtää saman yksikön toiseen palveluun tai suoraan yksikön alle.
- Luvun 11.1 lista data-migraationa (0002_seed), jos taulut ovat tyhjiä.
- CatalogQueries: work_type_options, active_service_units ja get_work_type
  tehtäviä ja tuntikirjausta varten.
- Import-linter-sopimukset, suomennokset, yksikkö-, integraatio- ja selaintestit.
- Päivitetty CLAUDE.md ja määrittelyn kohta 16.3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-29 14:07:41 +02:00

15 lines
782 B
Python

from django.utils.translation import gettext_lazy as _
ERROR_MESSAGES = {
"invalid_catalog_name": _("Enter a name (at most 100 characters)."),
"service_unit_name_taken": _("A service unit with this name already exists."),
"service_name_taken": _("This service unit already has a service with this name."),
"work_type_name_taken": _("There is already a work type with this name on this level."),
"service_unit_not_found": _("The service unit was not found."),
"service_not_found": _("The service was not found."),
"work_type_not_found": _("The work type was not found."),
"service_not_in_unit": _("Choose a service of the same service unit."),
"cannot_move": _("The row cannot be moved further."),
"*": _("The change could not be saved."),
}