Changeset 3568

Show
Ignore:
Timestamp:
06/25/12 15:34:34
Author:
johnsa
Message:

admin client: registration UI elements to event form now working in very basic mode
admin client: made numerous field labels clickable (e.g. topical areas)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/resources/javascript/bedework/bedeworkXProperties.js

    r3487 r3568  
    3636var bwXPropertySubmitterEmail = "X-BEDEWORK-SUBMITTER-EMAIL"; 
    3737var bwXPropertySubmissionClaimant = "X-BEDEWORK-SUBMISSION-CLAIMANT"; 
     38var bwXPropertyMaxTickets = "X-BEDEWORK-MAX-TICKETS"; 
     39var bwXPropertyMaxTicketsPerUser = "X-BEDEWORK-MAX-TICKETS-PER-USER"; 
     40var bwXPropertyRegistrationStart = "X-BEDEWORK-REGISTRATION-START"; 
     41var bwXPropertyRegistrationEnd = "X-BEDEWORK-REGISTRATION-END"; 
     42var bwXPropertyInstanceOnly = "X-BEDEWORK-INSTANCE-ONLY"; 
     43 
    3844 
    3945var bwXParamDisplayName = "X-BEDEWORK-PARAM-DISPLAYNAME"; 
  • trunk/deployment/webadmin/webapp/resources/default/default/default.xsl

    r3563 r3568  
    28852885        <tr class="optional"> 
    28862886          <xsl:if test="$canEdit = 'false'"><xsl:attribute name="class">invisible</xsl:attribute></xsl:if> 
    2887           <td class="fieldName">Registration:</td> 
    2888           <td> 
    2889             <input type="checkbox" id="bwIsRegisterableEvent" onclick="showRegistrationFields(this);"> 
     2887          <td class="fieldName"><xsl:copy-of select="$bwStr-AEEF-Registration"/></td> 
     2888          <td> 
     2889            <input type="checkbox" id="bwIsRegisterableEvent" name="bwIsRegisterableEvent" onclick="showRegistrationFields(this);"> 
    28902890              <xsl:if test="form/xproperties/node()[name()='X-BEDEWORK-MAX-TICKETS']"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 
    28912891            </input>  
    2892             <label for="bwIsRegisterableEvent">Users may register for this event</label> 
     2892            <label for="bwIsRegisterableEvent"><xsl:copy-of select="$bwStr-AEEF-UsersMayRegister"/></label> 
    28932893             
    28942894            <div id="bwRegistrationFields" class="invisible"> 
    28952895              <xsl:if test="form/xproperties/node()[name()='X-BEDEWORK-MAX-TICKETS']"><xsl:attribute name="class">visible</xsl:attribute></xsl:if> 
    28962896               
    2897                     <label for="xBwMaxTicketsHolder" class="interiorLabel">Max tickets:</label>  
     2897                    <label for="xBwMaxTicketsHolder" class="interiorLabel"><xsl:copy-of select="$bwStr-AEEF-MaxTickets"/></label>  
    28982898                    <input type="text"  name="xBwMaxTicketsHolder" id="xBwMaxTicketsHolder" size="3"/>  
    2899                     <xsl:text> </xsl:text><span class="fieldInfo">(maximum number of tickets allowed for the event)</span><br/> 
     2899                    <xsl:text> </xsl:text><span class="fieldInfo"><xsl:copy-of select="$bwStr-AEEF-MaxTicketsInfo"/></span><br/> 
    29002900                     
    2901                     <label for="xBwMaxTicketsPerUserHolder" class="interiorLabel">Tickets allowed:</label>  
     2901                    <label for="xBwMaxTicketsPerUserHolder" class="interiorLabel"><xsl:copy-of select="$bwStr-AEEF-TicketsAllowed"/></label>  
    29022902              <input type="text"  name="xBwMaxTicketsPerUserHolder" id="xBwMaxTicketsPerUserHolder" value="1" size="3"/>  
    2903                     <xsl:text> </xsl:text><span class="fieldInfo">(maximum number of tickets per user)</span><br/> 
     2903                    <xsl:text> </xsl:text><span class="fieldInfo"><xsl:copy-of select="$bwStr-AEEF-TicketsAllowedInfo"/></span><br/> 
    29042904                     
    2905                     <label for="xBwRegistrationOpensDate" class="interiorLabel">Registration opens:</label>   
     2905                    <label for="xBwRegistrationOpensDate" class="interiorLabel"><xsl:copy-of select="$bwStr-AEEF-RegistrationOpens"/></label>   
    29062906              <div class="dateFields"> 
    29072907                 <input type="text" name="xBwRegistrationOpensDate" id="xBwRegistrationOpensDate" size="10"/> 
     
    29352935                 </select> 
    29362936              </div> 
    2937                     <xsl:text> </xsl:text><span class="fieldInfo">(date/time registration becomes available)</span><br/> 
     2937                    <xsl:text> </xsl:text><span class="fieldInfo"><xsl:copy-of select="$bwStr-AEEF-RegistrationOpensInfo"/></span><br/> 
    29382938                     
    2939                     <label for="xBwRegistrationClosesDate" class="interiorLabel">Registration closes:</label> 
     2939                    <label for="xBwRegistrationClosesDate" class="interiorLabel"><xsl:copy-of select="$bwStr-AEEF-RegistrationCloses"/></label> 
    29402940              <div class="dateFields"> 
    29412941                <input type="text" name="xBwRegistrationClosesDate" id="xBwRegistrationClosesDate" size="10"/> 
     
    29692969                </select> 
    29702970              </div> 
    2971                     <xsl:text> </xsl:text><span class="fieldInfo">(date/time of registration cut off)</span> 
     2971                    <xsl:text> </xsl:text><span class="fieldInfo"><xsl:copy-of select="$bwStr-AEEF-RegistrationClosesInfo"/></span> 
    29722972                  </div> 
    29732973          </td> 
  • trunk/deployment/webadmin/webapp/resources/default/default/strings.xsl

    r3558 r3568  
    270270  <xsl:variable name="bwStr-AEEF-OptionalLocaleInfo">(optional: for information about the location)</xsl:variable> 
    271271  <xsl:variable name="bwStr-AEEF-Contact">Contact:</xsl:variable> 
    272   <xsl:variable name="bwStr-AEEF-Creator">Creator</xsl:variable> 
     272  <xsl:variable name="bwStr-AEEF-Creator">Creator</xsl:variable>  
    273273  <xsl:variable name="bwStr-AEEF-TopicalArea">Topical area:</xsl:variable> 
    274274  <xsl:variable name="bwStr-AEEF-ContactName">Contact (name):</xsl:variable> 
     
    276276  <xsl:variable name="bwStr-AEEF-ContactURL">Contact's URL:</xsl:variable> 
    277277  <xsl:variable name="bwStr-AEEF-ContactEmail">Contact Email Address:</xsl:variable> 
     278  <xsl:variable name="bwStr-AEEF-Registration">Registration:</xsl:variable> 
     279  <xsl:variable name="bwStr-AEEF-UsersMayRegister">Users may register for this event</xsl:variable> 
     280  <xsl:variable name="bwStr-AEEF-MaxTickets">Max tickets:</xsl:variable> 
     281  <xsl:variable name="bwStr-AEEF-MaxTicketsInfo">(maximum number of tickets allowed for the event)</xsl:variable> 
     282  <xsl:variable name="bwStr-AEEF-TicketsAllowed">Tickets allowed:</xsl:variable> 
     283  <xsl:variable name="bwStr-AEEF-TicketsAllowedInfo">(maximum number of tickets per user)</xsl:variable> 
     284  <xsl:variable name="bwStr-AEEF-RegistrationOpens">Registration opens:</xsl:variable> 
     285  <xsl:variable name="bwStr-AEEF-RegistrationOpensInfo">(date/time registration becomes available)</xsl:variable> 
     286  <xsl:variable name="bwStr-AEEF-RegistrationCloses">Registration closes:</xsl:variable> 
     287  <xsl:variable name="bwStr-AEEF-RegistrationClosesInfo">(date/time of registration cut off)</xsl:variable> 
    278288  <xsl:variable name="bwStr-AEEF-Optional">(optional)</xsl:variable> 
    279289 
  • trunk/deployment/webadmin/webapp/resources/es_ES/default/default.css

    r3515 r3568  
    521521  width: 160px; 
    522522} 
     523#bwRegistrationFields { 
     524        margin: 1em; 
     525} 
    523526.shown { 
    524527  display: inline; 
  • trunk/deployment/webadmin/webapp/resources/es_ES/default/default.xsl

    r3558 r3568  
    364364                                pmLabel: "<xsl:value-of select="$bwStr-Cloc-PM"/>" 
    365365                              }); 
     366                               
     367                              // registration open dates 
     368                  $("#xBwRegistrationOpensDate").datepicker({ 
     369                    <xsl:choose> 
     370                      <xsl:when test="false"><!-- add a test for the existence of a regOpen xprop and use it --> 
     371                        defaultDate: new Date(<xsl:value-of select="/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="/bedework/formElements/form/start/day/select/option[@selected = 'selected']/@value"/>) 
     372                      </xsl:when> 
     373                      <xsl:otherwise> 
     374                        defaultDate: new Date(<xsl:value-of select="/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="/bedework/formElements/form/start/day/select/option[@selected = 'selected']/@value"/>) 
     375                      </xsl:otherwise> 
     376                    </xsl:choose> 
     377                  }).attr("readonly", "readonly"); 
     378                  $("#xBwRegistrationOpensDate").val('<xsl:value-of select="substring-before(/bedework/formElements/form/start/rfc3339DateTime,'T')"/>'); 
     379                               
     380                              // registration open time 
     381                  $("#xBwRegistrationOpensClock").bwTimePicker({ 
     382                    hour24: <xsl:value-of select="/bedework/hour24"/>, 
     383                    attachToId: "xBwRegistrationOpensTimeFields", 
     384                    hourIds: ["xBwRegistrationOpensHour"], 
     385                    minuteIds: ["xBwRegistrationOpensMinute"], 
     386                    ampmIds: ["xBwRegistrationOpensAmpm"], 
     387                    hourLabel: "<xsl:value-of select="$bwStr-Cloc-Hour"/>", 
     388                    minuteLabel: "<xsl:value-of select="$bwStr-Cloc-Minute"/>", 
     389                    amLabel: "<xsl:value-of select="$bwStr-Cloc-AM"/>", 
     390                    pmLabel: "<xsl:value-of select="$bwStr-Cloc-PM"/>" 
     391                  }); 
     392 
     393                  // registration close dates 
     394                  $("#xBwRegistrationClosesDate").datepicker({ 
     395                    <xsl:choose> 
     396                      <xsl:when test="false"><!-- add a test for the existence of a regOpen xprop and use it --> 
     397                        defaultDate: new Date(<xsl:value-of select="/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="/bedework/formElements/form/start/day/select/option[@selected = 'selected']/@value"/>) 
     398                      </xsl:when> 
     399                      <xsl:otherwise> 
     400                        defaultDate: new Date(<xsl:value-of select="/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="/bedework/formElements/form/start/day/select/option[@selected = 'selected']/@value"/>) 
     401                      </xsl:otherwise> 
     402                    </xsl:choose> 
     403                  }).attr("readonly", "readonly"); 
     404                  $("#xBwRegistrationClosesDate").val('<xsl:value-of select="substring-before(/bedework/formElements/form/start/rfc3339DateTime,'T')"/>'); 
     405                   
     406                  // registration close time 
     407                  $("#xBwRegistrationClosesClock").bwTimePicker({ 
     408                    hour24: <xsl:value-of select="/bedework/hour24"/>, 
     409                    attachToId: "xBwRegistrationClosesTimeFields", 
     410                    hourIds: ["xBwRegistrationClosesHour"], 
     411                    minuteIds: ["xBwRegistrationClosesMinute"], 
     412                    ampmIds: ["xBwRegistrationClosesAmpm"], 
     413                    hourLabel: "<xsl:value-of select="$bwStr-Cloc-Hour"/>", 
     414                    minuteLabel: "<xsl:value-of select="$bwStr-Cloc-Minute"/>", 
     415                    amLabel: "<xsl:value-of select="$bwStr-Cloc-AM"/>", 
     416                    pmLabel: "<xsl:value-of select="$bwStr-Cloc-PM"/>" 
     417                  }); 
     418                                     
    366419                } 
    367420                </xsl:comment> 
     
    28302883        </xsl:if> 
    28312884 
     2885        <!-- Registration settings --> 
     2886        <tr class="optional"> 
     2887          <xsl:if test="$canEdit = 'false'"><xsl:attribute name="class">invisible</xsl:attribute></xsl:if> 
     2888          <td class="fieldName"><xsl:copy-of select="$bwStr-AEEF-Registration"/></td> 
     2889          <td> 
     2890            <input type="checkbox" id="bwIsRegisterableEvent" onclick="showRegistrationFields(this);"> 
     2891              <xsl:if test="form/xproperties/node()[name()='X-BEDEWORK-MAX-TICKETS']"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 
     2892            </input>  
     2893            <label for="bwIsRegisterableEvent"><xsl:copy-of select="$bwStr-AEEF-UsersMayRegister"/></label> 
     2894             
     2895            <div id="bwRegistrationFields" class="invisible"> 
     2896              <xsl:if test="form/xproperties/node()[name()='X-BEDEWORK-MAX-TICKETS']"><xsl:attribute name="class">visible</xsl:attribute></xsl:if> 
     2897               
     2898                    <label for="xBwMaxTicketsHolder" class="interiorLabel"><xsl:copy-of select="$bwStr-AEEF-MaxTickets"/></label>  
     2899                    <input type="text"  name="xBwMaxTicketsHolder" id="xBwMaxTicketsHolder" size="3"/>  
     2900                    <xsl:text> </xsl:text><span class="fieldInfo"><xsl:copy-of select="$bwStr-AEEF-MaxTicketsInfo"/></span><br/> 
     2901                     
     2902                    <label for="xBwMaxTicketsPerUserHolder" class="interiorLabel"><xsl:copy-of select="$bwStr-AEEF-TicketsAllowed"/></label>  
     2903              <input type="text"  name="xBwMaxTicketsPerUserHolder" id="xBwMaxTicketsPerUserHolder" value="1" size="3"/>  
     2904                    <xsl:text> </xsl:text><span class="fieldInfo"><xsl:copy-of select="$bwStr-AEEF-TicketsAllowedInfo"/></span><br/> 
     2905                     
     2906                    <label for="xBwRegistrationOpensDate" class="interiorLabel"><xsl:copy-of select="$bwStr-AEEF-RegistrationOpens"/></label>   
     2907              <div class="dateFields"> 
     2908                 <input type="text" name="xBwRegistrationOpensDate" id="xBwRegistrationOpensDate" size="10"/> 
     2909              </div> 
     2910              <div class="timeFields" id="xBwRegistrationOpensTimeFields"> 
     2911                 <select name="xBwRegistrationOpens.hour" id="xBwRegistrationOpensHour"> 
     2912                   <xsl:copy-of select="form/start/hour/select/*"/> 
     2913                 </select> 
     2914                 <select name="xBwRegistrationOpens.minute" id="xBwRegistrationOpensMinute"> 
     2915                   <xsl:copy-of select="form/start/minute/select/*"/> 
     2916                 </select> 
     2917                 <xsl:if test="form/start/ampm"> 
     2918                   <select name="xBwRegistrationOpens.ampm" id="xBwRegistrationOpensAmpm"> 
     2919                     <xsl:copy-of select="form/start/ampm/select/*"/> 
     2920                   </select> 
     2921                 </xsl:if> 
     2922                 <xsl:text> </xsl:text> 
     2923                 <img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" id="xBwRegistrationOpensClock" alt="*"/> 
     2924 
     2925                 <select name="xBwRegistrationOpens.tzid" id="xBwRegistrationOpensTzid" class="timezones"> 
     2926                   <xsl:if test="form/floating/input/@checked='checked'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if> 
     2927                   <option value="-1"><xsl:copy-of select="$bwStr-AEEF-SelectTimezone"/></option> 
     2928                   <xsl:variable name="xBwRegistrationOpensTzId" select="form/start/tzid"/> 
     2929                   <xsl:for-each select="/bedework/timezones/timezone"> 
     2930                     <option> 
     2931                       <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> 
     2932                       <xsl:if test="$xBwRegistrationOpensTzId = id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> 
     2933                       <xsl:value-of select="name"/> 
     2934                     </option> 
     2935                   </xsl:for-each> 
     2936                 </select> 
     2937              </div> 
     2938                    <xsl:text> </xsl:text><span class="fieldInfo"><xsl:copy-of select="$bwStr-AEEF-RegistrationOpensInfo"/></span><br/> 
     2939                     
     2940                    <label for="xBwRegistrationClosesDate" class="interiorLabel"><xsl:copy-of select="$bwStr-AEEF-RegistrationCloses"/></label> 
     2941              <div class="dateFields"> 
     2942                <input type="text" name="xBwRegistrationClosesDate" id="xBwRegistrationClosesDate" size="10"/> 
     2943              </div> 
     2944              <div class="timeFields" id="startTimeFields"> 
     2945                <select name="xBwRegistrationCloses.hour" id="xBwRegistrationClosesHour"> 
     2946                  <xsl:copy-of select="form/start/hour/select/*"/> 
     2947                </select> 
     2948                <select name="xBwRegistrationCloses.minute" id="xBwRegistrationClosesMinute"> 
     2949                  <xsl:copy-of select="form/start/minute/select/*"/> 
     2950                </select> 
     2951                <xsl:if test="form/start/ampm"> 
     2952                  <select name="xBwRegistrationCloses.ampm" id="xBwRegistrationClosesAmpm"> 
     2953                    <xsl:copy-of select="form/start/ampm/select/*"/> 
     2954                  </select> 
     2955                </xsl:if> 
     2956                <xsl:text> </xsl:text> 
     2957                <img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" id="bwRegistrationClosesClock" alt="*"/> 
     2958 
     2959                <select name="xBwRegistrationCloses.tzid" id="xBwRegistrationClosesTzid" class="timezones"> 
     2960                  <xsl:if test="form/floating/input/@checked='checked'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if> 
     2961                  <option value="-1"><xsl:copy-of select="$bwStr-AEEF-SelectTimezone"/></option> 
     2962                  <xsl:variable name="xBwRegistrationClosesTzId" select="form/start/tzid"/> 
     2963                  <xsl:for-each select="/bedework/timezones/timezone"> 
     2964                    <option> 
     2965                      <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> 
     2966                      <xsl:if test="$xBwRegistrationClosesTzId = id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> 
     2967                      <xsl:value-of select="name"/> 
     2968                    </option> 
     2969                  </xsl:for-each> 
     2970                </select> 
     2971              </div> 
     2972                    <xsl:text> </xsl:text><span class="fieldInfo"><xsl:copy-of select="$bwStr-AEEF-RegistrationClosesInfo"/></span> 
     2973                  </div> 
     2974          </td> 
     2975        </tr> 
     2976 
    28322977        <!-- Topical area  --> 
    28332978        <!-- By selecting one or more of these, appropriate categories will be set on the event --> 
     
    30483193            <xsl:variable name="virtualPath">/user<xsl:for-each select="ancestor-or-self::calendar/name">/<xsl:value-of select="."/></xsl:for-each></xsl:variable> 
    30493194            <xsl:variable name="displayName" select="summary"/> 
    3050             <input type="checkbox" name="alias" onclick="toggleBedeworkXProperty('X-BEDEWORK-ALIAS','{$displayName}','{$virtualPath}',this.checked)"> 
     3195            <input type="checkbox" name="alias" id="{generate-id(path)}" onclick="toggleBedeworkXProperty('X-BEDEWORK-ALIAS','{$displayName}','{$virtualPath}',this.checked)"> 
    30513196              <xsl:attribute name="value"><xsl:value-of select="$virtualPath"/></xsl:attribute> 
    30523197              <xsl:if test="$virtualPath = /bedework/formElements/form/xproperties//X-BEDEWORK-ALIAS/values/text"><xsl:attribute name="checked"><xsl:value-of select="checked"/></xsl:attribute></xsl:if> 
     
    30543199              <xsl:if test="/bedework/formElements/form/xproperties//X-BEDEWORK-SUBMIT-ALIAS/values/text = substring-after(aliasUri,'bwcal://')"><xsl:attribute name="checked"><xsl:value-of select="checked"/></xsl:attribute></xsl:if> 
    30553200            </input> 
     3201            <label for="{generate-id(path)}"> 
    30563202            <xsl:choose> 
    30573203              <xsl:when test="$virtualPath = /bedework/formElements/form/xproperties//X-BEDEWORK-ALIAS/values/text"> 
     
    30683214              </xsl:otherwise> 
    30693215            </xsl:choose> 
     3216            </label> 
    30703217          </xsl:otherwise> 
    30713218        </xsl:choose> 
  • trunk/deployment/webadmin/webapp/resources/es_ES/default/strings.xsl

    r3558 r3568  
    276276  <xsl:variable name="bwStr-AEEF-ContactURL">URL de contacto:</xsl:variable> 
    277277  <xsl:variable name="bwStr-AEEF-ContactEmail">Dirección de Email de contacto:</xsl:variable> 
     278  <xsl:variable name="bwStr-AEEF-Registration">Registration:</xsl:variable> 
     279  <xsl:variable name="bwStr-AEEF-UsersMayRegister">Users may register for this event</xsl:variable> 
     280  <xsl:variable name="bwStr-AEEF-MaxTickets">Max tickets:</xsl:variable> 
     281  <xsl:variable name="bwStr-AEEF-MaxTicketsInfo">(maximum number of tickets allowed for the event)</xsl:variable> 
     282  <xsl:variable name="bwStr-AEEF-TicketsAllowed">Tickets allowed:</xsl:variable> 
     283  <xsl:variable name="bwStr-AEEF-TicketsAllowedInfo">(maximum number of tickets per user)</xsl:variable> 
     284  <xsl:variable name="bwStr-AEEF-RegistrationOpens">Registration opens:</xsl:variable> 
     285  <xsl:variable name="bwStr-AEEF-RegistrationOpensInfo">(date/time registration becomes available)</xsl:variable> 
     286  <xsl:variable name="bwStr-AEEF-RegistrationCloses">Registration closes:</xsl:variable> 
     287  <xsl:variable name="bwStr-AEEF-RegistrationClosesInfo">(date/time of registration cut off)</xsl:variable> 
    278288  <xsl:variable name="bwStr-AEEF-Optional">(opcional)</xsl:variable> 
    279289 
  • trunk/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js

    r3563 r3568  
    358358  } 
    359359   
    360   //X-BEDEWORK-THUMB-IMAGE: 
     360  // X-BEDEWORK-THUMB-IMAGE: 
    361361  if (formObj["xBwImageThumbHolder"] && formObj["xBwImageThumbHolder"].value != '') { 
    362362    bwXProps.update(bwXPropertyThumbImage,[],formObj["xBwImageThumbHolder"].value,true); 
     363  } 
     364   
     365  // Event registration x-properties: 
     366  if (formObj["bwIsRegisterableEvent"].checked) { 
     367    bwXProps.update(bwXPropertyMaxTickets,[],formObj["xBwMaxTicketsHolder"].value,true); 
     368    bwXProps.update(bwXPropertyMaxTicketsPerUser,[],formObj["xBwMaxTicketsPerUserHolder"].value,true); 
     369     
     370    var bwRegDateString = "" 
     371    bwRegDateString = formObj["xBwRegistrationOpensDate"].value.replace(/-/g,"") + "T" + padTimeUnit(formObj["xBwRegistrationOpens.hour"].value) + padTimeUnit(formObj["xBwRegistrationOpens.minute"].value) + "00"; 
     372    bwXProps.update(bwXPropertyRegistrationStart,[["TZID",formObj["xBwRegistrationOpensTzid"].value]],bwRegDateString,true); 
     373 
     374    bwRegDateString = formObj["xBwRegistrationClosesDate"].value.replace(/-/g,"") + "T" + padTimeUnit(formObj["xBwRegistrationCloses.hour"].value) + padTimeUnit(formObj["xBwRegistrationCloses.minute"].value) + "00"; 
     375    bwXProps.update(bwXPropertyRegistrationEnd,[["TZID",formObj["xBwRegistrationClosesTzid"].value]],bwRegDateString,true); 
    363376  } 
    364377   
     
    368381  // commit all xproperties back to the form 
    369382  bwXProps.generate(formObj); 
     383} 
     384function padTimeUnit(val) { 
     385  timeUnit = parseInt(val,10); 
     386  if (timeUnit < 10) { 
     387    return "0" + timeUnit; 
     388  } else { 
     389    return String(timeUnit); 
     390  } 
    370391} 
    371392function removeEventImage(imgField,thumbField) {