Afform - Switch to user-oriented breadcrumbs, move admin link to hover button
authorcolemanw <coleman@civicrm.org>
Sun, 24 Sep 2023 15:22:47 +0000 (11:22 -0400)
committercolemanw <coleman@civicrm.org>
Thu, 28 Sep 2023 18:54:57 +0000 (14:54 -0400)
commit3ee3a8829ec6ceade287e5eea9ed6d355ed7e3cc
tree9ee644771367d18aeeaa22e474f357bce20fed3b
parent99086bf34454e3e83e0f95150a774f2803a2d452
Afform - Switch to user-oriented breadcrumbs, move admin link to hover button

Before: In full-page mode, breadcrumbs were orieted toward form-building,
with links to edit the form and browse FormBuilder.

After: In full-page mode, breadcrumbs are oriented toward general users,
with links to parent-pages.

Parent pages are, by default calculated based off the route. This adds a 'title' key
in function `afform_civicrm_alterMenu` for the benefit of`CRM_Core_Menu::buildBreadcrumb`.

Alternately, if the Afform has been placed in the navigation menu, then the breadcrumb
is calculated based on the parent menu item.
CRM/Utils/System.php
ext/afform/admin/Civi/AfformAdmin/AfformAdminInjector.php [new file with mode: 0644]
ext/afform/admin/info.xml
ext/afform/core/CRM/Afform/Page/AfformBase.php
ext/afform/core/Civi/Afform/AfformMetadataInjector.php
ext/afform/core/afform.php
ext/afform/core/ang/afCore.css