You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ed...@apache.org on 2005/04/19 15:59:29 UTC
svn commit: r161888 -
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/asset.xsl
Author: edith
Date: Tue Apr 19 06:59:28 2005
New Revision: 161888
URL: http://svn.apache.org/viewcvs?view=rev&rev=161888
Log:
Thanks to Simon Litwan. Another minor change in the design. Hide formularfields of the existing asset section if the asset library is empty
Modified:
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/asset.xsl
Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/asset.xsl
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/asset.xsl?view=diff&r1=161887&r2=161888
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/asset.xsl (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/asset.xsl Tue Apr 19 06:59:28 2005
@@ -160,7 +160,7 @@
<td class="lenya-form-caption"><i18n:text>Caption</i18n:text>:</td><td><input class="lenya-form-element" type="text" name="properties.insert.asset.caption" value=""/></td>
</tr>
<tr>
- <td class="lenya-form-caption"><i18n:text>Link</i18n:text>:</td><td><input class="lenya-form-element" type="text" name="properties.insert.asset.link"/><br/>External links have to start with 'http://', internal links have to start with '/'</td>
+ <td class="lenya-form-caption" style="vertical-align:top"><i18n:text>Link</i18n:text>:</td><td><input class="lenya-form-element" type="text" name="properties.insert.asset.link"/><br/>External links have to start with 'http://', internal links have to start with '/'</td>
</tr>
</xsl:if>
<tr><td> </td></tr>
@@ -203,9 +203,11 @@
<input type="hidden" name="properties.insert.asset.language" value="{/lenya-info:info/lenya-info:assets/lenya-info:language}"/>
<table class="lenya-table-noborder">
- <xsl:if test="not(lenya-info:asset)">
+ <xsl:choose>
+ <xsl:when test="not(lenya-info:asset)">
<tr><td colspan="5" class="lenya-form-caption"><i18n:text>No assets available</i18n:text></td></tr>
- </xsl:if>
+ </xsl:when>
+ <xsl:otherwise>
<tr>
<td class="lenya-form-caption"><i18n:text>Title</i18n:text>:</td>
<td colspan="4">
@@ -222,7 +224,7 @@
</td>
</tr>
<tr>
- <td class="lenya-form-caption"><i18n:text>Link</i18n:text>:</td>
+ <td class="lenya-form-caption" style="vertical-align:top"><i18n:text>Link</i18n:text>:</td>
<td colspan="4">
<input class="lenya-form-element" type="text" name="properties.insert.asset.link"/>
<br/>
@@ -238,6 +240,8 @@
<input i18n:attr="value" type="button" onClick="location.href='{/lenya-info:info/lenya-info:assets/lenya-info:request-uri}?lenya.usecase=checkin&lenya.step=checkin&backup=false';" value="Cancel"/>
</td>
</tr>
+ </xsl:otherwise>
+ </xsl:choose>
</table>
<!--
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org