[tuxdroid-svn] r4961 - in software_suite_v3/smart-core/smart-server/trunk/data/web_interface: deve
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-07-01 10:25:27
|
Author: remi
Date: 2009-07-01 12:24:12 +0200 (Wed, 01 Jul 2009)
New Revision: 4961
Modified:
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/devel/xsl/alert.xsl
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/alert.xsl
Log:
* Fixed radio buttons behavior for the week part showing in the web interfaces.
Modified: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/devel/xsl/alert.xsl
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/data/web_interface/devel/xsl/alert.xsl 2009-07-01 10:10:27 UTC (rev 4960)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/devel/xsl/alert.xsl 2009-07-01 10:24:12 UTC (rev 4961)
@@ -301,25 +301,33 @@
<xsl:attribute name="type">radio</xsl:attribute>
<xsl:attribute name="class">checkbox</xsl:attribute>
<xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_weekMask_weekpart</xsl:attribute>
- <xsl:attribute name="name">week</xsl:attribute>
+ <xsl:attribute name="name">week_<xsl:value-of select="name"/></xsl:attribute>
<xsl:attribute name="value">0</xsl:attribute>
- <xsl:attribute name="checked">true</xsl:attribute>
+ <xsl:if test="$week_mask/day_0 = 'True' and $week_mask/day_1 = 'True' and $week_mask/day_2 = 'True' and $week_mask/day_3 = 'True' and $week_mask/day_4 = 'True' and $week_mask/day_5 = 'True' and $week_mask/day_6 = 'True'">
+ <xsl:attribute name="checked">true</xsl:attribute>
+ </xsl:if>
</xsl:element> All days
<xsl:element name="br"></xsl:element>
<xsl:element name="input">
<xsl:attribute name="type">radio</xsl:attribute>
<xsl:attribute name="class">checkbox</xsl:attribute>
<xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_weekMask_weekpart</xsl:attribute>
- <xsl:attribute name="name">week</xsl:attribute>
+ <xsl:attribute name="name">week_<xsl:value-of select="name"/></xsl:attribute>
<xsl:attribute name="value">1</xsl:attribute>
+ <xsl:if test="$week_mask/day_0 = 'True' and $week_mask/day_1 = 'True' and $week_mask/day_2 = 'True' and $week_mask/day_3 = 'True' and $week_mask/day_4 = 'True' and $week_mask/day_5 = 'False' and $week_mask/day_6 = 'False'">
+ <xsl:attribute name="checked">true</xsl:attribute>
+ </xsl:if>
</xsl:element> Working days
<xsl:element name="br"></xsl:element>
<xsl:element name="input">
<xsl:attribute name="type">radio</xsl:attribute>
<xsl:attribute name="class">checkbox</xsl:attribute>
<xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_weekMask_weekpart</xsl:attribute>
- <xsl:attribute name="name">week</xsl:attribute>
+ <xsl:attribute name="name">week_<xsl:value-of select="name"/></xsl:attribute>
<xsl:attribute name="value">2</xsl:attribute>
+ <xsl:if test="$week_mask/day_0 = 'False' and $week_mask/day_1 = 'False' and $week_mask/day_2 = 'False' and $week_mask/day_3 = 'False' and $week_mask/day_4 = 'False' and $week_mask/day_5 = 'True' and $week_mask/day_6 = 'True'">
+ <xsl:attribute name="checked">true</xsl:attribute>
+ </xsl:if>
</xsl:element> Weekend
</xsl:if>
<!-- Week mask type is 'exclusive' show selecter -->
Modified: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/alert.xsl
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/alert.xsl 2009-07-01 10:10:27 UTC (rev 4960)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/alert.xsl 2009-07-01 10:24:12 UTC (rev 4961)
@@ -301,25 +301,34 @@
<xsl:attribute name="type">radio</xsl:attribute>
<xsl:attribute name="class">checkbox</xsl:attribute>
<xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_weekMask_weekpart</xsl:attribute>
- <xsl:attribute name="name">week</xsl:attribute>
+ <xsl:attribute name="name">week_<xsl:value-of select="name"/></xsl:attribute>
<xsl:attribute name="value">0</xsl:attribute>
<xsl:attribute name="checked">true</xsl:attribute>
+ <xsl:if test="$week_mask/day_0 = 'True' and $week_mask/day_1 = 'True' and $week_mask/day_2 = 'True' and $week_mask/day_3 = 'True' and $week_mask/day_4 = 'True' and $week_mask/day_5 = 'True' and $week_mask/day_6 = 'True'">
+ <xsl:attribute name="checked">true</xsl:attribute>
+ </xsl:if>
</xsl:element> <xsl:value-of select="../../../translations/all_days"/>
<xsl:element name="br"></xsl:element>
<xsl:element name="input">
<xsl:attribute name="type">radio</xsl:attribute>
<xsl:attribute name="class">checkbox</xsl:attribute>
<xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_weekMask_weekpart</xsl:attribute>
- <xsl:attribute name="name">week</xsl:attribute>
+ <xsl:attribute name="name">week_<xsl:value-of select="name"/></xsl:attribute>
<xsl:attribute name="value">1</xsl:attribute>
+ <xsl:if test="$week_mask/day_0 = 'True' and $week_mask/day_1 = 'True' and $week_mask/day_2 = 'True' and $week_mask/day_3 = 'True' and $week_mask/day_4 = 'True' and $week_mask/day_5 = 'False' and $week_mask/day_6 = 'False'">
+ <xsl:attribute name="checked">true</xsl:attribute>
+ </xsl:if>
</xsl:element> <xsl:value-of select="../../../translations/working_days"/>
<xsl:element name="br"></xsl:element>
<xsl:element name="input">
<xsl:attribute name="type">radio</xsl:attribute>
<xsl:attribute name="class">checkbox</xsl:attribute>
<xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_weekMask_weekpart</xsl:attribute>
- <xsl:attribute name="name">week</xsl:attribute>
+ <xsl:attribute name="name">week_<xsl:value-of select="name"/></xsl:attribute>
<xsl:attribute name="value">2</xsl:attribute>
+ <xsl:if test="$week_mask/day_0 = 'False' and $week_mask/day_1 = 'False' and $week_mask/day_2 = 'False' and $week_mask/day_3 = 'False' and $week_mask/day_4 = 'False' and $week_mask/day_5 = 'True' and $week_mask/day_6 = 'True'">
+ <xsl:attribute name="checked">true</xsl:attribute>
+ </xsl:if>
</xsl:element> <xsl:value-of select="../../../translations/weekend"/>
</xsl:if>
<!-- Week mask type is 'exclusive' show selecter -->
|