pageHeader.ftl

 1   <#--
 2   Macro: pageHeader
 3   
 4   Description: Generates a header section for a page with an optional title and description. Includes a container for additional tools.
 5   
 6   Parameters:
 7   - id (string, optional): the ID of the header element.
 8   - title (string, optional): the title of the page header.
 9   - description (string, optional): the description of the page header.
 10   -->
 11   <#macro pageHeader id='' title='' titleClass='' description='' class='col-md-4 col-lg-6' toolsClass='' responsiveHeader=false params='' deprecated...>
 12   <@deprecatedWarning args=deprecated />
 13   <div id="page-header" class="row g-2 align-items-center<#if responsiveHeader>flex-column flex-md-row</#if><#if titleClass !=''> ${titleClass!}</#if>">
 14   	<div class="col-12<#if class !=''> ${class}</#if>">
 15   		<div class="page-pretitle"></div>
 16   		<h2 class="page-title mt-2">${title}</h2>
 17   		<#if description !=''><p class="">${description}</p></#if>
 18   	</div>
 19   	<!-- Page title actions -->
 20   	<div id="page-header-tools" class="col-12 col-md-auto ms-auto d-print-none<#if toolsClass !=''> ${toolsClass}</#if>">
 21   	<#nested>
 22   	</div>
 23   </div>
 24   </#macro>