Changeset 1283

Show
Ignore:
Timestamp:
02/12/07 00:20:25
Author:
johnsa
Message:

user client: update to/cleanup of preferences form

Files:

Legend:

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

    r1282 r1283  
    59795979        <tr> 
    59805980          <td class="fieldname"> 
     5981            Preferred time type: 
     5982          </td> 
     5983          <td> 
     5984            <select name="preferredTimeType"> 
     5985              <option value="12hr"> 
     5986                <xsl:if test="preferredTimeType = '12hr'"> 
     5987                  <xsl:attribute name="selected">selected</xsl:attribute> 
     5988                </xsl:if> 
     5989                12 hour + AM/PM 
     5990              </option> 
     5991              <option value="24hr"> 
     5992                <xsl:if test="preferredTimeType = '24hr'"> 
     5993                  <xsl:attribute name="selected">selected</xsl:attribute> 
     5994                </xsl:if> 
     5995                24 hour 
     5996              </option> 
     5997            </select> 
     5998          </td> 
     5999        </tr> 
     6000        <tr> 
     6001          <td class="fieldname"> 
    59816002            Preferred end date/time type: 
    59826003          </td> 
    59836004          <td> 
    59846005            <select name="preferredEndType"> 
    5985               <xsl:choose> 
    5986                 <xsl:when test="preferredEndType = 'duration'"> 
    5987                   <option value="duration" selected="selected">duration</option> 
    5988                 </xsl:when> 
    5989                 <xsl:otherwise> 
    5990                   <option value="duration">duration</option> 
    5991                 </xsl:otherwise> 
    5992               </xsl:choose> 
    5993               <xsl:choose> 
    5994                 <xsl:when test="preferredEndType = 'date'"> 
    5995                   <option value="date" selected="selected">date/time</option> 
    5996                 </xsl:when> 
    5997                 <xsl:otherwise> 
    5998                   <option value="date">date/time</option> 
    5999                 </xsl:otherwise> 
    6000               </xsl:choose> 
     6006              <option value="duration"> 
     6007                <xsl:if test="preferredEndType = 'duration'"> 
     6008                  <xsl:attribute name="selected">selected</xsl:attribute> 
     6009                </xsl:if> 
     6010                duration 
     6011              </option> 
     6012              <option value="date"> 
     6013                <xsl:if test="preferredEndType = 'date'"> 
     6014                  <xsl:attribute name="selected">selected</xsl:attribute> 
     6015                </xsl:if> 
     6016                date/time 
     6017              </option> 
    60016018            </select> 
    60026019          </td> 
     
    60116028            <xsl:variable name="workDays" select="workDays"/> 
    60126029            <input type="hidden" name="workDays" value="{$workDays}"/> 
    6013             <xsl:choose> 
    6014               <xsl:when test="substring(workDays,1,1) = 'W'"> 
    6015                 <input type="checkbox" name="workDayIndex" value="0" checked="checked"/>Sun 
    6016               </xsl:when> 
    6017               <xsl:otherwise> 
    6018                 <input type="checkbox" name="workDayIndex" value="0"/>Sun 
    6019               </xsl:otherwise> 
    6020             </xsl:choose> 
    6021             <xsl:choose> 
    6022               <xsl:when test="substring(workDays,2,1) = 'W'"> 
    6023                 <input type="checkbox" name="workDayIndex" value="1" checked="checked"/>Mon 
    6024               </xsl:when> 
    6025               <xsl:otherwise> 
    6026                 <input type="checkbox" name="workDayIndex" value="1"/>Mon 
    6027               </xsl:otherwise> 
    6028             </xsl:choose> 
    6029             <xsl:choose> 
    6030               <xsl:when test="substring(workDays,3,1) = 'W'"> 
    6031                 <input type="checkbox" name="workDayIndex" value="2" checked="checked"/>Tue 
    6032               </xsl:when> 
    6033               <xsl:otherwise> 
    6034                 <input type="checkbox" name="workDayIndex" value="2"/>Tue 
    6035               </xsl:otherwise> 
    6036             </xsl:choose> 
    6037             <xsl:choose> 
    6038               <xsl:when test="substring(workDays,4,1) = 'W'"> 
    6039                 <input type="checkbox" name="workDayIndex" value="3" checked="checked"/>Wed 
    6040               </xsl:when> 
    6041               <xsl:otherwise> 
    6042                 <input type="checkbox" name="workDayIndex" value="3"/>Wed 
    6043               </xsl:otherwise> 
    6044             </xsl:choose> 
    6045             <xsl:choose> 
    6046               <xsl:when test="substring(workDays,5,1) = 'W'"> 
    6047                 <input type="checkbox" name="workDayIndex" value="4" checked="checked"/>Thu 
    6048               </xsl:when> 
    6049               <xsl:otherwise> 
    6050                 <input type="checkbox" name="workDayIndex" value="4"/>Thu 
    6051               </xsl:otherwise> 
    6052             </xsl:choose> 
    6053             <xsl:choose> 
    6054               <xsl:when test="substring(workDays,6,1) = 'W'"> 
    6055                 <input type="checkbox" name="workDayIndex" value="5" checked="checked"/>Fri 
    6056               </xsl:when> 
    6057               <xsl:otherwise> 
    6058                 <input type="checkbox" name="workDayIndex" value="5"/>Fri 
    6059               </xsl:otherwise> 
    6060             </xsl:choose> 
    6061             <xsl:choose> 
    6062               <xsl:when test="substring(workDays,7,1) = 'W'"> 
    6063                 <input type="checkbox" name="workDayIndex" value="6" checked="checked"/>Sat 
    6064               </xsl:when> 
    6065               <xsl:otherwise> 
    6066                 <input type="checkbox" name="workDayIndex" value="6"/>Sat 
    6067               </xsl:otherwise> 
    6068             </xsl:choose> 
     6030            <input type="checkbox" name="workDayIndex" value="0"> 
     6031              <xsl:if test="substring(workDays,1,1) = 'W'"> 
     6032                <xsl:attribute name="checked">checked</xsl:attribute> 
     6033              </xsl:if> 
     6034              Sun 
     6035            </input> 
     6036            <input type="checkbox" name="workDayIndex" value="1"> 
     6037              <xsl:if test="substring(workDays,2,1) = 'W'"> 
     6038                <xsl:attribute name="checked">checked</xsl:attribute> 
     6039              </xsl:if> 
     6040              Mon 
     6041            </input> 
     6042            <input type="checkbox" name="workDayIndex" value="2"> 
     6043              <xsl:if test="substring(workDays,3,1) = 'W'"> 
     6044                <xsl:attribute name="checked">checked</xsl:attribute> 
     6045              </xsl:if> 
     6046              Tue 
     6047            </input> 
     6048            <input type="checkbox" name="workDayIndex" value="3"> 
     6049              <xsl:if test="substring(workDays,4,1) = 'W'"> 
     6050                <xsl:attribute name="checked">checked</xsl:attribute> 
     6051              </xsl:if> 
     6052              Wed 
     6053            </input> 
     6054            <input type="checkbox" name="workDayIndex" value="4"> 
     6055              <xsl:if test="substring(workDays,5,1) = 'W'"> 
     6056                <xsl:attribute name="checked">checked</xsl:attribute> 
     6057              </xsl:if> 
     6058              Thu 
     6059            </input> 
     6060            <input type="checkbox" name="workDayIndex" value="5"> 
     6061              <xsl:if test="substring(workDays,6,1) = 'W'"> 
     6062                <xsl:attribute name="checked">checked</xsl:attribute> 
     6063              </xsl:if> 
     6064              Fri 
     6065            </input> 
     6066            <input type="checkbox" name="workDayIndex" value="6"> 
     6067              <xsl:if test="substring(workDays,7,1) = 'W'"> 
     6068                <xsl:attribute name="checked">checked</xsl:attribute> 
     6069              </xsl:if> 
     6070              Sat 
     6071            </input> 
    60696072          </td> 
    60706073        </tr> 
     
    61266129          <td> 
    61276130            <select name="viewPeriod"> 
    6128               <!-- picking the selected item could be done with javascript. for 
    6129                    now, this will do.  --> 
    6130               <xsl:choose> 
    6131                 <xsl:when test="preferredViewPeriod = 'dayView'"> 
    6132                   <option value="dayView" selected="selected">day</option> 
    6133                 </xsl:when> 
    6134                 <xsl:otherwise> 
    6135                   <option value="dayView">day</option> 
    6136                 </xsl:otherwise> 
    6137               </xsl:choose> 
    6138               <xsl:choose> 
    6139                 <xsl:when test="preferredViewPeriod = 'todayView'"> 
    6140                   <option value="todayView" selected="selected">today</option> 
    6141                 </xsl:when> 
    6142                 <xsl:otherwise> 
    6143                   <option value="todayView">today</option> 
    6144                 </xsl:otherwise> 
    6145               </xsl:choose> 
    6146               <xsl:choose> 
    6147                 <xsl:when test="preferredViewPeriod = 'weekView'"> 
    6148                   <option value="weekView" selected="selected">week</option> 
    6149                 </xsl:when> 
    6150                 <xsl:otherwise> 
    6151                   <option value="weekView">week</option> 
    6152                 </xsl:otherwise> 
    6153               </xsl:choose> 
    6154               <xsl:choose> 
    6155                 <xsl:when test="preferredViewPeriod = 'monthView'"> 
    6156                   <option value="monthView" selected="selected">month</option> 
    6157                 </xsl:when> 
    6158                 <xsl:otherwise> 
    6159                   <option value="monthView">month</option> 
    6160                 </xsl:otherwise> 
    6161               </xsl:choose> 
    6162               <xsl:choose> 
    6163                 <xsl:when test="preferredViewPeriod = 'yearView'"> 
    6164                   <option value="yearView" selected="selected">year</option> 
    6165                 </xsl:when> 
    6166                 <xsl:otherwise> 
    6167                   <option value="yearView">year</option> 
    6168                 </xsl:otherwise> 
    6169               </xsl:choose> 
     6131              <option value="dayView"> 
     6132                <xsl:if test="preferredViewPeriod = 'dayView'"> 
     6133                  <xsl:attribute name="selected">selected</xsl:attribute> 
     6134                </xsl:if> 
     6135                day 
     6136              </option> 
     6137              <option value="todayView"> 
     6138                <xsl:if test="preferredViewPeriod = 'todayView'"> 
     6139                  <xsl:attribute name="selected">selected</xsl:attribute> 
     6140                </xsl:if> 
     6141                today 
     6142              </option> 
     6143              <option value="weekView"> 
     6144                <xsl:if test="preferredViewPeriod = 'weekView'"> 
     6145                  <xsl:attribute name="selected">selected</xsl:attribute> 
     6146                </xsl:if> 
     6147                week 
     6148              </option> 
     6149              <option value="monthView"> 
     6150                <xsl:if test="preferredViewPeriod = 'monthView'"> 
     6151                  <xsl:attribute name="selected">selected</xsl:attribute> 
     6152                </xsl:if> 
     6153                month 
     6154              </option> 
     6155              <option value="yearView"> 
     6156                <xsl:if test="preferredViewPeriod = 'yearView'"> 
     6157                  <xsl:attribute name="selected">selected</xsl:attribute> 
     6158                </xsl:if> 
     6159                year 
     6160              </option> 
    61706161            </select> 
    61716162          </td> 
     
    62036194          </td> 
    62046195          <td> 
    6205             <xsl:variable name="userMode" select="userMode"/> 
    62066196            <select name="userMode"> 
    6207               <xsl:choose> 
    6208                 <xsl:when test="userMode = 0"> 
    6209                   <option value="0" selected="selected">basic</option> 
    6210                 </xsl:when> 
    6211                 <xsl:otherwise> 
    6212                   <option value="0">basic</option> 
    6213                 </xsl:otherwise> 
    6214               </xsl:choose> 
    6215               <xsl:choose> 
    6216                 <xsl:when test="userMode = 1"> 
    6217                   <option value="1" selected="selected">simple</option> 
    6218                 </xsl:when> 
    6219                 <xsl:otherwise> 
    6220                   <option value="1">simple</option> 
    6221                 </xsl:otherwise> 
    6222               </xsl:choose> 
    6223               <xsl:choose> 
    6224                 <xsl:when test="userMode = 3"> 
    6225                   <option value="3" selected="selected">advanced</option> 
    6226                 </xsl:when> 
    6227                 <xsl:otherwise> 
    6228                   <option value="3">advanced</option> 
    6229                 </xsl:otherwise> 
    6230               </xsl:choose> 
     6197              <option value="0"> 
     6198                <xsl:if test="userMode = 0"> 
     6199                  <xsl:attribute name="selected">selected</xsl:attribute> 
     6200                </xsl:if> 
     6201                basic 
     6202              </option> 
     6203              <option value="1"> 
     6204                <xsl:if test="userMode = 1"> 
     6205                  <xsl:attribute name="selected">selected</xsl:attribute> 
     6206                </xsl:if> 
     6207                simple 
     6208              </option> 
     6209              <option value="3"> 
     6210                <xsl:if test="userMode = 3"> 
     6211                  <xsl:attribute name="selected">selected</xsl:attribute> 
     6212                </xsl:if> 
     6213                advanced 
     6214              </option> 
    62316215            </select> 
    62326216          </td>