A patch from Bruno Busco "Collapsible Field Groups with clickable title" (https://issues.apache.org/jira/browse/OFBIZ-3176) - OFBIZ-3176
in the attached patch there is a new rendering for the Group Field Title bar. I removed the table and used simple divs. Moreover the field group title is now all clickable in order to collapse expand the group. The necessary changes to all themes are also included in the patch. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833910 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -460,11 +460,16 @@ ${item.description}</div>
|
||||
</tr> </table>
|
||||
</#macro>
|
||||
<#macro renderContainerField id><div id="${id?if_exists}"/></#macro>
|
||||
|
||||
<#macro renderFieldGroupOpen style id title collapsed collapsibleAreaId collapsible expandToolTip collapseToolTip>
|
||||
<#if style?has_content || id?has_content || title?has_content>
|
||||
<div class="fieldgroup<#if style?has_content> ${style}</#if>"<#if id?has_content> id="${id}"</#if>><div class="fieldgroup-title-bar"><table><tr><td class="collapse"><#rt/>
|
||||
<#if collapsible><ul><li class="<#if collapsed>collapsed"><a onclick="javascript:toggleCollapsiblePanel(this, '${collapsibleAreaId}', '${expandToolTip}', '${collapseToolTip}');"<#else>expanded"><a onclick="javascript:toggleCollapsiblePanel(this, '${collapsibleAreaId}', '${expandToolTip}', '${collapseToolTip}');"</#if>>   </a></li></ul></#if></td><td><#rt/>
|
||||
<#if title?has_content><div class="title">${title}</div></#if></td></tr></table></div><div id="${collapsibleAreaId}" class="fieldgroup-body" <#if collapsed && collapsible> style="display: none;"</#if>>
|
||||
<#if style?has_content || id?has_content || title?has_content><div class="fieldgroup<#if style?has_content> ${style}</#if>"<#if id?has_content> id="${id}"</#if>>
|
||||
<div class="fieldgroup-title-bar">
|
||||
<#if collapsible><ul><li class="<#if collapsed>collapsed"><a onclick="javascript:toggleCollapsiblePanel(this, '${collapsibleAreaId}', '${expandToolTip}', '${collapseToolTip}');">
|
||||
<#else>expanded"><a onclick="javascript:toggleCollapsiblePanel(this, '${collapsibleAreaId}', '${expandToolTip}', '${collapseToolTip}');"></#if>
|
||||
<#if title?has_content>${title}</#if></a></li></ul>
|
||||
<#else><#if title?has_content>${title}</#if></#if><#rt/>
|
||||
</div>
|
||||
<div id="${collapsibleAreaId}" class="fieldgroup-body" <#if collapsed && collapsible> style="display: none;"</#if>>
|
||||
</#if>
|
||||
</#macro>
|
||||
<#macro renderFieldGroupClose style id title><#if style?has_content || id?has_content || title?has_content></div></div></#if></#macro>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -2035,32 +2035,30 @@ iframe.ie6_blocker {
|
||||
border: 2px solid #FF0000;
|
||||
}
|
||||
|
||||
/* ============================= */ /* ===== FieldGroup Styles ===== */
|
||||
/* ============================= */
|
||||
/* ============================= */
|
||||
/* ===== FieldGroup Styles ===== */
|
||||
/* ============================= */
|
||||
.fieldgroup-title-bar {
|
||||
border-top: 0.1em solid #DADADA;
|
||||
font-size: 1em;
|
||||
font-weight: bold;
|
||||
padding: 0.1em 0.5em 0.2em 0.5em;
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
padding: 5px 0 5px 10px;
|
||||
}
|
||||
|
||||
.fieldgroup-title-bar ul .collapsed,.fieldgroup-title-bar ul .collapsed:hover
|
||||
{
|
||||
background: url(/images/expand.gif) no-repeat center center;
|
||||
min-height: 1.1em;
|
||||
min-width: 1.1em;
|
||||
{
|
||||
background: url(/bluelight/images/bullet_toggle_plus.png) no-repeat left center;
|
||||
}
|
||||
|
||||
.fieldgroup-title-bar ul .expanded,.fieldgroup-title-bar ul .expanded:hover
|
||||
{
|
||||
background: url(/images/collapse.gif) no-repeat center center;
|
||||
min-height: 1.1em;
|
||||
min-width: 1.1em;
|
||||
{
|
||||
background: url(/bluelight/images/bullet_toggle_minus.png) no-repeat left center;
|
||||
}
|
||||
|
||||
.fieldgroup-title-bar td.collapse {
|
||||
width: 1.1em;
|
||||
cursor: default;
|
||||
.fieldgroup-title-bar a {
|
||||
cursor:pointer;
|
||||
text-decoration:none;
|
||||
padding-left: 10px;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
/* == Portlet configuration screenlet == */
|
||||
|
||||
@@ -2065,21 +2065,23 @@ padding: 0.1em 0.5em 0.2em 0.5em;
|
||||
|
||||
.fieldgroup-title-bar ul .collapsed,
|
||||
.fieldgroup-title-bar ul .collapsed:hover {
|
||||
background: url(/images/expand.gif) no-repeat center center;
|
||||
background: url(/images/expand.gif) no-repeat left center;
|
||||
min-height: 1.1em;
|
||||
min-width: 1.1em;
|
||||
}
|
||||
|
||||
.fieldgroup-title-bar ul .expanded,
|
||||
.fieldgroup-title-bar ul .expanded:hover {
|
||||
background: url(/images/collapse.gif) no-repeat center center;
|
||||
background: url(/images/collapse.gif) no-repeat left center;
|
||||
min-height: 1.1em;
|
||||
min-width: 1.1em;
|
||||
}
|
||||
|
||||
.fieldgroup-title-bar td.collapse {
|
||||
width: 1.1em;
|
||||
cursor: default;
|
||||
.fieldgroup-title-bar a {
|
||||
cursor:pointer;
|
||||
text-decoration:none;
|
||||
padding-left: 10px;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
/* == Portlet configuration screenlet == */
|
||||
|
||||
Reference in New Issue
Block a user