Repository navigation
Release v2.13.0
v2.13.0
Changelog
Locale tabs for translation entities, field_ groups and TranslatableMapType, rendered through UiKit 2.5; checkbox_row profile chrome and profile help_attr. See UPGRADING.
Added
- Locale tabs, three shapes (
locale_tabsoption and_locale_tabs.html.twig):entries— a list of translation
entities (CollectionType whose entries have alocalechild: the locale becomes a hidden input, the other children
fill the panel, entry errors inside it);fields—field_<locale>groups (fields: [...],
pattern: '{field}_{locale}', only those children are rendered);children— the 2.7 shape.modeis detected. TranslatableMapType: a JSON{locale: text}map as one field per locale with tabs on by default
(locales,default_locale,required_locales→ required + NotBlank,entry_type,entry_options,
remove_empty,input: array|json); unknown locales in the map are kept on submit.- UiKit renderer: with nowo-tech/ui-kit-bundle ^2.5 installed (suggested, not required) the tabs render
through UiKit'slocale_tabspartial (no-JS stacked fieldsets, WAI-ARIA keyboard, browser validation opens the
hidden panel,nowo-ui:tabs:change, Live Component safe);ui_kit: falseor
nowo_form_kit.locale_tabs.renderer: nativekeeps the neutral markup. Twig functions
nowo_form_kit_locale_tabs()/nowo_form_kit_ui_kit_locale_tabs()(LocaleTabsTwigExtension). required_locales(marker*, distinct from the default★),aria-invalid="true"on invalid widgets,
screen-reader text for default / required / invalid tabs, translated tab list label (locale_tabs.*in
NowoFormKitBundlefor en, es, de, fr, it, nl, pt),lang/dirper panel, rovingtabindex.- Configuration
nowo_form_kit.locale_tabs(locales,default_localefrom the framework by default,renderer,
form_theme); the locale tabs form theme is registered intwig.form_themesautomatically. - Profile-level
help_attr(shorthand fordefaults.help_attr) andcss_framework.
Changed
static_blocks.html.twigcheckbox_row: the Bootstrap chrome (mb-3fallback,form-check,
form-check-input,form-check-label) only when the default profile's framework (profilecss_framework, else
the rootcss_framework) is Bootstrap; otherwise the row uses the profile'sdefaults.row_attr.class
(CheckboxRowExtension). Unchanged for the defaultcss_framework: bootstrap.- Locale tabs: default marker
★(was*, now the required marker), screen-reader text(Spanish, default language)instead of— Spanish,_locale_tabs.html.twigneeds the bundle's Twig extension (registered
automatically).
Full Changelog: v2.12.0...v2.13.0