Changeset 1984

Show
Ignore:
Timestamp:
12/09/08 00:44:31
Author:
johnsa
Message:

user client: minor updates to add/mod calendar form

Files:

Legend:

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

    r1983 r1984  
    46274627        </tr> 
    46284628        <tr> 
     4629          <th>Color:</th> 
     4630          <td> 
     4631            <input type="text" name="calendar.color" value="" size="40"/> 
     4632          </td> 
     4633        </tr> 
     4634        <tr> 
    46294635          <th>Type:</th> 
    46304636          <td> 
     
    46404646        </tr> 
    46414647      </table> 
     4648      <div class="submitButtons"> 
     4649        <input type="submit" name="addCalendar" value="Add"/> 
     4650        <input type="submit" name="cancelled" value="cancel"/> 
     4651      </div> 
    46424652      <div id="subscriptionTypes" class="invisible"> 
    46434653        <!-- If we are making a subscription, we will set the hidden value of "aliasUri" based 
     
    46504660          <input type="radio" name="subTypeSwitch" value="public" checked="checked" onclick="changeClass('subscriptionTypePublic','visible');changeClass('subscriptionTypeExternal','invisible');changeClass('subscriptionTypeUser','invisible');setField('bwSubType',this.value);"/> Public calendar 
    46514661          <input type="radio" name="subTypeSwitch" value="user" onclick="changeClass('subscriptionTypePublic','invisible');changeClass('subscriptionTypeExternal','invisible');changeClass('subscriptionTypeUser','visible');setField('bwSubType',this.value);"/> User calendar 
    4652           <input type="radio" name="subTypeSwitch" value="external" onclick="changeClass('subscriptionTypePublic','invisible');changeClass('subscriptionTypeExternal','visible');changeClass('subscriptionTypeUser','invisible');setField('bwSubType',this.value);"/> External / URL 
     4662          <input type="radio" name="subTypeSwitch" value="external" onclick="changeClass('subscriptionTypePublic','invisible');changeClass('subscriptionTypeExternal','visible');changeClass('subscriptionTypeUser','invisible');setField('bwSubType',this.value);"/> URL 
    46534663        </p> 
    46544664 
     
    46854695          <table class="common"> 
    46864696            <tr> 
    4687               <th>URL to external calendar:</th> 
     4697              <th>URL to calendar:</th> 
    46884698              <td> 
    46894699                <input type="text" name="aliasUriHolder" id="aliasUriHolder" value="" size="40"/> 
     
    47064716      </div> 
    47074717 
    4708       <div class="submitButtons"> 
    4709         <input type="submit" name="addCalendar" value="Add"/> 
    4710         <input type="submit" name="cancelled" value="cancel"/> 
    4711       </div> 
    47124718    </form> 
    47134719 
     
    47164722      Sharing may be added to a calendar once created. 
    47174723    </div> 
    4718  
    47194724  </xsl:template> 
    47204725 
     
    47224727    <xsl:variable name="calPath" select="path"/> 
    47234728    <xsl:variable name="calPathEncoded" select="encodedPath"/> 
    4724     <xsl:choose> 
    4725       <xsl:when test="isSubscription='true'"> 
    4726         <h3>Modify Subscription</h3> 
    4727       </xsl:when> 
    4728       <xsl:when test="calendarCollection='true'"> 
    4729         <h3>Modify Calendar</h3> 
    4730       </xsl:when> 
    4731       <xsl:otherwise> 
    4732         <h3>Modify Folder</h3> 
    4733       </xsl:otherwise> 
    4734     </xsl:choose> 
     4729 
    47354730    <form name="modCalForm" method="post" action="{$calendar-update}"> 
     4731      <xsl:choose> 
     4732        <xsl:when test="isSubscription='true'"> 
     4733          <h3>Modify Subscription</h3> 
     4734          <input type="hidden" value="true" name="calendarCollection"/> 
     4735        </xsl:when> 
     4736        <xsl:when test="calendarCollection='true'"> 
     4737          <h3>Modify Calendar</h3> 
     4738          <input type="hidden" value="true" name="calendarCollection"/> 
     4739        </xsl:when> 
     4740        <xsl:otherwise> 
     4741          <h3>Modify Folder</h3> 
     4742          <input type="hidden" value="false" name="calendarCollection"/> 
     4743        </xsl:otherwise> 
     4744      </xsl:choose> 
    47364745      <table class="common"> 
    47374746        <tr> 
     
    47704779              </xsl:if> 
    47714780            </textarea> 
     4781          </td> 
     4782        </tr> 
     4783        <tr> 
     4784          <th>Color:</th> 
     4785          <td> 
     4786            <input type="text" name="calendar.color" value="" size="40"> 
     4787              <xsl:attribute name="value"><xsl:value-of select="color"/></xsl:attribute> 
     4788            </input> 
    47724789          </td> 
    47734790        </tr> 
     
    48754892          <li>Folders may only contain calendars and subfolders.</li> 
    48764893          <li>Calendars may only contain events (and other calendar items).</li> 
    4877           <li> 
     4894          <!-- li> 
    48784895            An empty calendar may be converted to a folder and vice 
    48794896            versa. 
    4880           </li
     4897          </li--
    48814898        </ul> 
    48824899      </li>