You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/04/23 20:32:45 UTC

svn commit: r531556 - /ofbiz/trunk/applications/product/webapp/facility/includes/appheader.ftl

Author: jacopoc
Date: Mon Apr 23 11:32:45 2007
New Revision: 531556

URL: http://svn.apache.org/viewvc?view=rev&rev=531556
Log:
Updated facility main menu to use the new styles.

Modified:
    ofbiz/trunk/applications/product/webapp/facility/includes/appheader.ftl

Modified: ofbiz/trunk/applications/product/webapp/facility/includes/appheader.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/includes/appheader.ftl?view=diff&rev=531556&r1=531555&r2=531556
==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/includes/appheader.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/facility/includes/appheader.ftl Mon Apr 23 11:32:45 2007
@@ -16,26 +16,24 @@
 specific language governing permissions and limitations
 under the License.
 -->
-<#assign unselectedLeftClassName = "headerButtonLeft">
-<#assign unselectedRightClassName = "headerButtonRight">
-<#assign selectedLeftClassMap = {(page.headerItem)?default("void") : "headerButtonLeftSelected"}>
-<#assign selectedRightClassMap = {(page.headerItem)?default("void") : "headerButtonRightSelected"}>
 
-<div class="apptitle">&nbsp;${uiLabelMap.ProductFacilityManagerApplication}&nbsp;</div>
-<div class="row"> 
-  <div class="col"><a href="<@o...@ofbizUrl>" class="${selectedLeftClassMap.main?default(unselectedLeftClassName)}">${uiLabelMap.ProductMain}</a></div>
-  <div class="col"><a href="<@o...@ofbizUrl>" class="${selectedLeftClassMap.facility?default(unselectedLeftClassName)}">${uiLabelMap.ProductFacilities}</a></div> 
-  <div class="col"><a href="<@o...@ofbizUrl>" class="${selectedLeftClassMap.facilityGroup?default(unselectedLeftClassName)}">${uiLabelMap.ProductFacilityGroups}</a></div>
-  <div class="col"><a href="<@o...@ofbizUrl>" class="${selectedLeftClassMap.shipment?default(unselectedLeftClassName)}">${uiLabelMap.ProductShipments}</a></div> 
-  
-  <#if userLogin?has_content>
-    <div class="col-right"><a href="<@o...@ofbizUrl>" class="${selectedRightClassMap.logout?default(unselectedRightClassName)}">${uiLabelMap.CommonLogout}</a></div>
-  <#else>
-    <div class="col-right"><a href='<@o...@ofbizUrl>' class='${selectedRightClassMap.login?default(unselectedRightClassName)}'>${uiLabelMap.CommonLogin}</a></div>
-  </#if>
-  <#if facilityId?has_content>
-    <div class="col-right"><a href="<@o...@ofbizUrl>" class="${selectedRightClassMap.reports?default(unselectedRightClassName)}">${uiLabelMap.CommonReports}</a></div>  
-  </#if>
-  <div class="col-fill">&nbsp;</div>
-</div>
+<#assign selected = headerItem?default("void")>
 
+<div id="app-navigation">
+  <h2>${uiLabelMap.ProductFacilityManagerApplication}</h2>
+  <ul>
+      <li<#if selected = "main"> class="selected"</#if>><a href="<@o...@ofbizUrl>">${uiLabelMap.ProductMain}</a></li>
+      <li<#if selected = "facility"> class="selected"</#if>><a href="<@o...@ofbizUrl>">${uiLabelMap.ProductFacilities}</a></li>
+      <li<#if selected = "facilityGroup"> class="selected"</#if>><a href="<@o...@ofbizUrl>">${uiLabelMap.ProductFacilityGroups}</a></li>
+      <li<#if selected = "shipment"> class="selected"</#if>><a href="<@o...@ofbizUrl>">${uiLabelMap.ProductShipments}</a></li>
+    <#if facilityId?has_content>
+      <li<#if selected = "reports"> class="selected"</#if>><a href="<@o...@ofbizUrl>">${uiLabelMap.CommonReports}</a></li>
+    </#if>
+    <#if userLogin?has_content>
+      <li class="opposed"><a href="<@o...@ofbizUrl>">${uiLabelMap.CommonLogout}</a></li>
+    <#else>
+      <li class="opposed"><a href="<@o...@ofbizUrl>">${uiLabelMap.CommonLogin}</a></li>
+    </#if>
+  </ul>
+  <br class="clear" />
+</div>