This is an automated email from the ASF dual-hosted git repository.
mridulpathak pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release24.09 by this push:
new 4a37946273 Move order PDF link to header actions for 24.09 (#1179)
4a37946273 is described below
commit 4a37946273e288d849663fb69321a8c055105587
Author: toaditi <[email protected]>
AuthorDate: Fri May 8 19:18:31 2026 +0530
Move order PDF link to header actions for 24.09 (#1179)
## Summary
- Backport the order header PDF button placement change to the 24.09
release line.
- Move the order PDF link out of the order title text and into the
existing order header action list.
- Keep order title links inline in the Helveticus screenlet header so
the order number remains on the same line.
##Issue
- https://issues.apache.org/jira/browse/OFBIZ-13390
## Why
The Helveticus title-bar link styling renders heading links as block
elements, which caused the order number and PDF link to wrap awkwardly
in the order view header.
## Validation
- git diff --check
---
applications/order/template/order/OrderInfo.ftl | 3 ++-
themes/helveticus/webapp/helveticus/helveticus-main-theme.less | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/applications/order/template/order/OrderInfo.ftl
b/applications/order/template/order/OrderInfo.ftl
index d0910986d1..4c1ec9218d 100644
--- a/applications/order/template/order/OrderInfo.ftl
+++ b/applications/order/template/order/OrderInfo.ftl
@@ -24,9 +24,10 @@ under the License.
<#assign externalOrder = "(" + orderHeader.externalId + ")"/>
</#if>
<#assign orderType = orderHeader.getRelatedOne("OrderType",
false)/>
- <li class="h3"> ${(orderType.get("description",
locale))?default(uiLabelMap.OrderOrder)} ${uiLabelMap.CommonNbr} <a
href="<@ofbizUrl>orderview?orderId=${orderId}</@ofbizUrl>">${orderId}</a>
${externalOrder!} [ <a
href="<@ofbizUrl>order.pdf?orderId=${orderId}</@ofbizUrl>"
target="_blank">${uiLabelMap.CommonPdf}</a> ]</li>
+ <li class="h3"> ${(orderType.get("description",
locale))?default(uiLabelMap.OrderOrder)} ${uiLabelMap.CommonNbr} <a
href="<@ofbizUrl>orderview?orderId=${orderId}</@ofbizUrl>">${orderId}</a>
${externalOrder!}</li>
<div class="basic-nav">
<ul>
+ <li><a
href="<@ofbizUrl>order.pdf?orderId=${orderId}</@ofbizUrl>"
target="_blank">${uiLabelMap.CommonPdf}</a></li>
<#if "ORDER_APPROVED" == currentStatus.statusId && "SALES_ORDER"
== orderHeader.orderTypeId>
<li><a
href="javascript:document.PrintOrderPickSheet.submit()">${uiLabelMap.FormFieldTitle_printPickSheet}</a>
<form name="PrintOrderPickSheet" method="post"
action="<@ofbizUrl>orderPickSheet.pdf</@ofbizUrl>" target="_BLANK">
diff --git a/themes/helveticus/webapp/helveticus/helveticus-main-theme.less
b/themes/helveticus/webapp/helveticus/helveticus-main-theme.less
index d686e8e9ec..6f8303e5fe 100644
--- a/themes/helveticus/webapp/helveticus/helveticus-main-theme.less
+++ b/themes/helveticus/webapp/helveticus/helveticus-main-theme.less
@@ -761,6 +761,7 @@ a.buttontext {
}
}
}
+ h1 a, .h1 a, h2 a, .h2 a, h3 a, .h3 a { display: inline; }
}
.screenlet-body {