Changeset 3507

Show
Ignore:
Timestamp:
03/14/12 14:34:48
Author:
johnsa
Message:

admin client :
- updates to contact and location forms: provide more contextual help
- update focusFirstElement to a simpler jQuery statement
- load jQuery on all pages

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • releases/bedework-3.8/deployment/webadmin/webapp/resources/default/default/default.css

    r3506 r3507  
    470470  font-size: 0.9em; 
    471471  font-style: italic; 
     472  color: #777; 
     473  background-color: transparent; 
    472474} 
    473475.fieldInfoAlone { 
     
    933935  font-size: 11px; 
    934936} 
     937#bedework table td { 
     938  vertical-align: top; 
     939} 
    935940table.common { 
    936941  width: 100%; 
     
    958963  color: black; 
    959964} 
    960 table.common th.commonHeader { 
     965#bedework table.common th.commonHeader { 
    961966  vertical-align: middle; 
    962967  background-color: #666; 
  • releases/bedework-3.8/deployment/webadmin/webapp/resources/default/default/default.xsl

    r3506 r3507  
    242242          </xsl:comment> 
    243243        </script> 
    244         <!-- Load jQuery when needed --> 
    245         <xsl:if test="/bedework/page='modEvent' or 
    246                       /bedework/page='modEventPending' or 
    247                       /bedework/page='modSubscription'"> 
    248           <!-- <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-1.2.6.min.js">&#160;</script> 
    249           <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-ui-1.5.2.min.js">&#160;</script>--> 
    250           <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-1.3.2.min.js">&#160;</script> 
    251           <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-ui-1.7.1.custom.min.js">&#160;</script> 
    252           <link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/jquery-ui-1.7.1.custom.css"/> 
    253           <link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/bedeworkJquery.css"/> 
    254         </xsl:if> 
     244        <!-- load jQuery  --> 
     245        <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-1.3.2.min.js">&#160;</script> 
     246        <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-ui-1.7.1.custom.min.js">&#160;</script> 
     247        <link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/jquery-ui-1.7.1.custom.css"/> 
     248        <link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/bedeworkJquery.css"/> 
     249        <!-- Global Javascript (every page): --> 
     250        <script type="text/javascript"> 
     251          <xsl:comment> 
     252            $(document).ready(function(){ 
     253              // focus first visible,enabled form element: 
     254              $(':input[type=text]:visible:enabled:first').focus(); 
     255            }); 
     256          </xsl:comment> 
     257        </script> 
     258        <!-- conditional javascript and css --> 
    255259        <xsl:if test="/bedework/page='modEvent' or /bedework/page='modEventPending'"> 
    256260          <!-- import the internationalized strings for the javascript widgets --> 
     
    384388              </xsl:if> 
    385389                             
    386               focusFirstElement(); 
    387  
    388390              // If you wish to collapse specific topical areas, you can specify them here: 
    389391              // (note that this will be managed from the admin client in time) 
     
    438440        </xsl:if> 
    439441        <link rel="icon" type="image/ico" href="{$resourcesRoot}/resources/bedework.ico" /> 
    440         <script language="JavaScript" type="text/javascript"> 
    441           <xsl:comment> 
    442           <![CDATA[ 
    443           // places the cursor in the first available form element when the page is loaded 
    444           // (if a form exists on the page) 
    445           function focusFirstElement() { 
    446             if (window.document.forms[0]) { 
    447               for (i=0; i<window.document.forms[0].elements.length; i++) { 
    448                 if (window.document.forms[0].elements[i].type != "hidden" && 
    449                     window.document.forms[0].elements[i].type != "submit" && 
    450                     window.document.forms[0].elements[i].type != "reset" && 
    451                     window.document.forms[0].elements[i].type != "button" ) { 
    452                   window.document.forms[0].elements[i].focus(); 
    453                   break; 
    454                 } 
    455               } 
    456             } 
    457           }]]> 
    458           </xsl:comment> 
    459         </script> 
    460442      </head> 
    461443      <body> 
     
    35433525          </td> 
    35443526          <td> 
    3545             <xsl:copy-of select="/bedework/formElements/form/name/*"/> 
     3527            <input type="text" name="contactName.value" size="40"> 
     3528              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/name/input/@value"/></xsl:attribute> 
     3529            </input> 
     3530            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MdCo-ContactName-Placeholder"/></span> 
    35463531          </td> 
    35473532        </tr> 
     
    35513536          </td> 
    35523537          <td> 
    3553             <xsl:copy-of select="/bedework/formElements/form/phone/*"/> 
     3538            <input type="text" name="contact.phone" size="40"> 
     3539              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/phone/input/@value"/></xsl:attribute> 
     3540              <xsl:attribute name="placeholder"><xsl:value-of select="$bwStr-MdCo-ContactPhone-Placeholder"/></xsl:attribute> 
     3541            </input> 
    35543542            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MdCo-Optional"/></span> 
    35553543          </td> 
     
    35603548          </td> 
    35613549          <td> 
    3562             <xsl:copy-of select="/bedework/formElements/form/link/*"/> 
     3550            <input type="text" name="contact.link" size="40"> 
     3551              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/link/input/@value"/></xsl:attribute> 
     3552              <xsl:attribute name="placeholder"><xsl:value-of select="$bwStr-MdCo-ContactURL-Placeholder"/></xsl:attribute> 
     3553            </input> 
    35633554            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MdCo-Optional"/></span> 
    35643555          </td> 
     
    35693560          </td> 
    35703561          <td> 
    3571             <xsl:copy-of select="/bedework/formElements/form/email/*"/> 
     3562            <input type="text" name="contact.email" size="40"> 
     3563              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/email/input/@value"/></xsl:attribute> 
     3564            </input> 
    35723565            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MdCo-Optional"/></span> 
    35733566          </td> 
     
    37513744          </td> 
    37523745          <td> 
    3753             <xsl:copy-of select="/bedework/formElements/form/address/*"/> 
     3746            <input type="text" name="locationAddress.value" size="80"> 
     3747              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/address/input/@value"/></xsl:attribute> 
     3748            </input> 
     3749            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MoLo-Address-Placeholder"/></span> 
    37543750          </td> 
    37553751        </tr> 
     
    37593755          </td> 
    37603756          <td> 
    3761             <xsl:copy-of select="/bedework/formElements/form/subaddress/*"/> 
     3757            <input type="text" name="locationSubaddress.value" size="80"> 
     3758              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/subaddress/input/@value"/></xsl:attribute> 
     3759              <xsl:attribute name="placeholder"><xsl:value-of select="$bwStr-MoLo-SubAddress-Placeholder"/></xsl:attribute> 
     3760            </input> 
    37623761            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MoLo-Optional"/></span> 
    37633762          </td> 
     
    37683767          </td> 
    37693768          <td> 
    3770             <xsl:copy-of select="/bedework/formElements/form/link/*"/> 
     3769            <input type="text" name="location.link" size="80"> 
     3770              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/link/input/@value"/></xsl:attribute> 
     3771              <xsl:attribute name="placeholder"><xsl:value-of select="$bwStr-MoLo-LocationURL-Placeholder"/></xsl:attribute> 
     3772            </input> 
    37713773            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MoLo-Optional"/></span> 
    37723774          </td> 
     
    65406542            </td> 
    65416543          </tr> 
    6542               </xsl:if> 
     6544            </xsl:if> 
    65436545        <!-- 
    65446546        <tr> 
  • releases/bedework-3.8/deployment/webadmin/webapp/resources/default/default/strings.xsl

    r3506 r3507  
    362362  <xsl:variable name="bwStr-MdCo-ContactInfo">Contact Information</xsl:variable> 
    363363  <xsl:variable name="bwStr-MdCo-ContactName">Contact (name):</xsl:variable> 
     364  <xsl:variable name="bwStr-MdCo-ContactName-Placeholder">e.g. name, group, or department</xsl:variable> 
    364365  <xsl:variable name="bwStr-MdCo-ContactPhone">Contact Phone Number:</xsl:variable> 
     366  <xsl:variable name="bwStr-MdCo-ContactPhone-Placeholder">e.g. 555-555-5555</xsl:variable> 
    365367  <xsl:variable name="bwStr-MdCo-ContactURL">Contact's URL:</xsl:variable> 
     368  <xsl:variable name="bwStr-MdCo-ContactURL-Placeholder">link to more information</xsl:variable> 
    366369  <xsl:variable name="bwStr-MdCo-ContactEmail">Contact Email Address:</xsl:variable> 
    367370  <xsl:variable name="bwStr-MdCo-Optional">(optional)</xsl:variable> 
     
    396399  <xsl:variable name="bwStr-MoLo-AddLocation">Add Location</xsl:variable> 
    397400  <xsl:variable name="bwStr-MoLo-UpdateLocation">Update Location</xsl:variable> 
    398   <xsl:variable name="bwStr-MoLo-Address">Address:</xsl:variable> 
     401  <xsl:variable name="bwStr-MoLo-Address">Primary Address:</xsl:variable> 
     402  <xsl:variable name="bwStr-MoLo-Address-Placeholder">include building and room when appropriate</xsl:variable> 
    399403  <xsl:variable name="bwStr-MoLo-SubAddress">Subaddress:</xsl:variable> 
     404  <xsl:variable name="bwStr-MoLo-SubAddress-Placeholder">street address, including city and state when appropriate</xsl:variable> 
    400405  <xsl:variable name="bwStr-MoLo-Optional">(optional)</xsl:variable> 
    401406  <xsl:variable name="bwStr-MoLo-LocationURL">Location's URL:</xsl:variable> 
     407  <xsl:variable name="bwStr-MoLo-LocationURL-Placeholder">link to more information or map</xsl:variable> 
    402408  <xsl:variable name="bwStr-MoLo-DeleteLocation">Delete Location</xsl:variable> 
    403409  <xsl:variable name="bwStr-MoLo-Cancel">Cancel</xsl:variable> 
  • releases/bedework-3.8/deployment/webadmin/webapp/resources/es_ES/default/default.css

    r3506 r3507  
    470470  font-size: 0.9em; 
    471471  font-style: italic; 
     472  color: #777; 
     473  background-color: transparent; 
    472474} 
    473475.fieldInfoAlone { 
     
    480482.fieldInfoAlone button { 
    481483        float: right; 
     484        margin: 0.5em 2em 1em 0; 
    482485} 
    483486label.interiorLabel { 
     
    932935  font-size: 11px; 
    933936} 
     937#bedework table td { 
     938  vertical-align: top; 
     939} 
    934940table.common { 
    935941  width: 100%; 
     
    957963  color: black; 
    958964} 
    959 table.common th.commonHeader { 
     965#bedework table.common th.commonHeader { 
    960966  vertical-align: middle; 
    961967  background-color: #666; 
  • releases/bedework-3.8/deployment/webadmin/webapp/resources/es_ES/default/default.xsl

    r3499 r3507  
    242242          </xsl:comment> 
    243243        </script> 
    244         <!-- Load jQuery when needed --> 
    245         <xsl:if test="/bedework/page='modEvent' or 
    246                       /bedework/page='modEventPending' or 
    247                       /bedework/page='modSubscription'"> 
    248           <!-- <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-1.2.6.min.js">&#160;</script> 
    249           <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-ui-1.5.2.min.js">&#160;</script>--> 
     244        <!-- load jQuery  --> 
    250245          <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-1.3.2.min.js">&#160;</script> 
    251246          <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-ui-1.7.1.custom.min.js">&#160;</script> 
    252247          <link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/jquery-ui-1.7.1.custom.css"/> 
    253248          <link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/bedeworkJquery.css"/> 
    254         </xsl:if> 
     249        <!-- Global Javascript (every page): --> 
     250        <script type="text/javascript"> 
     251          <xsl:comment> 
     252            $(document).ready(function(){ 
     253              // focus first visible,enabled form element: 
     254              $(':input[type=text]:visible:enabled:first').focus(); 
     255            }); 
     256          </xsl:comment> 
     257        </script> 
     258        <!-- conditional javascript and css --> 
    255259        <xsl:if test="/bedework/page='modEvent' or /bedework/page='modEventPending'"> 
    256260          <!-- import the internationalized strings for the javascript widgets --> 
     
    379383                initXProperties(); 
    380384                bwSetupDatePickers(); 
     385                             
     386                // trim the event description: 
     387                $("#description").val($.trim($("#description").val())); 
    381388              </xsl:if> 
    382                              
    383               focusFirstElement(); 
    384389 
    385390              // If you wish to collapse specific topical areas, you can specify them here: 
     
    436441        </xsl:if> 
    437442        <link rel="icon" type="image/ico" href="{$resourcesRoot}/resources/bedework.ico" /> 
    438         <script language="JavaScript" type="text/javascript"> 
    439           <xsl:comment> 
    440           <![CDATA[ 
    441           // places the cursor in the first available form element when the page is loaded 
    442           // (if a form exists on the page) 
    443           function focusFirstElement() { 
    444             if (window.document.forms[0]) { 
    445               for (i=0; i<window.document.forms[0].elements.length; i++) { 
    446                 if (window.document.forms[0].elements[i].type != "hidden" && 
    447                     window.document.forms[0].elements[i].type != "submit" && 
    448                     window.document.forms[0].elements[i].type != "reset" && 
    449                     window.document.forms[0].elements[i].type != "button" ) { 
    450                   window.document.forms[0].elements[i].focus(); 
    451                   break; 
    452                 } 
    453               } 
    454             } 
    455           }]]> 
    456           </xsl:comment> 
    457         </script> 
    458443      </head> 
    459444      <body> 
     
    756741      <ul id="errors"> 
    757742        <xsl:for-each select="/bedework/error"> 
    758           <li><xsl:apply-templates select="."/></li> 
     743          <li> 
     744            <xsl:apply-templates select="."/> 
     745                  <!-- Special cases for handling error conditions: --> 
     746                  <xsl:if test="/bedework/error/id = 'org.bedework.client.error.duplicateimage'"> 
     747              <input type="checkbox" id="overwriteEventImage" onclick="setOverwriteImageField(this);"/><label for="overwriteEventImage"><xsl:copy-of select="$bwStr-AEEF-Overwrite"/></label><xsl:text> </xsl:text> 
     748              <!-- input type="checkbox" id="reuseEventImage"/><label for="reuseEventImage">Reuse</label>--> 
     749                  </xsl:if> 
     750          </li> 
    759751        </xsl:for-each> 
    760752      </ul> 
     
    24792471          </td> 
    24802472          <td> 
    2481             <textarea name="description" cols="80" rows="8" placeholder="{$bwStr-AEEF-EnterPertientInfo}"> 
     2473            <textarea name="description" id="description" cols="80" rows="8" placeholder="{$bwStr-AEEF-EnterPertientInfo}"> 
    24822474              <xsl:if test="$canEdit = 'false'"><xsl:attribute name="class">invisible</xsl:attribute></xsl:if> 
    24832475              <xsl:value-of select="form/desc/textarea"/> 
     
    25702562              <xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-THUMB-IMAGE']/values/text" disable-output-escaping="yes"/></xsl:attribute> 
    25712563            </input> 
     2564            <xsl:if test="/bedework/imageUploadDirectory"> 
    25722565            <br/> 
    25732566            <label class="interiorLabel" for="eventImageUpload"> 
     
    25762569            <xsl:text> </xsl:text> 
    25772570            <input type="file" name="eventImageUpload" id="eventImageUpload" size="45"/> 
    2578             <button name="eventImageUseExisting" id="eventImageUseExisting"><xsl:copy-of select="$bwStr-AEEF-UseExisting"/></button><br/> 
    2579             <div class="fieldInfoAlone"><xsl:copy-of select="$bwStr-AEEF-OptionalImageUpload"/></div> 
     2571                    <input type="checkbox" name="replaceImage" id="replaceImage" value="true"/><label for="replaceImage"><xsl:copy-of select="$bwStr-AEEF-Overwrite"/></label> 
     2572                    <!-- button name="eventImageUseExisting" id="eventImageUseExisting"><xsl:copy-of select="$bwStr-AEEF-UseExisting"/></button--><br/> 
     2573                    <div class="fieldInfoAlone"> 
     2574                      <xsl:copy-of select="$bwStr-AEEF-OptionalImageUpload"/><br/> 
     2575                      <xsl:if test="/bedework/creating = 'false' and form/xproperties/node()[name()='X-BEDEWORK-IMAGE']"> 
     2576                        <button id="eventImageRemoveButton" onclick="removeEventImage(this.form.xBwImageHolder,this.form.xBwImageThumbHolder);return false;"><xsl:copy-of select="$bwStr-AEEF-RemoveImages"/></button> 
     2577                      </xsl:if> 
     2578                    </div> 
     2579                  </xsl:if> 
    25802580          </td> 
    25812581        </tr> 
     
    35263526          </td> 
    35273527          <td> 
    3528             <xsl:copy-of select="/bedework/formElements/form/name/*"/> 
     3528            <input type="text" name="contactName.value" size="40"> 
     3529              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/name/input/@value"/></xsl:attribute> 
     3530            </input> 
     3531            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MdCo-ContactName-Placeholder"/></span> 
    35293532          </td> 
    35303533        </tr> 
     
    35343537          </td> 
    35353538          <td> 
    3536             <xsl:copy-of select="/bedework/formElements/form/phone/*"/> 
     3539            <input type="text" name="contact.phone" size="40"> 
     3540              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/phone/input/@value"/></xsl:attribute> 
     3541              <xsl:attribute name="placeholder"><xsl:value-of select="$bwStr-MdCo-ContactPhone-Placeholder"/></xsl:attribute> 
     3542            </input> 
    35373543            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MdCo-Optional"/></span> 
    35383544          </td> 
     
    35433549          </td> 
    35443550          <td> 
    3545             <xsl:copy-of select="/bedework/formElements/form/link/*"/> 
     3551            <input type="text" name="contact.link" size="40"> 
     3552              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/link/input/@value"/></xsl:attribute> 
     3553              <xsl:attribute name="placeholder"><xsl:value-of select="$bwStr-MdCo-ContactURL-Placeholder"/></xsl:attribute> 
     3554            </input> 
    35463555            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MdCo-Optional"/></span> 
    35473556          </td> 
     
    35523561          </td> 
    35533562          <td> 
    3554             <xsl:copy-of select="/bedework/formElements/form/email/*"/> 
     3563            <input type="text" name="contact.email" size="40"> 
     3564              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/email/input/@value"/></xsl:attribute> 
     3565            </input> 
    35553566            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MdCo-Optional"/></span> 
    35563567          </td> 
     
    37343745          </td> 
    37353746          <td> 
    3736             <xsl:copy-of select="/bedework/formElements/form/address/*"/> 
     3747            <input type="text" name="locationAddress.value" size="80"> 
     3748              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/address/input/@value"/></xsl:attribute> 
     3749            </input> 
     3750            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MoLo-Address-Placeholder"/></span> 
    37373751          </td> 
    37383752        </tr> 
     
    37423756          </td> 
    37433757          <td> 
    3744             <xsl:copy-of select="/bedework/formElements/form/subaddress/*"/> 
     3758            <input type="text" name="locationSubaddress.value" size="80"> 
     3759              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/subaddress/input/@value"/></xsl:attribute> 
     3760              <xsl:attribute name="placeholder"><xsl:value-of select="$bwStr-MoLo-SubAddress-Placeholder"/></xsl:attribute> 
     3761            </input> 
    37453762            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MoLo-Optional"/></span> 
    37463763          </td> 
     
    37513768          </td> 
    37523769          <td> 
    3753             <xsl:copy-of select="/bedework/formElements/form/link/*"/> 
     3770            <input type="text" name="location.link" size="80"> 
     3771              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/link/input/@value"/></xsl:attribute> 
     3772              <xsl:attribute name="placeholder"><xsl:value-of select="$bwStr-MoLo-LocationURL-Placeholder"/></xsl:attribute> 
     3773            </input> 
    37543774            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MoLo-Optional"/></span> 
    37553775          </td> 
     
    65026522          </td> 
    65036523        </tr> 
    6504         <tr> 
    6505           <th> 
    6506             <xsl:copy-of select="$bwStr-CSPf-DefaultImageDirectory"/> 
    6507           </th> 
    6508           <td> 
    6509             <input type="text" name="defaultImageDirectory" value="" size="40"> 
    6510               <xsl:attribute name="value"><xsl:value-of select="/bedework/prefs/defaultImageDirectory"/></xsl:attribute> 
    6511             </input> 
    6512           </td> 
    6513         </tr> 
     6524        <xsl:if test="/bedework/userInfo/superUser = 'true'"> 
     6525          <tr> 
     6526            <th> 
     6527              <xsl:copy-of select="$bwStr-CSPf-DefaultImageDirectory"/> 
     6528            </th> 
     6529            <td> 
     6530              <input type="text" name="defaultImageDirectory" value="" size="40"> 
     6531                <xsl:attribute name="value"><xsl:value-of select="/bedework/prefs/defaultImageDirectory"/></xsl:attribute> 
     6532              </input> 
     6533            </td> 
     6534          </tr> 
     6535                <tr> 
     6536            <th> 
     6537              <xsl:copy-of select="$bwStr-CSPf-MaxEntitySize"/> 
     6538            </th> 
     6539            <td> 
     6540              <input type="text" name="maxEntitySize" value="" size="40"> 
     6541                <xsl:attribute name="value"><xsl:value-of select="/bedework/prefs/maxEntitySize"/></xsl:attribute> 
     6542              </input> 
     6543            </td> 
     6544          </tr> 
     6545            </xsl:if> 
    65146546        <!-- 
    65156547        <tr> 
  • releases/bedework-3.8/deployment/webadmin/webapp/resources/es_ES/default/strings.xsl

    r3506 r3507  
    362362  <xsl:variable name="bwStr-MdCo-ContactInfo">Información del contacto</xsl:variable> 
    363363  <xsl:variable name="bwStr-MdCo-ContactName">Contacto (nombre):</xsl:variable> 
     364  <xsl:variable name="bwStr-MdCo-ContactName-Placeholder">e.g. name, group, or department</xsl:variable> 
    364365  <xsl:variable name="bwStr-MdCo-ContactPhone">Número de teléfono del contacto:</xsl:variable> 
     366  <xsl:variable name="bwStr-MdCo-ContactPhone-Placeholder">e.g. 555-555-5555</xsl:variable> 
    365367  <xsl:variable name="bwStr-MdCo-ContactURL">URL del contacto:</xsl:variable> 
     368  <xsl:variable name="bwStr-MdCo-ContactURL-Placeholder">link to more information</xsl:variable> 
    366369  <xsl:variable name="bwStr-MdCo-ContactEmail">Dirección de Email del contacto:</xsl:variable> 
    367370  <xsl:variable name="bwStr-MdCo-Optional">(opcional)</xsl:variable> 
     
    397400  <xsl:variable name="bwStr-MoLo-UpdateLocation">Actualizar localización</xsl:variable> 
    398401  <xsl:variable name="bwStr-MoLo-Address">Dirección:</xsl:variable> 
     402  <xsl:variable name="bwStr-MoLo-Address-Placeholder">include building and room when appropriate</xsl:variable> 
    399403  <xsl:variable name="bwStr-MoLo-SubAddress">Subdirección:</xsl:variable> 
     404  <xsl:variable name="bwStr-MoLo-SubAddress-Placeholder">street address, including city and state when appropriate</xsl:variable> 
    400405  <xsl:variable name="bwStr-MoLo-Optional">(opcional)</xsl:variable> 
    401406  <xsl:variable name="bwStr-MoLo-LocationURL">URL de la localización:</xsl:variable> 
     407  <xsl:variable name="bwStr-MoLo-LocationURL-Placeholder">link to more information or map</xsl:variable> 
    402408  <xsl:variable name="bwStr-MoLo-DeleteLocation">Borrar localización</xsl:variable> 
    403409  <xsl:variable name="bwStr-MoLo-Cancel">Cancelar</xsl:variable> 
  • trunk/deployment/webadmin/webapp/resources/default/default/default.css

    r3506 r3507  
    470470  font-size: 0.9em; 
    471471  font-style: italic; 
     472  color: #777; 
     473  background-color: transparent; 
    472474} 
    473475.fieldInfoAlone { 
     
    933935  font-size: 11px; 
    934936} 
     937#bedework table td { 
     938  vertical-align: top; 
     939} 
    935940table.common { 
    936941  width: 100%; 
     
    958963  color: black; 
    959964} 
    960 table.common th.commonHeader { 
     965#bedework table.common th.commonHeader { 
    961966  vertical-align: middle; 
    962967  background-color: #666; 
  • trunk/deployment/webadmin/webapp/resources/default/default/default.xsl

    r3506 r3507  
    242242          </xsl:comment> 
    243243        </script> 
    244         <!-- Load jQuery when needed --> 
    245         <xsl:if test="/bedework/page='modEvent' or 
    246                       /bedework/page='modEventPending' or 
    247                       /bedework/page='modSubscription'"> 
    248           <!-- <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-1.2.6.min.js">&#160;</script> 
    249           <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-ui-1.5.2.min.js">&#160;</script>--> 
    250           <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-1.3.2.min.js">&#160;</script> 
    251           <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-ui-1.7.1.custom.min.js">&#160;</script> 
    252           <link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/jquery-ui-1.7.1.custom.css"/> 
    253           <link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/bedeworkJquery.css"/> 
    254         </xsl:if> 
     244        <!-- load jQuery  --> 
     245        <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-1.3.2.min.js">&#160;</script> 
     246        <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-ui-1.7.1.custom.min.js">&#160;</script> 
     247        <link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/jquery-ui-1.7.1.custom.css"/> 
     248        <link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/bedeworkJquery.css"/> 
     249        <!-- Global Javascript (every page): --> 
     250        <script type="text/javascript"> 
     251          <xsl:comment> 
     252            $(document).ready(function(){ 
     253              // focus first visible,enabled form element: 
     254              $(':input[type=text]:visible:enabled:first').focus(); 
     255            }); 
     256          </xsl:comment> 
     257        </script> 
     258        <!-- conditional javascript and css --> 
    255259        <xsl:if test="/bedework/page='modEvent' or /bedework/page='modEventPending'"> 
    256260          <!-- import the internationalized strings for the javascript widgets --> 
     
    384388              </xsl:if> 
    385389                             
    386               focusFirstElement(); 
    387  
    388390              // If you wish to collapse specific topical areas, you can specify them here: 
    389391              // (note that this will be managed from the admin client in time) 
     
    438440        </xsl:if> 
    439441        <link rel="icon" type="image/ico" href="{$resourcesRoot}/resources/bedework.ico" /> 
    440         <script language="JavaScript" type="text/javascript"> 
    441           <xsl:comment> 
    442           <![CDATA[ 
    443           // places the cursor in the first available form element when the page is loaded 
    444           // (if a form exists on the page) 
    445           function focusFirstElement() { 
    446             if (window.document.forms[0]) { 
    447               for (i=0; i<window.document.forms[0].elements.length; i++) { 
    448                 if (window.document.forms[0].elements[i].type != "hidden" && 
    449                     window.document.forms[0].elements[i].type != "submit" && 
    450                     window.document.forms[0].elements[i].type != "reset" && 
    451                     window.document.forms[0].elements[i].type != "button" ) { 
    452                   window.document.forms[0].elements[i].focus(); 
    453                   break; 
    454                 } 
    455               } 
    456             } 
    457           }]]> 
    458           </xsl:comment> 
    459         </script> 
    460442      </head> 
    461443      <body> 
     
    35433525          </td> 
    35443526          <td> 
    3545             <xsl:copy-of select="/bedework/formElements/form/name/*"/> 
     3527            <input type="text" name="contactName.value" size="40"> 
     3528              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/name/input/@value"/></xsl:attribute> 
     3529            </input> 
     3530            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MdCo-ContactName-Placeholder"/></span> 
    35463531          </td> 
    35473532        </tr> 
     
    35513536          </td> 
    35523537          <td> 
    3553             <xsl:copy-of select="/bedework/formElements/form/phone/*"/> 
     3538            <input type="text" name="contact.phone" size="40"> 
     3539              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/phone/input/@value"/></xsl:attribute> 
     3540              <xsl:attribute name="placeholder"><xsl:value-of select="$bwStr-MdCo-ContactPhone-Placeholder"/></xsl:attribute> 
     3541            </input> 
    35543542            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MdCo-Optional"/></span> 
    35553543          </td> 
     
    35603548          </td> 
    35613549          <td> 
    3562             <xsl:copy-of select="/bedework/formElements/form/link/*"/> 
     3550            <input type="text" name="contact.link" size="40"> 
     3551              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/link/input/@value"/></xsl:attribute> 
     3552              <xsl:attribute name="placeholder"><xsl:value-of select="$bwStr-MdCo-ContactURL-Placeholder"/></xsl:attribute> 
     3553            </input> 
    35633554            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MdCo-Optional"/></span> 
    35643555          </td> 
     
    35693560          </td> 
    35703561          <td> 
    3571             <xsl:copy-of select="/bedework/formElements/form/email/*"/> 
     3562            <input type="text" name="contact.email" size="40"> 
     3563              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/email/input/@value"/></xsl:attribute> 
     3564            </input> 
    35723565            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MdCo-Optional"/></span> 
    35733566          </td> 
     
    37513744          </td> 
    37523745          <td> 
    3753             <xsl:copy-of select="/bedework/formElements/form/address/*"/> 
     3746            <input type="text" name="locationAddress.value" size="80"> 
     3747              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/address/input/@value"/></xsl:attribute> 
     3748            </input> 
     3749            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MoLo-Address-Placeholder"/></span> 
    37543750          </td> 
    37553751        </tr> 
     
    37593755          </td> 
    37603756          <td> 
    3761             <xsl:copy-of select="/bedework/formElements/form/subaddress/*"/> 
     3757            <input type="text" name="locationSubaddress.value" size="80"> 
     3758              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/subaddress/input/@value"/></xsl:attribute> 
     3759              <xsl:attribute name="placeholder"><xsl:value-of select="$bwStr-MoLo-SubAddress-Placeholder"/></xsl:attribute> 
     3760            </input> 
    37623761            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MoLo-Optional"/></span> 
    37633762          </td> 
     
    37683767          </td> 
    37693768          <td> 
    3770             <xsl:copy-of select="/bedework/formElements/form/link/*"/> 
     3769            <input type="text" name="location.link" size="80"> 
     3770              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/link/input/@value"/></xsl:attribute> 
     3771              <xsl:attribute name="placeholder"><xsl:value-of select="$bwStr-MoLo-LocationURL-Placeholder"/></xsl:attribute> 
     3772            </input> 
    37713773            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MoLo-Optional"/></span> 
    37723774          </td> 
     
    65406542            </td> 
    65416543          </tr> 
    6542               </xsl:if> 
     6544            </xsl:if> 
    65436545        <!-- 
    65446546        <tr> 
  • trunk/deployment/webadmin/webapp/resources/default/default/strings.xsl

    r3506 r3507  
    362362  <xsl:variable name="bwStr-MdCo-ContactInfo">Contact Information</xsl:variable> 
    363363  <xsl:variable name="bwStr-MdCo-ContactName">Contact (name):</xsl:variable> 
     364  <xsl:variable name="bwStr-MdCo-ContactName-Placeholder">e.g. name, group, or department</xsl:variable> 
    364365  <xsl:variable name="bwStr-MdCo-ContactPhone">Contact Phone Number:</xsl:variable> 
     366  <xsl:variable name="bwStr-MdCo-ContactPhone-Placeholder">e.g. 555-555-5555</xsl:variable> 
    365367  <xsl:variable name="bwStr-MdCo-ContactURL">Contact's URL:</xsl:variable> 
     368  <xsl:variable name="bwStr-MdCo-ContactURL-Placeholder">link to more information</xsl:variable> 
    366369  <xsl:variable name="bwStr-MdCo-ContactEmail">Contact Email Address:</xsl:variable> 
    367370  <xsl:variable name="bwStr-MdCo-Optional">(optional)</xsl:variable> 
     
    396399  <xsl:variable name="bwStr-MoLo-AddLocation">Add Location</xsl:variable> 
    397400  <xsl:variable name="bwStr-MoLo-UpdateLocation">Update Location</xsl:variable> 
    398   <xsl:variable name="bwStr-MoLo-Address">Address:</xsl:variable> 
     401  <xsl:variable name="bwStr-MoLo-Address">Primary Address:</xsl:variable> 
     402  <xsl:variable name="bwStr-MoLo-Address-Placeholder">include building and room when appropriate</xsl:variable> 
    399403  <xsl:variable name="bwStr-MoLo-SubAddress">Subaddress:</xsl:variable> 
     404  <xsl:variable name="bwStr-MoLo-SubAddress-Placeholder">street address, including city and state when appropriate</xsl:variable> 
    400405  <xsl:variable name="bwStr-MoLo-Optional">(optional)</xsl:variable> 
    401406  <xsl:variable name="bwStr-MoLo-LocationURL">Location's URL:</xsl:variable> 
     407  <xsl:variable name="bwStr-MoLo-LocationURL-Placeholder">link to more information or map</xsl:variable> 
    402408  <xsl:variable name="bwStr-MoLo-DeleteLocation">Delete Location</xsl:variable> 
    403409  <xsl:variable name="bwStr-MoLo-Cancel">Cancel</xsl:variable> 
  • trunk/deployment/webadmin/webapp/resources/es_ES/default/default.css

    r3506 r3507  
    470470  font-size: 0.9em; 
    471471  font-style: italic; 
     472  color: #777; 
     473  background-color: transparent; 
    472474} 
    473475.fieldInfoAlone { 
     
    480482.fieldInfoAlone button { 
    481483        float: right; 
     484        margin: 0.5em 2em 1em 0; 
    482485} 
    483486label.interiorLabel { 
     
    932935  font-size: 11px; 
    933936} 
     937#bedework table td { 
     938  vertical-align: top; 
     939} 
    934940table.common { 
    935941  width: 100%; 
     
    957963  color: black; 
    958964} 
    959 table.common th.commonHeader { 
     965#bedework table.common th.commonHeader { 
    960966  vertical-align: middle; 
    961967  background-color: #666; 
  • trunk/deployment/webadmin/webapp/resources/es_ES/default/default.xsl

    r3497 r3507  
    242242          </xsl:comment> 
    243243        </script> 
    244         <!-- Load jQuery when needed --> 
    245         <xsl:if test="/bedework/page='modEvent' or 
    246                       /bedework/page='modEventPending' or 
    247                       /bedework/page='modSubscription'"> 
    248           <!-- <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-1.2.6.min.js">&#160;</script> 
    249           <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-ui-1.5.2.min.js">&#160;</script>--> 
     244        <!-- load jQuery  --> 
    250245          <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-1.3.2.min.js">&#160;</script> 
    251246          <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-ui-1.7.1.custom.min.js">&#160;</script> 
    252247          <link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/jquery-ui-1.7.1.custom.css"/> 
    253248          <link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/bedeworkJquery.css"/> 
    254         </xsl:if> 
     249        <!-- Global Javascript (every page): --> 
     250        <script type="text/javascript"> 
     251          <xsl:comment> 
     252            $(document).ready(function(){ 
     253              // focus first visible,enabled form element: 
     254              $(':input[type=text]:visible:enabled:first').focus(); 
     255            }); 
     256          </xsl:comment> 
     257        </script> 
     258        <!-- conditional javascript and css --> 
    255259        <xsl:if test="/bedework/page='modEvent' or /bedework/page='modEventPending'"> 
    256260          <!-- import the internationalized strings for the javascript widgets --> 
     
    379383                initXProperties(); 
    380384                bwSetupDatePickers(); 
     385                             
     386                // trim the event description: 
     387                $("#description").val($.trim($("#description").val())); 
    381388              </xsl:if> 
    382                              
    383               focusFirstElement(); 
    384389 
    385390              // If you wish to collapse specific topical areas, you can specify them here: 
     
    436441        </xsl:if> 
    437442        <link rel="icon" type="image/ico" href="{$resourcesRoot}/resources/bedework.ico" /> 
    438         <script language="JavaScript" type="text/javascript"> 
    439           <xsl:comment> 
    440           <![CDATA[ 
    441           // places the cursor in the first available form element when the page is loaded 
    442           // (if a form exists on the page) 
    443           function focusFirstElement() { 
    444             if (window.document.forms[0]) { 
    445               for (i=0; i<window.document.forms[0].elements.length; i++) { 
    446                 if (window.document.forms[0].elements[i].type != "hidden" && 
    447                     window.document.forms[0].elements[i].type != "submit" && 
    448                     window.document.forms[0].elements[i].type != "reset" && 
    449                     window.document.forms[0].elements[i].type != "button" ) { 
    450                   window.document.forms[0].elements[i].focus(); 
    451                   break; 
    452                 } 
    453               } 
    454             } 
    455           }]]> 
    456           </xsl:comment> 
    457         </script> 
    458443      </head> 
    459444      <body> 
     
    756741      <ul id="errors"> 
    757742        <xsl:for-each select="/bedework/error"> 
    758           <li><xsl:apply-templates select="."/></li> 
     743          <li> 
     744            <xsl:apply-templates select="."/> 
     745                  <!-- Special cases for handling error conditions: --> 
     746                  <xsl:if test="/bedework/error/id = 'org.bedework.client.error.duplicateimage'"> 
     747              <input type="checkbox" id="overwriteEventImage" onclick="setOverwriteImageField(this);"/><label for="overwriteEventImage"><xsl:copy-of select="$bwStr-AEEF-Overwrite"/></label><xsl:text> </xsl:text> 
     748              <!-- input type="checkbox" id="reuseEventImage"/><label for="reuseEventImage">Reuse</label>--> 
     749                  </xsl:if> 
     750          </li> 
    759751        </xsl:for-each> 
    760752      </ul> 
     
    24792471          </td> 
    24802472          <td> 
    2481             <textarea name="description" cols="80" rows="8" placeholder="{$bwStr-AEEF-EnterPertientInfo}"> 
     2473            <textarea name="description" id="description" cols="80" rows="8" placeholder="{$bwStr-AEEF-EnterPertientInfo}"> 
    24822474              <xsl:if test="$canEdit = 'false'"><xsl:attribute name="class">invisible</xsl:attribute></xsl:if> 
    24832475              <xsl:value-of select="form/desc/textarea"/> 
     
    25702562              <xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-THUMB-IMAGE']/values/text" disable-output-escaping="yes"/></xsl:attribute> 
    25712563            </input> 
     2564            <xsl:if test="/bedework/imageUploadDirectory"> 
    25722565            <br/> 
    25732566            <label class="interiorLabel" for="eventImageUpload"> 
     
    25762569            <xsl:text> </xsl:text> 
    25772570            <input type="file" name="eventImageUpload" id="eventImageUpload" size="45"/> 
    2578             <button name="eventImageUseExisting" id="eventImageUseExisting"><xsl:copy-of select="$bwStr-AEEF-UseExisting"/></button><br/> 
    2579             <div class="fieldInfoAlone"><xsl:copy-of select="$bwStr-AEEF-OptionalImageUpload"/></div> 
     2571                    <input type="checkbox" name="replaceImage" id="replaceImage" value="true"/><label for="replaceImage"><xsl:copy-of select="$bwStr-AEEF-Overwrite"/></label> 
     2572                    <!-- button name="eventImageUseExisting" id="eventImageUseExisting"><xsl:copy-of select="$bwStr-AEEF-UseExisting"/></button--><br/> 
     2573                    <div class="fieldInfoAlone"> 
     2574                      <xsl:copy-of select="$bwStr-AEEF-OptionalImageUpload"/><br/> 
     2575                      <xsl:if test="/bedework/creating = 'false' and form/xproperties/node()[name()='X-BEDEWORK-IMAGE']"> 
     2576                        <button id="eventImageRemoveButton" onclick="removeEventImage(this.form.xBwImageHolder,this.form.xBwImageThumbHolder);return false;"><xsl:copy-of select="$bwStr-AEEF-RemoveImages"/></button> 
     2577                      </xsl:if> 
     2578                    </div> 
     2579                  </xsl:if> 
    25802580          </td> 
    25812581        </tr> 
     
    35263526          </td> 
    35273527          <td> 
    3528             <xsl:copy-of select="/bedework/formElements/form/name/*"/> 
     3528            <input type="text" name="contactName.value" size="40"> 
     3529              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/name/input/@value"/></xsl:attribute> 
     3530            </input> 
     3531            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MdCo-ContactName-Placeholder"/></span> 
    35293532          </td> 
    35303533        </tr> 
     
    35343537          </td> 
    35353538          <td> 
    3536             <xsl:copy-of select="/bedework/formElements/form/phone/*"/> 
     3539            <input type="text" name="contact.phone" size="40"> 
     3540              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/phone/input/@value"/></xsl:attribute> 
     3541              <xsl:attribute name="placeholder"><xsl:value-of select="$bwStr-MdCo-ContactPhone-Placeholder"/></xsl:attribute> 
     3542            </input> 
    35373543            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MdCo-Optional"/></span> 
    35383544          </td> 
     
    35433549          </td> 
    35443550          <td> 
    3545             <xsl:copy-of select="/bedework/formElements/form/link/*"/> 
     3551            <input type="text" name="contact.link" size="40"> 
     3552              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/link/input/@value"/></xsl:attribute> 
     3553              <xsl:attribute name="placeholder"><xsl:value-of select="$bwStr-MdCo-ContactURL-Placeholder"/></xsl:attribute> 
     3554            </input> 
    35463555            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MdCo-Optional"/></span> 
    35473556          </td> 
     
    35523561          </td> 
    35533562          <td> 
    3554             <xsl:copy-of select="/bedework/formElements/form/email/*"/> 
     3563            <input type="text" name="contact.email" size="40"> 
     3564              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/email/input/@value"/></xsl:attribute> 
     3565            </input> 
    35553566            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MdCo-Optional"/></span> 
    35563567          </td> 
     
    37343745          </td> 
    37353746          <td> 
    3736             <xsl:copy-of select="/bedework/formElements/form/address/*"/> 
     3747            <input type="text" name="locationAddress.value" size="80"> 
     3748              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/address/input/@value"/></xsl:attribute> 
     3749            </input> 
     3750            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MoLo-Address-Placeholder"/></span> 
    37373751          </td> 
    37383752        </tr> 
     
    37423756          </td> 
    37433757          <td> 
    3744             <xsl:copy-of select="/bedework/formElements/form/subaddress/*"/> 
     3758            <input type="text" name="locationSubaddress.value" size="80"> 
     3759              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/subaddress/input/@value"/></xsl:attribute> 
     3760              <xsl:attribute name="placeholder"><xsl:value-of select="$bwStr-MoLo-SubAddress-Placeholder"/></xsl:attribute> 
     3761            </input> 
    37453762            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MoLo-Optional"/></span> 
    37463763          </td> 
     
    37513768          </td> 
    37523769          <td> 
    3753             <xsl:copy-of select="/bedework/formElements/form/link/*"/> 
     3770            <input type="text" name="location.link" size="80"> 
     3771              <xsl:attribute name="value"><xsl:value-of select="/bedework/formElements/form/link/input/@value"/></xsl:attribute> 
     3772              <xsl:attribute name="placeholder"><xsl:value-of select="$bwStr-MoLo-LocationURL-Placeholder"/></xsl:attribute> 
     3773            </input> 
    37543774            <span class="fieldInfo"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-MoLo-Optional"/></span> 
    37553775          </td> 
     
    65026522          </td> 
    65036523        </tr> 
    6504         <tr> 
    6505           <th> 
    6506             <xsl:copy-of select="$bwStr-CSPf-DefaultImageDirectory"/> 
    6507           </th> 
    6508           <td> 
    6509             <input type="text" name="defaultImageDirectory" value="" size="40"> 
    6510               <xsl:attribute name="value"><xsl:value-of select="/bedework/prefs/defaultImageDirectory"/></xsl:attribute> 
    6511             </input> 
    6512           </td> 
    6513         </tr> 
     6524        <xsl:if test="/bedework/userInfo/superUser = 'true'"> 
     6525          <tr> 
     6526            <th> 
     6527              <xsl:copy-of select="$bwStr-CSPf-DefaultImageDirectory"/> 
     6528            </th> 
     6529            <td> 
     6530              <input type="text" name="defaultImageDirectory" value="" size="40"> 
     6531                <xsl:attribute name="value"><xsl:value-of select="/bedework/prefs/defaultImageDirectory"/></xsl:attribute> 
     6532              </input> 
     6533            </td> 
     6534          </tr> 
     6535                <tr> 
     6536            <th> 
     6537              <xsl:copy-of select="$bwStr-CSPf-MaxEntitySize"/> 
     6538            </th> 
     6539            <td> 
     6540              <input type="text" name="maxEntitySize" value="" size="40"> 
     6541                <xsl:attribute name="value"><xsl:value-of select="/bedework/prefs/maxEntitySize"/></xsl:attribute> 
     6542              </input> 
     6543            </td> 
     6544          </tr> 
     6545            </xsl:if> 
    65146546        <!-- 
    65156547        <tr> 
  • trunk/deployment/webadmin/webapp/resources/es_ES/default/strings.xsl

    r3506 r3507  
    362362  <xsl:variable name="bwStr-MdCo-ContactInfo">Información del contacto</xsl:variable> 
    363363  <xsl:variable name="bwStr-MdCo-ContactName">Contacto (nombre):</xsl:variable> 
     364  <xsl:variable name="bwStr-MdCo-ContactName-Placeholder">e.g. name, group, or department</xsl:variable> 
    364365  <xsl:variable name="bwStr-MdCo-ContactPhone">Número de teléfono del contacto:</xsl:variable> 
     366  <xsl:variable name="bwStr-MdCo-ContactPhone-Placeholder">e.g. 555-555-5555</xsl:variable> 
    365367  <xsl:variable name="bwStr-MdCo-ContactURL">URL del contacto:</xsl:variable> 
     368  <xsl:variable name="bwStr-MdCo-ContactURL-Placeholder">link to more information</xsl:variable> 
    366369  <xsl:variable name="bwStr-MdCo-ContactEmail">Dirección de Email del contacto:</xsl:variable> 
    367370  <xsl:variable name="bwStr-MdCo-Optional">(opcional)</xsl:variable> 
     
    397400  <xsl:variable name="bwStr-MoLo-UpdateLocation">Actualizar localización</xsl:variable> 
    398401  <xsl:variable name="bwStr-MoLo-Address">Dirección:</xsl:variable> 
     402  <xsl:variable name="bwStr-MoLo-Address-Placeholder">include building and room when appropriate</xsl:variable> 
    399403  <xsl:variable name="bwStr-MoLo-SubAddress">Subdirección:</xsl:variable> 
     404  <xsl:variable name="bwStr-MoLo-SubAddress-Placeholder">street address, including city and state when appropriate</xsl:variable> 
    400405  <xsl:variable name="bwStr-MoLo-Optional">(opcional)</xsl:variable> 
    401406  <xsl:variable name="bwStr-MoLo-LocationURL">URL de la localización:</xsl:variable> 
     407  <xsl:variable name="bwStr-MoLo-LocationURL-Placeholder">link to more information or map</xsl:variable> 
    402408  <xsl:variable name="bwStr-MoLo-DeleteLocation">Borrar localización</xsl:variable> 
    403409  <xsl:variable name="bwStr-MoLo-Cancel">Cancelar</xsl:variable>