Changeset 2897

Show
Ignore:
Timestamp:
05/06/10 17:02:41
Author:
johnsa
Message:

user client: simplifications to event form

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/css/bedeworkTheme.css

    r2896 r2897  
    874874  padding-top: 1em !important; 
    875875} 
     876#bedework table.common .padMeTopMore { 
     877  padding-top: 2em !important; 
     878} 
    876879#bedework table.common .padMe { 
    877880  padding: 1em !important; 
  • trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/eventForm.xsl

    r2896 r2897  
    198198    <div id="bwEventTab-Basic"> 
    199199      <table cellspacing="0" class="common dottedBorder"> 
    200         <!--  Calendar in which to place event  --> 
     200       
     201        <!--  Calendar  --> 
    201202        <tr> 
    202203          <td class="fieldname"> 
     
    262263          </td> 
    263264        </tr> 
     265         
    264266        <!--  Summary (title) of event  --> 
    265267        <tr> 
     
    354356                    <script type="text/javascript"> 
    355357                      <xsl:comment> 
    356                       startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'startDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/'); 
     358                      startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'startDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/images/'); 
    357359                      </xsl:comment> 
    358360                    </script> 
     
    447449                      <script type="text/javascript"> 
    448450                      <xsl:comment> 
    449                         endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'endDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/'); 
     451                        endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'endDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/images/'); 
    450452                      </xsl:comment> 
    451453                      </script> 
     
    620622        </tr> 
    621623 
     624        <!--  Location  --> 
     625        <tr> 
     626          <td class="fieldname"><xsl:copy-of select="$bwStr-AEEF-Location"/></td> 
     627          <td class="fieldval"> 
     628            <span class="std-text"><xsl:copy-of select="$bwStr-AEEF-Choose"/><xsl:text> </xsl:text></span> 
     629            <span id="eventFormLocationList"> 
     630              <!-- 
     631              <xsl:choose> 
     632                <xsl:when test="/bedework/creating = 'true'"> 
     633                  <select name="locationUid"> 
     634                    <option value="-1">select...</option> 
     635                    <xsl:copy-of select="form/location/locationmenu/select/*"/> 
     636                  </select> 
     637                </xsl:when> 
     638                <xsl:otherwise> 
     639                  <select name="eventLocationUid"> 
     640                    <option value="-1">select...</option> 
     641                    <xsl:copy-of select="form/location/locationmenu/select/*"/> 
     642                  </select> 
     643                </xsl:otherwise> 
     644              </xsl:choose> 
     645              --> 
     646              <select name="locationUid"> 
     647                <option value=""><xsl:copy-of select="$bwStr-AEEF-Select"/></option> 
     648                <xsl:copy-of select="form/location/locationmenu/select/*"/> 
     649              </select> 
     650            </span> 
     651            <span class="std-text"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-OrAddNew"/><xsl:text> </xsl:text></span> 
     652            <input type="text" name="locationAddress.value" value="" /> 
     653          </td> 
     654        </tr> 
     655         
    622656        <!--  Percent Complete (only for Tasks)  --> 
    623657        <xsl:if test="form/entityType = '2'"> 
     
    634668        </xsl:if> 
    635669 
    636         <!--  Transparency  --> 
    637         <tr> 
    638           <td class="fieldname padMeTop"> 
    639             <xsl:copy-of select="$bwStr-AEEF-AffectsFreeBusy"/><xsl:text> </xsl:text> 
    640           </td> 
    641           <td align="left" class="padMeTop"> 
    642             <input type="radio" value="OPAQUE" name="transparency"> 
    643               <xsl:if test="form/transparency = 'OPAQUE'"> 
    644                 <xsl:attribute name="checked">checked</xsl:attribute> 
    645               </xsl:if> 
    646             </input> 
    647             <xsl:copy-of select="$bwStr-AEEF-Yes"/><xsl:text> </xsl:text><span class="note"><xsl:copy-of select="$bwStr-AEEF-Opaque"/></span><br/> 
    648  
    649             <input type="radio" value="TRANSPARENT" name="transparency"> 
    650               <xsl:if test="form/transparency = 'TRANSPARENT'"> 
    651                 <xsl:attribute name="checked">checked</xsl:attribute> 
    652               </xsl:if> 
    653             </input> 
    654             <xsl:copy-of select="$bwStr-AEEF-No"/><xsl:text> </xsl:text><span class="note"><xsl:copy-of select="$bwStr-AEEF-Transparent"/></span><br/> 
    655           </td> 
    656         </tr> 
    657  
    658670        <!--  Category  --> 
    659671        <tr> 
     
    661673            <xsl:copy-of select="$bwStr-AEEF-Categories"/><xsl:text> </xsl:text> 
    662674          </td> 
    663           <td class="fieldval" align="left"
     675          <td class="fieldval"
    664676            <xsl:variable name="catCount" select="count(form/categories/all/category)"/> 
    665677            <xsl:choose> 
     
    703715    <div id="bwEventTab-Details" class="invisible"> 
    704716      <table cellspacing="0" class="common dottedBorder"> 
    705         <!--  Location  --> 
    706         <tr> 
    707           <td class="fieldname"><xsl:copy-of select="$bwStr-AEEF-Location"/></td> 
    708           <td class="fieldval" align="left"> 
    709             <span class="std-text"><xsl:copy-of select="$bwStr-AEEF-Choose"/><xsl:text> </xsl:text></span> 
    710             <span id="eventFormLocationList"> 
    711               <!-- 
    712               <xsl:choose> 
    713                 <xsl:when test="/bedework/creating = 'true'"> 
    714                   <select name="locationUid"> 
    715                     <option value="-1">select...</option> 
    716                     <xsl:copy-of select="form/location/locationmenu/select/*"/> 
    717                   </select> 
    718                 </xsl:when> 
    719                 <xsl:otherwise> 
    720                   <select name="eventLocationUid"> 
    721                     <option value="-1">select...</option> 
    722                     <xsl:copy-of select="form/location/locationmenu/select/*"/> 
    723                   </select> 
    724                 </xsl:otherwise> 
    725               </xsl:choose> 
    726               --> 
    727               <select name="locationUid"> 
    728                 <option value=""><xsl:copy-of select="$bwStr-AEEF-Select"/></option> 
    729                 <xsl:copy-of select="form/location/locationmenu/select/*"/> 
    730               </select> 
    731             </span> 
    732             <span class="std-text"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-OrAddNew"/><xsl:text> </xsl:text></span> 
    733             <input type="text" name="locationAddress.value" value="" /> 
    734           </td> 
    735         </tr> 
     717 
    736718        <!--  Link (url associated with event)  --> 
    737719        <tr> 
     
    742724          </td> 
    743725        </tr> 
     726 
    744727        <!--  Description  --> 
    745728        <tr> 
     
    762745          </td> 
    763746        </tr> 
     747 
    764748        <!--<tr> 
    765749          <td class="fieldname"> 
     
    794778          </td> 
    795779        </tr>--> 
     780 
    796781        <!--  Status  --> 
    797782        <tr> 
     
    814799          </td> 
    815800        </tr> 
    816         <!--  Transparency  --> 
    817         <xsl:if test="entityType != '2'"><!-- no transparency for Tasks --> 
     801 
     802        <!--  Transparency ("Affects free/busy")  --> 
     803        <xsl:if test="form/entityType != '2'"><!-- no transparency for Tasks --> 
    818804          <tr> 
    819             <td class="fieldname"> 
    820               <xsl:copy-of select="$bwStr-AEEF-AffectsFreeBusy"/> 
     805            <td class="fieldname padMeTop"> 
     806              <xsl:copy-of select="$bwStr-AEEF-AffectsFreeBusy"/><xsl:text> </xsl:text> 
    821807            </td> 
    822             <td class="fieldval"> 
    823               <xsl:choose> 
    824                 <xsl:when test="form/transparency = 'TRANSPARENT'"> 
    825                   <input type="radio" name="transparency" value="OPAQUE"/><xsl:copy-of select="$bwStr-AEEF-Yes"/> <span class="note"><xsl:copy-of select="$bwStr-AEEF-Opaque"/></span><br/> 
    826                   <input type="radio" name="transparency" value="TRANSPARENT" checked="checked"/><xsl:copy-of select="$bwStr-AEEF-No"/><xsl:text> </xsl:text><span class="note"><xsl:copy-of select="$bwStr-AEEF-Transparent"/></span> 
    827                 </xsl:when> 
    828                 <xsl:otherwise> 
    829                   <input type="radio" name="transparency" value="OPAQUE" checked="checked"/><xsl:copy-of select="$bwStr-AEEF-Yes"/> <span class="note"><xsl:copy-of select="$bwStr-AEEF-Opaque"/></span><br/> 
    830                   <input type="radio" name="transparency" value="TRANSPARENT"/><xsl:copy-of select="$bwStr-AEEF-No"/> <span class="note"><xsl:copy-of select="$bwStr-AEEF-Transparent"/></span> 
    831                 </xsl:otherwise> 
    832               </xsl:choose> 
     808            <td class="fieldval padMeTop"> 
     809              <input type="radio" value="OPAQUE" name="transparency"> 
     810                <xsl:if test="form/transparency = 'OPAQUE'"> 
     811                  <xsl:attribute name="checked">checked</xsl:attribute> 
     812                </xsl:if> 
     813              </input> 
     814              <xsl:copy-of select="$bwStr-AEEF-Yes"/><xsl:text> </xsl:text><span class="note"><xsl:copy-of select="$bwStr-AEEF-Opaque"/></span><br/> 
     815   
     816              <input type="radio" value="TRANSPARENT" name="transparency"> 
     817                <xsl:if test="form/transparency = 'TRANSPARENT'"> 
     818                  <xsl:attribute name="checked">checked</xsl:attribute> 
     819                </xsl:if> 
     820              </input> 
     821              <xsl:copy-of select="$bwStr-AEEF-No"/><xsl:text> </xsl:text><span class="note"><xsl:copy-of select="$bwStr-AEEF-Transparent"/></span><br/> 
    833822            </td> 
    834823          </tr> 
     
    850839        <xsl:otherwise> 
    851840          <!-- has recurrenceId, so is master --> 
    852  
    853           <div id="recurringSwitch"> 
    854             <!-- set or remove "recurring" and show or hide all recurrence fields: --> 
    855             <input type="radio" name="recurring" value="true" onclick="swapRecurrence(this)"> 
    856               <xsl:if test="form/recurringEntity = 'true'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 
    857             </input> <xsl:copy-of select="$bwStr-AEEF-EventRecurs"/> 
    858             <input type="radio" name="recurring" value="false" onclick="swapRecurrence(this)"> 
    859               <xsl:if test="form/recurringEntity = 'false'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 
    860             </input> <xsl:copy-of select="$bwStr-AEEF-EventDoesNotRecur"/> 
    861           </div> 
    862  
     841           
    863842          <!-- wrapper for all recurrence fields (rrules and rdates): --> 
    864           <div id="recurrenceFields" class="invisible"
     843          <div id="recurrenceFields"
    865844            <xsl:if test="form/recurringEntity = 'true'"><xsl:attribute name="class">visible</xsl:attribute></xsl:if> 
    866845 
     
    16131592    <div id="bwClock"> 
    16141593      <!-- Bedework 24-Hour Clock time selection widget 
    1615            used with resources/bwClock.js and resources/bwClock.css --> 
     1594           used with bwClock.js and bwClock.css --> 
    16161595      <xsl:variable name="hour24" select="/bedework/hour24"/><!-- true or false --> 
    16171596      <div id="bwClockClock"> 
  • trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/head.xsl

    r2895 r2897  
    9494              dateFormat: "yy-mm-dd", 
    9595              showOn: "both", 
    96               buttonImage: "<xsl:value-of select='$resourcesRoot'/>/resources/calIcon.gif", 
     96              buttonImage: "<xsl:value-of select='$resourcesRoot'/>/images/calIcon.gif", 
    9797              buttonImageOnly: true, 
    9898              gotoCurrent: true,