_PolicyLayout¶
Full BOL layout for policy pages: page header, top menu, side menu, policy header bar, and the context form. Consumers select it as the Layout of pages derived from BolPolicyModel.
Purpose¶
- Compose the BOL chrome with the policy header and the context textbox, which is rendered as a text input when
ChangeContextPrivilegeis set and as a hidden input otherwise (presentation only, not server-side authorization) (BR-BOLMIDDLEWARE-019). - Show the error view when the menu is missing (BR-BOLMIDDLEWARE-016).
Context¶
- Namespace:
BolMiddleware.Pages.Shared - Assembly/package:
BolMiddleware
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| Layout view | Pages/Shared/_PolicyLayout.cshtml |
Razor layout bound to BolPolicyModel that renders the header, menus, policy header, context form frmWebContext, and the page body. |
| Optional partials | MiddlewareIncludes/siteStyles, siteHeaderScripts, siteBodyPartial, siteHeaderBarPartial |
Consumer-supplied partials the layout includes when present; they are not part of this library. |
Behavioral notes¶
- Loads the font stylesheet from a CDN and Bootstrap 5.3.2 with a subresource integrity hash, plus
_content/BolMiddlewareassets.
Constraints and usage notes¶
- The page model must derive from
BolPolicyModel.
Sources¶
- src/BolMiddleware/Pages/Shared/_PolicyLayout.cshtml