Changeset 2608

Show
Ignore:
Timestamp:
12/31/09 00:28:27
Author:
johnsa
Message:

public client: complete iphone theme including internationalization

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/strings.xsl

    r2607 r2608  
    4848  <xsl:variable name="bwStr-Navi-WeekOf">Week of</xsl:variable> 
    4949  <xsl:variable name="bwStr-Navi-Go">go</xsl:variable> 
     50  <xsl:variable name="bwStr-Navi-GoToDate">Go to date:</xsl:variable> 
    5051 
    5152  <!--  xsl:template name="searchBar" --> 
     
    155156  <xsl:variable name="bwStr-LsVw-Add">add...</xsl:variable> 
    156157  <xsl:variable name="bwStr-LsVw-AllDay">All Day</xsl:variable> 
     158  <xsl:variable name="bwStr-LsVw-At">at</xsl:variable> 
    157159  <xsl:variable name="bwStr-LsVw-Today">Today</xsl:variable> 
    158160  <xsl:variable name="bwStr-LsVw-AddEventToMyCalendar">Add to MyCalendar</xsl:variable> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/calendarList.xsl

    r2607 r2608  
    3030 
    3131  <xsl:template match="calendar" mode="calTree"> 
    32     <xsl:variable name="itemClass"> 
    33       <xsl:choose> 
    34         <xsl:when test="calType = '0'"><xsl:copy-of select="$bwStr-Calr-Folder"/></xsl:when> 
    35         <xsl:otherwise><xsl:copy-of select="$bwStr-Calr-Calendar"/></xsl:otherwise> 
    36       </xsl:choose> 
    37     </xsl:variable> 
    3832    <xsl:variable name="virtualPath"><xsl:call-template name="url-encode"><xsl:with-param name="str">/user<xsl:for-each select="ancestor-or-self::calendar/name">/<xsl:value-of select="."/></xsl:for-each></xsl:with-param></xsl:call-template></xsl:variable> 
    39     <li class="{$itemClass}"> 
     33    <li> 
     34      <xsl:attribute name="class"> 
     35        <xsl:choose> 
     36          <xsl:when test="calType = '0'">folder</xsl:when> 
     37          <xsl:otherwise>calendar</xsl:otherwise> 
     38        </xsl:choose> 
     39      </xsl:attribute> 
    4040      <xsl:variable name="calPath" select="path"/> 
    41       <a href="{$setSelection}&amp;virtualPath={$virtualPath}&amp;setappvar=curCollection({$calPath})" title="view calendar"><xsl:value-of select="name"/></a> 
     41      <a href="{$setSelection}&amp;virtualPath={$virtualPath}&amp;setappvar=curCollection({$calPath})" title="view calendar"> 
     42        <xsl:value-of select="name"/> 
     43      </a> 
    4244      <xsl:variable name="calPath" select="path"/> 
    4345      <span class="exportCalLink"> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/eventList.xsl

    r2580 r2608  
    4141      </xsl:choose> 
    4242 
     43      <!-- produce the list of events --> 
    4344      <xsl:choose> 
    4445        <xsl:when test="not(/bedework/eventscalendar/year/month/week/day/event)"> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/iphoneTheme/calendarList.xsl

    r2578 r2608  
    66  <!--==== CALENDAR LIST ====--> 
    77  <xsl:template match="calendars"> 
    8     <h1>All Calendars</h1> 
    9     <p>Select a calendar from the list below to see only that calendar's events.</p> 
    10     <p> 
    11       <a class="linkBack" href="{$setup}"><xsl:copy-of select="$bwStr-HdBr-BackLink"/></a> 
    12     </p> 
     8    <h1><xsl:copy-of select="$bwStr-Cals-AllCalendars"/></h1> 
     9    <p><xsl:copy-of select="$bwStr-Cals-SelectCalendar"/></p> 
     10 
     11    <div id="navlink-back" class="navlink backlink" onclick="gotourl(this,'javascript:history.back()')"> 
     12      <xsl:copy-of select="$bwStr-HdBr-Back"/> 
     13    </div> 
     14 
    1315    <ul class="calendarTree"> 
    14       <xsl:apply-templates select="calendar/calendar" mode="calTree"/> 
     16      <xsl:apply-templates select="calendar/calendar[calType != 5 and calType != 6 and name != 'calendar']" mode="calTree"/> 
    1517    </ul> 
    1618  </xsl:template> 
    1719 
    1820  <xsl:template match="calendar" mode="calTree"> 
    19     <xsl:variable name="url" select="encodedPath"/
     21    <xsl:variable name="virtualPath"><xsl:call-template name="url-encode"><xsl:with-param name="str">/user<xsl:for-each select="ancestor-or-self::calendar/name">/<xsl:value-of select="."/></xsl:for-each></xsl:with-param></xsl:call-template></xsl:variable
    2022    <li> 
    2123      <xsl:attribute name="class"> 
     
    2527        </xsl:choose> 
    2628      </xsl:attribute> 
    27       <a href="{$setSelection}&amp;calUrl={$url}" title="view calendar"><xsl:value-of select="name"/></a> 
     29      <xsl:variable name="calPath" select="path"/> 
     30      <a href="{$setSelection}&amp;virtualPath={$virtualPath}&amp;setappvar=curCollection({$calPath})" title="view calendar"> 
     31        <xsl:value-of select="name"/> 
     32      </a> 
    2833      <xsl:if test="calendar"> 
    2934        <ul> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/iphoneTheme/css/jsphone.css

    r2578 r2608  
    124124  font-weight: normal; 
    125125} 
    126  
     126#stateMsg { 
     127  margin: 1em; 
     128
     129.displayFilterName { 
     130  font-style: italic; 
     131
    127132/* 
    128133ul.calendarTree li.folder { 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/iphoneTheme/dateSelect.xsl

    r2578 r2608  
    88  <xsl:template name="dateSelect"> 
    99    <form id="dateSelect" name="calForm" method="post" action="{$setViewPeriod}"> 
    10       Go to date: 
     10      <xsl:copy-of select="$bwStr-Navi-GoToDate"/> 
     11      <xsl:text> </xsl:text> 
    1112      <table border="0" cellpadding="0" cellspacing="0"> 
    1213        <tr> 
     
    6061          </td> 
    6162          <td> 
    62             <input name="submit" type="submit" value="go"/> 
     63            <input name="submit" type="submit" value="{$bwStr-Navi-Go}"/> 
    6364          </td> 
    6465        </tr> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/iphoneTheme/listEvents.xsl

    r2590 r2608  
    2424              </xsl:otherwise> 
    2525            </xsl:choose><br/> 
    26             No events to display. 
     26            <xsl:copy-of select="$bwStr-LsEv-NoEventsToDisplay"/> 
    2727          </p> 
    2828        </xsl:when> 
     
    5353                  <xsl:value-of select="start/dayname"/>, <xsl:value-of select="start/longdate"/> 
    5454                  <xsl:choose> 
    55                     <xsl:when test="start/allday = 'true'">(all day)</xsl:when> 
    56                     <xsl:otherwise> at <xsl:value-of select="start/time"/></xsl:otherwise> 
     55                    <xsl:when test="start/allday = 'true'"><xsl:copy-of select="$bwStr-LsVw-AllDay"/></xsl:when> 
     56                    <xsl:otherwise> 
     57                       <xsl:text> </xsl:text> 
     58                       <xsl:copy-of select="$bwStr-LsVw-At"/> 
     59                       <xsl:text> </xsl:text> 
     60                      <xsl:value-of select="start/time"/> 
     61                    </xsl:otherwise> 
    5762                  </xsl:choose> 
    5863                  <br/> 
    5964                  <strong> 
    60                     <xsl:if test="status='CANCELLED'">CANCELED: </xsl:if> 
     65                    <xsl:if test="status='CANCELLED'"><xsl:copy-of select="$bwStr-LsVw-Canceled"/><xsl:text> </xsl:text></xsl:if> 
    6166                    <xsl:value-of select="summary"/> 
    6267                  </strong> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/iphoneTheme/navigation.xsl

    r2578 r2608  
    88    <div id="nav"> 
    99      <div class="navlink" id="navlink-prev" onclick="gotourl(this,'{$setViewPeriod}&amp;date={$prevdate}');"> 
    10         &lt;prev 
     10        &lt;<xsl:copy-of select="$bwStr-Srch-Prev"/> 
    1111      </div> 
    1212      <div class="navlink" id="navlink-today" onclick="gotourl(this,'{$setViewPeriod}&amp;viewType=todayView&amp;date={$curdate}');"> 
    13         today 
     13        <xsl:copy-of select="$bwStr-Tabs-Today"/> 
    1414      </div> 
    1515      <div class="navlink" id="navlink-day" onclick="gotourl(this,'{$setViewPeriod}&amp;viewType=dayView&amp;date={$curdate}');"> 
     
    1717          <xsl:attribute name="class">navlink selected</xsl:attribute> 
    1818        </xsl:if> 
    19         day 
     19        <xsl:copy-of select="$bwStr-Tabs-Day"/> 
    2020      </div> 
    2121      <div class="navlink" id="navlink-week" onclick="gotourl(this,'{$setViewPeriod}&amp;viewType=weekView&amp;date={$curdate}');"> 
     
    2323          <xsl:attribute name="class">navlink selected</xsl:attribute> 
    2424        </xsl:if> 
    25         week 
     25        <xsl:copy-of select="$bwStr-Tabs-Week"/> 
    2626      </div> 
    2727      <div class="navlink" id="navlink-month" onclick="gotourl(this,'{$setViewPeriod}&amp;viewType=monthView&amp;date={$curdate}');"> 
     
    2929          <xsl:attribute name="class">navlink selected</xsl:attribute> 
    3030        </xsl:if> 
    31         month 
     31        <xsl:copy-of select="$bwStr-Tabs-Month"/> 
    3232      </div> 
    3333      <div class="navlink" id="navlink-next" onclick="gotourl(this,'{$setViewPeriod}&amp;date={$nextdate}');"> 
    34         next&gt; 
     34        <xsl:copy-of select="$bwStr-Srch-Next"/>&gt; 
    3535      </div> 
    3636 
    37       <xsl:if test="/bedework/selectionState/selectionType = 'calendar'"> 
    38         <br/>Calendar: <xsl:value-of select="/bedework/selectionState/subscriptions/subscription/calendar/name"/> 
    39         <span class="link">[<a href="{$setSelection}">show all</a>]</span> 
    40       </xsl:if> 
     37      <!-- display information about the current selection state if not default --> 
     38      <xsl:choose> 
     39        <xsl:when test="/bedework/selectionState/selectionType = 'collections'"> 
     40          <div id="stateMsg"> 
     41            <xsl:copy-of select="$bwStr-LsVw-DispEventsForCal"/> 
     42            <xsl:text> </xsl:text> 
     43            <span class="displayFilterName"> 
     44              <xsl:call-template name="substring-afterLastInstanceOf"> 
     45                <xsl:with-param name="string" select="/bedework/selectionState/collection/virtualpath"/> 
     46                <xsl:with-param name="char">/</xsl:with-param> 
     47              </xsl:call-template> 
     48            </span><xsl:text> </xsl:text> 
     49            <span id="allView" class="navlink" onclick="gotourl(this,'{$setSelection}')"><xsl:copy-of select="$bwStr-LsVw-ShowAll"/></span> 
     50          </div> 
     51        </xsl:when> 
     52        <xsl:when test="/bedework/selectionState/view/name != 'All'"> 
     53          <div id="stateMsg"> 
     54            <xsl:copy-of select="$bwStr-LsVw-DispEventsForView"/> 
     55            <xsl:text> </xsl:text> 
     56            <span class="displayFilterName"> 
     57              <xsl:value-of select="/bedework/selectionState/view/name"/> 
     58            </span><xsl:text> </xsl:text> 
     59            <span id="allView" class="navlink" onclick="gotourl(this,'{$setSelection}')"><xsl:copy-of select="$bwStr-LsVw-ShowAll"/></span> 
     60          </div> 
     61        </xsl:when> 
     62      </xsl:choose> 
     63 
    4164    </div> 
    4265  </xsl:template>