Changeset 3201

Show
Ignore:
Timestamp:
03/02/11 11:04:09
Author:
johnsa
Message:

user client: add white space to recurring event text in event form

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • releases/bedework-3.7/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/eventForm.xsl

    r3149 r3201  
    855855                <xsl:text> </xsl:text> 
    856856                <xsl:choose> 
    857                   <xsl:when test="form/recurrence/freq = 'HOURLY'"><xsl:copy-of select="$bwStr-AEEF-Hour"/></xsl:when> 
    858                   <xsl:when test="form/recurrence/freq = 'DAILY'"><xsl:copy-of select="$bwStr-AEEF-Day"/></xsl:when> 
    859                   <xsl:when test="form/recurrence/freq = 'WEEKLY'"><xsl:copy-of select="$bwStr-AEEF-Week"/></xsl:when> 
    860                   <xsl:when test="form/recurrence/freq = 'MONTHLY'"><xsl:copy-of select="$bwStr-AEEF-Month"/></xsl:when> 
    861                   <xsl:when test="form/recurrence/freq = 'YEARLY'"><xsl:copy-of select="$bwStr-AEEF-Year"/></xsl:when> 
     857                  <xsl:when test="form/recurrence/freq = 'HOURLY'"><xsl:copy-of select="$bwStr-AEEF-Hour"/><xsl:text> </xsl:text></xsl:when> 
     858                  <xsl:when test="form/recurrence/freq = 'DAILY'"><xsl:copy-of select="$bwStr-AEEF-Day"/><xsl:text> </xsl:text></xsl:when> 
     859                  <xsl:when test="form/recurrence/freq = 'WEEKLY'"><xsl:copy-of select="$bwStr-AEEF-Week"/><xsl:text> </xsl:text></xsl:when> 
     860                  <xsl:when test="form/recurrence/freq = 'MONTHLY'"><xsl:copy-of select="$bwStr-AEEF-Month"/><xsl:text> </xsl:text></xsl:when> 
     861                  <xsl:when test="form/recurrence/freq = 'YEARLY'"><xsl:copy-of select="$bwStr-AEEF-Year"/><xsl:text> </xsl:text></xsl:when> 
    862862                </xsl:choose> 
    863863                <xsl:text> </xsl:text> 
     
    869869                    <xsl:choose> 
    870870                      <xsl:when test="@val='1'"> 
    871                         <xsl:copy-of select="$bwStr-AEEF-TheFirst"/> 
     871                        <xsl:copy-of select="$bwStr-AEEF-TheFirst"/><xsl:text> </xsl:text> 
    872872                      </xsl:when> 
    873873                      <xsl:when test="@val='2'"> 
    874                         <xsl:copy-of select="$bwStr-AEEF-TheSecond"/> 
     874                        <xsl:copy-of select="$bwStr-AEEF-TheSecond"/><xsl:text> </xsl:text> 
    875875                      </xsl:when> 
    876876                      <xsl:when test="@val='3'"> 
    877                         <xsl:copy-of select="$bwStr-AEEF-TheThird"/> 
     877                        <xsl:copy-of select="$bwStr-AEEF-TheThird"/><xsl:text> </xsl:text> 
    878878                      </xsl:when> 
    879879                      <xsl:when test="@val='4'"> 
    880                         <xsl:copy-of select="$bwStr-AEEF-TheFourth"/> 
     880                        <xsl:copy-of select="$bwStr-AEEF-TheFourth"/><xsl:text> </xsl:text> 
    881881                      </xsl:when> 
    882882                      <xsl:when test="@val='5'"> 
    883                         <xsl:copy-of select="$bwStr-AEEF-TheFifth"/> 
     883                        <xsl:copy-of select="$bwStr-AEEF-TheFifth"/><xsl:text> </xsl:text> 
    884884                      </xsl:when> 
    885885                      <xsl:when test="@val='-1'"> 
    886                         <xsl:copy-of select="$bwStr-AEEF-TheLast"/> 
     886                        <xsl:copy-of select="$bwStr-AEEF-TheLast"/><xsl:text> </xsl:text> 
    887887                      </xsl:when> 
    888888                      <!-- don't output "every" --> 
     
    892892                    </xsl:choose> 
    893893                    <xsl:for-each select="day"> 
    894                       <xsl:if test="position() != 1 and position() = last()"> <xsl:copy-of select="$bwStr-AEEF-And"/> </xsl:if> 
     894                      <xsl:text> </xsl:text> 
     895                      <xsl:if test="position() != 1 and position() = last()"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-And"/><xsl:text> </xsl:text></xsl:if> 
    895896                      <xsl:variable name="dayVal" select="."/> 
    896897                      <xsl:variable name="dayPos"> 
     
    901902                      <xsl:value-of select="/bedework/shortdaynames/val[position() = $dayPos]"/> 
    902903                      <xsl:if test="position() != last()">, </xsl:if> 
     904                      <xsl:text> </xsl:text> 
    903905                    </xsl:for-each> 
    904906                  </xsl:for-each> 
     
    908910                  <xsl:copy-of select="$bwStr-AEEF-In"/> 
    909911                  <xsl:for-each select="form/recurrence/bymonth/val"> 
    910                     <xsl:if test="position() != 1 and position() = last()"> <xsl:copy-of select="$bwStr-AEEF-And"/> </xsl:if> 
     912                    <xsl:if test="position() != 1 and position() = last()"> <xsl:copy-of select="$bwStr-AEEF-And"/><xsl:text> </xsl:text></xsl:if> 
    911913                    <xsl:variable name="monthNum" select="number(.)"/> 
    912914                    <xsl:value-of select="/bedework/monthlabels/val[position() = $monthNum]"/> 
     
    916918 
    917919                <xsl:if test="form/recurrence/bymonthday"> 
     920                  <xsl:text> </xsl:text> 
    918921                  <xsl:copy-of select="$bwStr-AEEF-OnThe"/> 
     922                  <xsl:text> </xsl:text> 
    919923                  <xsl:apply-templates select="form/recurrence/bymonthday/val" mode="weekMonthYearNumbers"/> 
    920924                  <xsl:copy-of select="$bwStr-AEEF-DayOfTheMonth"/> 
     925                  <xsl:text> </xsl:text> 
    921926                </xsl:if> 
    922927 
    923928                <xsl:if test="form/recurrence/byyearday"> 
     929                  <xsl:text> </xsl:text> 
    924930                  <xsl:copy-of select="$bwStr-AEEF-OnThe"/> 
     931                  <xsl:text> </xsl:text> 
    925932                  <xsl:apply-templates select="form/recurrence/byyearday/val" mode="weekMonthYearNumbers"/> 
    926933                  <xsl:copy-of select="$bwStr-AEEF-DayOfTheYear"/> 
     934                  <xsl:text> </xsl:text> 
    927935                </xsl:if> 
    928936 
    929937                <xsl:if test="form/recurrence/byweekno"> 
     938                  <xsl:text> </xsl:text> 
    930939                  <xsl:copy-of select="$bwStr-AEEF-InThe"/> 
     940                  <xsl:text> </xsl:text> 
    931941                  <xsl:apply-templates select="form/recurrence/byweekno/val" mode="weekMonthYearNumbers"/> 
    932942                  <xsl:copy-of select="$bwStr-AEEF-WeekOfTheYear"/> 
     943                  <xsl:text> </xsl:text> 
    933944                </xsl:if> 
    934945 
     
    937948                  <xsl:when test="form/recurrence/count = '-1'"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-Forever"/></xsl:when> 
    938949                  <xsl:when test="form/recurrence/until"> 
    939                     <xsl:copy-of select="$bwStr-AEEF-Until"/> <xsl:value-of select="substring(form/recurrence/until,1,4)"/>-<xsl:value-of select="substring(form/recurrence/until,5,2)"/>-<xsl:value-of select="substring(form/recurrence/until,7,2)"/> 
     950                    <xsl:text> </xsl:text> 
     951                    <xsl:copy-of select="$bwStr-AEEF-Until"/> 
     952                    <xsl:text> </xsl:text> 
     953                    <xsl:value-of select="substring(form/recurrence/until,1,4)"/>-<xsl:value-of select="substring(form/recurrence/until,5,2)"/>-<xsl:value-of select="substring(form/recurrence/until,7,2)"/> 
    940954                  </xsl:when> 
    941955                  <xsl:otherwise> 
     956                    <xsl:text> </xsl:text> 
    942957                    <xsl:value-of select="form/recurrence/count"/> 
     958                    <xsl:text> </xsl:text> 
    943959                    <xsl:copy-of select="$bwStr-AEEF-Time"/> 
    944960                  </xsl:otherwise> 
  • trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/eventForm.xsl

    r3149 r3201  
    855855                <xsl:text> </xsl:text> 
    856856                <xsl:choose> 
    857                   <xsl:when test="form/recurrence/freq = 'HOURLY'"><xsl:copy-of select="$bwStr-AEEF-Hour"/></xsl:when> 
    858                   <xsl:when test="form/recurrence/freq = 'DAILY'"><xsl:copy-of select="$bwStr-AEEF-Day"/></xsl:when> 
    859                   <xsl:when test="form/recurrence/freq = 'WEEKLY'"><xsl:copy-of select="$bwStr-AEEF-Week"/></xsl:when> 
    860                   <xsl:when test="form/recurrence/freq = 'MONTHLY'"><xsl:copy-of select="$bwStr-AEEF-Month"/></xsl:when> 
    861                   <xsl:when test="form/recurrence/freq = 'YEARLY'"><xsl:copy-of select="$bwStr-AEEF-Year"/></xsl:when> 
     857                  <xsl:when test="form/recurrence/freq = 'HOURLY'"><xsl:copy-of select="$bwStr-AEEF-Hour"/><xsl:text> </xsl:text></xsl:when> 
     858                  <xsl:when test="form/recurrence/freq = 'DAILY'"><xsl:copy-of select="$bwStr-AEEF-Day"/><xsl:text> </xsl:text></xsl:when> 
     859                  <xsl:when test="form/recurrence/freq = 'WEEKLY'"><xsl:copy-of select="$bwStr-AEEF-Week"/><xsl:text> </xsl:text></xsl:when> 
     860                  <xsl:when test="form/recurrence/freq = 'MONTHLY'"><xsl:copy-of select="$bwStr-AEEF-Month"/><xsl:text> </xsl:text></xsl:when> 
     861                  <xsl:when test="form/recurrence/freq = 'YEARLY'"><xsl:copy-of select="$bwStr-AEEF-Year"/><xsl:text> </xsl:text></xsl:when> 
    862862                </xsl:choose> 
    863863                <xsl:text> </xsl:text> 
     
    869869                    <xsl:choose> 
    870870                      <xsl:when test="@val='1'"> 
    871                         <xsl:copy-of select="$bwStr-AEEF-TheFirst"/> 
     871                        <xsl:copy-of select="$bwStr-AEEF-TheFirst"/><xsl:text> </xsl:text> 
    872872                      </xsl:when> 
    873873                      <xsl:when test="@val='2'"> 
    874                         <xsl:copy-of select="$bwStr-AEEF-TheSecond"/> 
     874                        <xsl:copy-of select="$bwStr-AEEF-TheSecond"/><xsl:text> </xsl:text> 
    875875                      </xsl:when> 
    876876                      <xsl:when test="@val='3'"> 
    877                         <xsl:copy-of select="$bwStr-AEEF-TheThird"/> 
     877                        <xsl:copy-of select="$bwStr-AEEF-TheThird"/><xsl:text> </xsl:text> 
    878878                      </xsl:when> 
    879879                      <xsl:when test="@val='4'"> 
    880                         <xsl:copy-of select="$bwStr-AEEF-TheFourth"/> 
     880                        <xsl:copy-of select="$bwStr-AEEF-TheFourth"/><xsl:text> </xsl:text> 
    881881                      </xsl:when> 
    882882                      <xsl:when test="@val='5'"> 
    883                         <xsl:copy-of select="$bwStr-AEEF-TheFifth"/> 
     883                        <xsl:copy-of select="$bwStr-AEEF-TheFifth"/><xsl:text> </xsl:text> 
    884884                      </xsl:when> 
    885885                      <xsl:when test="@val='-1'"> 
    886                         <xsl:copy-of select="$bwStr-AEEF-TheLast"/> 
     886                        <xsl:copy-of select="$bwStr-AEEF-TheLast"/><xsl:text> </xsl:text> 
    887887                      </xsl:when> 
    888888                      <!-- don't output "every" --> 
     
    892892                    </xsl:choose> 
    893893                    <xsl:for-each select="day"> 
    894                       <xsl:if test="position() != 1 and position() = last()"> <xsl:copy-of select="$bwStr-AEEF-And"/> </xsl:if> 
     894                      <xsl:text> </xsl:text> 
     895                      <xsl:if test="position() != 1 and position() = last()"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-And"/><xsl:text> </xsl:text></xsl:if> 
    895896                      <xsl:variable name="dayVal" select="."/> 
    896897                      <xsl:variable name="dayPos"> 
     
    901902                      <xsl:value-of select="/bedework/shortdaynames/val[position() = $dayPos]"/> 
    902903                      <xsl:if test="position() != last()">, </xsl:if> 
     904                      <xsl:text> </xsl:text> 
    903905                    </xsl:for-each> 
    904906                  </xsl:for-each> 
     
    908910                  <xsl:copy-of select="$bwStr-AEEF-In"/> 
    909911                  <xsl:for-each select="form/recurrence/bymonth/val"> 
    910                     <xsl:if test="position() != 1 and position() = last()"> <xsl:copy-of select="$bwStr-AEEF-And"/> </xsl:if> 
     912                    <xsl:if test="position() != 1 and position() = last()"> <xsl:copy-of select="$bwStr-AEEF-And"/><xsl:text> </xsl:text></xsl:if> 
    911913                    <xsl:variable name="monthNum" select="number(.)"/> 
    912914                    <xsl:value-of select="/bedework/monthlabels/val[position() = $monthNum]"/> 
     
    916918 
    917919                <xsl:if test="form/recurrence/bymonthday"> 
     920                  <xsl:text> </xsl:text> 
    918921                  <xsl:copy-of select="$bwStr-AEEF-OnThe"/> 
     922                  <xsl:text> </xsl:text> 
    919923                  <xsl:apply-templates select="form/recurrence/bymonthday/val" mode="weekMonthYearNumbers"/> 
    920924                  <xsl:copy-of select="$bwStr-AEEF-DayOfTheMonth"/> 
     925                  <xsl:text> </xsl:text> 
    921926                </xsl:if> 
    922927 
    923928                <xsl:if test="form/recurrence/byyearday"> 
     929                  <xsl:text> </xsl:text> 
    924930                  <xsl:copy-of select="$bwStr-AEEF-OnThe"/> 
     931                  <xsl:text> </xsl:text> 
    925932                  <xsl:apply-templates select="form/recurrence/byyearday/val" mode="weekMonthYearNumbers"/> 
    926933                  <xsl:copy-of select="$bwStr-AEEF-DayOfTheYear"/> 
     934                  <xsl:text> </xsl:text> 
    927935                </xsl:if> 
    928936 
    929937                <xsl:if test="form/recurrence/byweekno"> 
     938                  <xsl:text> </xsl:text> 
    930939                  <xsl:copy-of select="$bwStr-AEEF-InThe"/> 
     940                  <xsl:text> </xsl:text> 
    931941                  <xsl:apply-templates select="form/recurrence/byweekno/val" mode="weekMonthYearNumbers"/> 
    932942                  <xsl:copy-of select="$bwStr-AEEF-WeekOfTheYear"/> 
     943                  <xsl:text> </xsl:text> 
    933944                </xsl:if> 
    934945 
     
    937948                  <xsl:when test="form/recurrence/count = '-1'"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-Forever"/></xsl:when> 
    938949                  <xsl:when test="form/recurrence/until"> 
    939                     <xsl:copy-of select="$bwStr-AEEF-Until"/> <xsl:value-of select="substring(form/recurrence/until,1,4)"/>-<xsl:value-of select="substring(form/recurrence/until,5,2)"/>-<xsl:value-of select="substring(form/recurrence/until,7,2)"/> 
     950                    <xsl:text> </xsl:text> 
     951                    <xsl:copy-of select="$bwStr-AEEF-Until"/> 
     952                    <xsl:text> </xsl:text> 
     953                    <xsl:value-of select="substring(form/recurrence/until,1,4)"/>-<xsl:value-of select="substring(form/recurrence/until,5,2)"/>-<xsl:value-of select="substring(form/recurrence/until,7,2)"/> 
    940954                  </xsl:when> 
    941955                  <xsl:otherwise> 
     956                    <xsl:text> </xsl:text> 
    942957                    <xsl:value-of select="form/recurrence/count"/> 
     958                    <xsl:text> </xsl:text> 
    943959                    <xsl:copy-of select="$bwStr-AEEF-Time"/> 
    944960                  </xsl:otherwise>