svn commit: r1292662 - /ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Attributes.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1292662 - /ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Attributes.ftl

hansbak-2
Author: hansbak
Date: Thu Feb 23 06:40:38 2012
New Revision: 1292662

URL: http://svn.apache.org/viewvc?rev=1292662&view=rev
Log:
only show party attributes if they have content

Modified:
    ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Attributes.ftl

Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Attributes.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Attributes.ftl?rev=1292662&r1=1292661&r2=1292662&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Attributes.ftl (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Attributes.ftl Thu Feb 23 06:40:38 2012
@@ -22,7 +22,7 @@ under the License.
       <ul>
         <li class="h3">${uiLabelMap.PartyAttributes}</li>
         <#if security.hasEntityPermission("PARTYMGR", "_CREATE", session)>
-          <li><a href="<@ofbizUrl>editPartyAttribute?partyId=${party.partyId}</@ofbizUrl>">${uiLabelMap.CommonCreateNew}</a></li>
+          <li><a href="<@ofbizUrl>editPartyAttribute?partyId=${party.partyId?if_exists}</@ofbizUrl>">${uiLabelMap.CommonCreateNew}</a></li>
         </#if>
       </ul>
       <br class="clear"/>
@@ -39,13 +39,13 @@ under the License.
           <#list attributes as attr>
             <tr valign="middle"<#if alt_row> class="alternate-row"</#if>>
               <td>
-                ${attr.attrName}
+                ${attr.attrName?if_exists}
               </td>
               <td>
-                ${attr.attrValue}
+                ${attr.attrValue?if_exists}
               </td>
               <td class="button-col">
-                <a href="<@ofbizUrl>editPartyAttribute?partyId=${partyId}&attrName=${attr.attrName}</@ofbizUrl>">${uiLabelMap.CommonEdit}</a>
+                <a href="<@ofbizUrl>editPartyAttribute?partyId=${partyId?if_exists}&attrName=${attr.attrName?if_exists}</@ofbizUrl>">${uiLabelMap.CommonEdit}</a>
               </td>
             </tr>
             <#-- toggle the row color -->