Changeset 2088

Show
Ignore:
Timestamp:
03/03/09 16:42:59
Author:
johnsa
Message:

continue working on submissions client

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webadmin/webapp/resources/default/default/default.css

    r2080 r2088  
    314314  display: inline; 
    315315  font-size: 1.1em; 
     316  padding: 1em 0; 
    316317} 
    317318#bwSubmittedEventCommentBlock table { 
     
    328329} 
    329330#bwSubmittedEventCommentBlock p { 
    330   padding-top: 1em; 
    331331  clear: both; 
    332332} 
  • trunk/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js

    r1966 r2088  
    277277    } 
    278278    if (this.category != "") { 
    279       output += '<table>'; 
    280       output += '<tr><th colspan="2">Suggested Category:</th></tr>'; 
    281       output += '<tr><td>Category:</td><td>' + this.category + '</td></tr>'; 
    282       output += '</table>'; 
     279      output += '<p><strong>Suggested Type of Event:</strong><br/>'; 
     280      output += this.category; 
     281      output += '</p>'; 
    283282    } 
    284283    output += '<p>'; 
  • trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.css

    r1681 r2088  
    661661  border: 1px solid #666 !important; 
    662662} 
     663#bedework .aliasTree { 
     664  margin: 1em 0; 
     665  padding: 0; 
     666} 
     667#bedework .aliasTree li { 
     668  list-style: none !important; 
     669  margin: 0; 
     670  padding: 0; 
     671} 
     672#bedework .aliasTree li ul { 
     673  margin: 0 0 0.5em 0.75em; 
     674  padding-left: 10px; 
     675} 
     676#bedework img.folderForAliasTree { 
     677  padding: 0.5em 0.2em 0 0.5em; 
     678} 
    663679#bedework #submitTable { 
    664680  width: 98%; /* less than 100% helps avoid IE weirdness */ 
  • trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl

    r2087 r2088  
    471471      </div> 
    472472      <div id="bwHelp-Categories" class="invisible"> 
     473        <!-- this tab is now "topical areas - we will leave the ids named "categories" for now. --> 
    473474        <div class="navButtons"> 
    474475          <a href="javascript:show('bwEventTab-Contact','bwHelp-Contact','bwBottomNav-Contact'); hide('bwHelp-Categories','bwEventTab-Categories','bwBottomNav-Categories');"> 
     
    488489          </a> 
    489490        </div> 
    490         <strong>Step 4:</strong> Select Categories. <em>Optional.</em> 
     491        <strong>Step 4:</strong> Select Topical Areas. <em>Optional.</em> 
    491492      </div> 
    492493      <div id="bwHelp-Review" class="invisible"> 
     
    535536            <td class="fieldval"> 
    536537              <xsl:choose> 
    537                 <xsl:when test="$submissionCalendars &gt; 1"> 
     538                <xsl:when test="$submissionCalendars = 1"> 
    538539                  <!-- there is only 1 writable calendar, just send a hidden field --> 
    539540                  <xsl:variable name="newCalPath"><xsl:value-of select="/bedework/myCalendars//calendar[calType='1']/path"/></xsl:variable> 
     
    10511052      </div> 
    10521053 
    1053       <!-- Categories tab --> 
    1054       <!-- ============== --> 
     1054      <!-- Categories tab (now Topical areas) --> 
     1055      <!-- ================================== --> 
    10551056      <div id="bwEventTab-Categories" class="invisible"> 
    1056         <xsl:variable name="catCount" select="count(form/categories/all/category)"/> 
     1057        <!-- Topical area  --> 
     1058        <!-- These are the subscriptions (aliases) where the events should show up. 
     1059             By selecting one or more of these, appropriate categories will be set on the event --> 
     1060        <ul class="aliasTree"> 
     1061          <!-- hard coding the "aliases" name is not best, but will do for now --> 
     1062          <xsl:apply-templates select="form/calendars/calendar/calendar[name='aliases']" mode="showEventFormAliases"> 
     1063            <xsl:with-param name="root">true</xsl:with-param> 
     1064          </xsl:apply-templates> 
     1065        </ul> 
     1066        <p class="subFormMessage"> 
     1067          Missing a topical area?  Please describe what type of event you're submitting: 
     1068        </p> 
     1069        <div class="subForm"> 
     1070          <p> 
     1071            <label for="commentCategories">Type of event: </label> 
     1072            <input type="text" name="commentCategories" size="80"> 
     1073              <xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-CATEGORIES']/values/text"/></xsl:attribute> 
     1074            </input> 
     1075          </p> 
     1076        </div> 
     1077        <!-- xsl:variable name="catCount" select="count(form/categories/all/category)"/> 
    10571078        <xsl:choose> 
    10581079          <xsl:when test="not(form/categories/all/category)"> 
     
    10941115            </input> 
    10951116          </p> 
    1096         </div
     1117        </div--
    10971118      </div> 
    10981119 
     
    12111232      </div> 
    12121233    </div> 
     1234  </xsl:template> 
     1235 
     1236  <xsl:template match="calendar" mode="showEventFormAliases"> 
     1237    <xsl:param name="root">false</xsl:param> 
     1238    <li> 
     1239      <xsl:if test="$root != 'true'"> 
     1240        <!-- hide the root calendar. --> 
     1241        <xsl:choose> 
     1242          <xsl:when test="calType = '0'"> 
     1243            <!-- no direct selecting of folders or folder aliases: we only want users to select the 
     1244                 underlying calendar aliases --> 
     1245            <!--img src="{$resourcesRoot}/resources/catIcon.gif" width="13" height="13" alt="folder" class="folderForAliasTree" border="0"/--> 
     1246            <input type="checkbox" name="forDiplayOnly" disabled="disabled"/> 
     1247            <xsl:value-of select="name"/> 
     1248          </xsl:when> 
     1249          <xsl:otherwise> 
     1250            <input type="checkbox" name="alias"> 
     1251              <xsl:attribute name="value"><xsl:value-of select="path"/></xsl:attribute> 
     1252              <xsl:if test="path = /bedework/formElements/form/xproperties//X-BEDEWORK-ALIAS/values/text"><xsl:attribute name="checked"><xsl:value-of select="checked"/></xsl:attribute></xsl:if> 
     1253            </input> 
     1254            <xsl:value-of select="name"/> 
     1255          </xsl:otherwise> 
     1256        </xsl:choose> 
     1257      </xsl:if> 
     1258 
     1259      <xsl:if test="calendar"> 
     1260        <ul> 
     1261          <xsl:apply-templates select="calendar" mode="showEventFormAliases"/> 
     1262        </ul> 
     1263      </xsl:if> 
     1264    </li> 
    12131265  </xsl:template> 
    12141266 
  • trunk/deployment/websubmit/webapp/resources/demoskins/resources/bedeworkEventForm.js

    r1967 r2088  
    271271  // Depends on bedeworkXProperties.js 
    272272  // Set application local x-properties here. 
     273 
     274  // Submission comments as x-properties 
     275  // Only return those comments that contain non-empty values; 
     276  // throw out the subfields if main field has no value. 
     277 
     278  if (formObj["commentLocationAddress"].value != "") { 
     279    bwXProps.update(bwXPropertyLocation, 
     280                  [[bwXParamSubAddress,formObj["commentLocationSubaddress"].value], 
     281                   [bwXParamURL,formObj["commentLocationURL"].value]], 
     282                   formObj["commentLocationAddress"].value,true); 
     283  } 
     284  if (formObj["commentContactName"].value != "") { 
     285    bwXProps.update(bwXPropertyContact, 
     286                  [[bwXParamPhone,formObj["commentContactPhone"].value], 
     287                   [bwXParamURL,formObj["commentContactURL"].value], 
     288                   [bwXParamEmail,formObj["commentContactEmail"].value]], 
     289                   formObj["commentContactName"].value,true); 
     290  } 
     291  if (formObj["commentCategories"].value) { 
     292    bwXProps.update(bwXPropertyCategories,[],formObj["commentCategories"].value,true); 
     293  } 
     294  if (formObj["commentNotes"].value) { 
     295    bwXProps.update(bwXPropertySubmitComment,[],formObj["commentNotes"].value,true); 
     296  } 
    273297 
    274298  // X-BEDEWORK-IMAGE and its parameters: