feat(12.2-03): add hasMany relation contracts, relation forms and child create
- RelationContract gains Kind (empty is belongsToMany) and ForeignKey, with kind-aware boot checks
- manage.form, view.form and pivot.form compile against the related or pivot model; $/ paths resolve inside the plugin
- view toolbarButtons accept create|update|delete|link|unlink, each the capability of its routes
- POST .../relations/{name}/records creates a child through the manage form; the server sets the hasMany key
- relation schema carries kind, deferrable and the localized forms; 17 new relation message keys in en and pl
This commit is contained in:
@@ -152,3 +152,24 @@ messages:
|
||||
many: "Odłączono :count rekordów"
|
||||
other: "Odłączono :count rekordu"
|
||||
empty: Brak powiązanych rekordów.
|
||||
create: Nowy rekord
|
||||
create_title: Nowy rekord
|
||||
update_title: Edycja rekordu
|
||||
preview_title: Podgląd rekordu
|
||||
created: Utworzono rekord
|
||||
updated: Zapisano rekord
|
||||
delete_selected: Usuń zaznaczone
|
||||
delete_confirm: "Usunąć zaznaczone (:count)? Tej operacji nie można cofnąć."
|
||||
delete_one_confirm: Usunąć ten rekord? Tej operacji nie można cofnąć.
|
||||
deleted:
|
||||
one: "Usunięto :count rekord"
|
||||
few: "Usunięto :count rekordy"
|
||||
many: "Usunięto :count rekordów"
|
||||
other: "Usunięto :count rekordu"
|
||||
pivot_title: Szczegóły powiązania
|
||||
pivot_saved: Zapisano szczegóły powiązania
|
||||
edit_pivot: "Edytuj szczegóły powiązania: :name"
|
||||
create_submit: Utwórz rekord
|
||||
update_submit: Zapisz rekord
|
||||
pivot_submit: Zapisz szczegóły powiązania
|
||||
link_submit: Dodaj powiązanie
|
||||
|
||||
Reference in New Issue
Block a user