modalHeader.ftl

 1   <#-- Macro: modalHeader
 2   Description: Generates the header content for a Bootstrap modal dialog, with optional parameters for the title level, title text, ID, and additional attributes.
 3   Parameters:
 4   - titleLevel (string, optional): the HTML heading level for the modal title (default is "h4").
 5   - modalTitle (string, optional): the text content of the modal title.
 6   - id (string, optional): the ID of the modal header.
 7   - params (string, optional): additional attributes to add to the modal header, in the form of a string of HTML attributes.
 8   -->
 9   <#macro modalHeader titleLevel='h4' modalTitle='' id='' params=''>
 10   <div class="modal-header"<#if id!=''> id="${id}"</#if><#if params!=''> ${params}</#if>>
 11   	<${titleLevel} class="modal-title">${modalTitle}</${titleLevel}>
 12   	<#nested>
 13   	<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="#i18n{portal.admin_page.buttonClosed}"></button>
 14   </div>
 15   </#macro>