Changeset 2075
- Timestamp:
- 02/25/09 00:27:42
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r2074 r2075 2739 2739 <td> 2740 2740 <xsl:for-each select="form/categories/all/category[position() <= ceiling($catCount div 2)]"> 2741 <input type="checkbox" name="categoryKey" >2741 <input type="checkbox" name="categoryKey"/> 2742 2742 <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> 2743 2743 <xsl:if test="keyword = form/categories/current//category/keyword"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 2744 2744 <xsl:value-of select="keyword"/> 2745 < /input><br/>2745 <br/> 2746 2746 </xsl:for-each> 2747 2747 </td> 2748 2748 <td> 2749 2749 <xsl:for-each select="form/categories/all/category[position() > ceiling($catCount div 2)]"> 2750 <input type="checkbox" name="categoryKey" >2750 <input type="checkbox" name="categoryKey"/> 2751 2751 <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> 2752 2752 <xsl:if test="keyword = form/categories/current//category/keyword"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 2753 2753 <xsl:value-of select="keyword"/> 2754 < /input><br/>2754 <br/> 2755 2755 </xsl:for-each> 2756 2756 </td> … … 3166 3166 day(s) 3167 3167 </p> 3168 < p>3168 <div> 3169 3169 <input type="checkbox" name="swapDayMonthCheckBoxList" value="" onclick="swapVisible(this,'dayMonthCheckBoxList')"/> 3170 3170 in these months: … … 3181 3181 </xsl:for-each> 3182 3182 </div> 3183 </ p>3183 </div> 3184 3184 <!--<p> 3185 3185 <input type="checkbox" name="swapDaySetPos" value="" onclick="swapVisible(this,'daySetPos')"/> … … 3201 3201 week(s) on: 3202 3202 </p> 3203 <p> 3204 <div id="weekRecurFields"> 3205 <xsl:call-template name="byDayChkBoxList"> 3206 <xsl:with-param name="name">byDayWeek</xsl:with-param> 3207 </xsl:call-template> 3208 </div> 3209 </p> 3203 <div id="weekRecurFields"> 3204 <xsl:call-template name="byDayChkBoxList"> 3205 <xsl:with-param name="name">byDayWeek</xsl:with-param> 3206 </xsl:call-template> 3207 </div> 3210 3208 <p class="weekRecurLinks"> 3211 3209 <a href="javascript:recurSelectWeekdays('weekRecurFields')">select weekdays</a> | … … 3240 3238 <div id="monthRecurFields1"> 3241 3239 on 3242 <select name="bymonthposPos1" width="7em" onchange="changeClass('monthRecurFields2','shown')">3240 <select name="bymonthposPos1" size="7" onchange="changeClass('monthRecurFields2','shown')"> 3243 3241 <xsl:call-template name="recurrenceDayPosOptions"/> 3244 3242 </select> … … 3251 3249 </xsl:call-template> 3252 3250 </div> 3253 < p>3251 <div> 3254 3252 <input type="checkbox" name="swapMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'monthDaysCheckBoxList')"/> 3255 3253 on these days:<br/> … … 3261 3259 </xsl:call-template> 3262 3260 </div> 3263 </ p>3261 </div> 3264 3262 </div> 3265 3263 <!-- yearly --> … … 3278 3276 <div id="yearRecurFields1"> 3279 3277 on 3280 <select name="byyearposPos1" width="7em" onchange="changeClass('yearRecurFields2','shown')">3278 <select name="byyearposPos1" size="7" onchange="changeClass('yearRecurFields2','shown')"> 3281 3279 <xsl:call-template name="recurrenceDayPosOptions"/> 3282 3280 </select> … … 3289 3287 </xsl:call-template> 3290 3288 </div> 3291 < p>3289 <div> 3292 3290 <input type="checkbox" name="swapYearMonthCheckBoxList" value="" onclick="swapVisible(this,'yearMonthCheckBoxList')"/> 3293 3291 in these months: … … 3304 3302 </xsl:for-each> 3305 3303 </div> 3306 </ p>3307 < p>3304 </div> 3305 <div> 3308 3306 <input type="checkbox" name="swapYearMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'yearMonthDaysCheckBoxList')"/> 3309 3307 on these days of the month:<br/> … … 3315 3313 </xsl:call-template> 3316 3314 </div> 3317 </ p>3318 < p>3315 </div> 3316 <div> 3319 3317 <input type="checkbox" name="swapYearWeeksCheckBoxList" value="" onclick="swapVisible(this,'yearWeeksCheckBoxList')"/> 3320 3318 in these weeks of the year:<br/> … … 3326 3324 </xsl:call-template> 3327 3325 </div> 3328 </ p>3329 < p>3326 </div> 3327 <div> 3330 3328 <input type="checkbox" name="swapYearDaysCheckBoxList" value="" onclick="swapVisible(this,'yearDaysCheckBoxList')"/> 3331 3329 on these days of the year:<br/> … … 3337 3335 </xsl:call-template> 3338 3336 </div> 3339 </ p>3337 </div> 3340 3338 <p> 3341 3339 Week start: … … 3656 3654 <xsl:attribute name="id"><xsl:value-of select="$name"/>RecurFields<xsl:value-of select="$current"/></xsl:attribute> 3657 3655 and 3658 <select width="12em">3656 <select size="12"> 3659 3657 <xsl:attribute name="name">by<xsl:value-of select="$name"/>posPos<xsl:value-of select="$current"/></xsl:attribute> 3660 3658 <xsl:if test="$current != $total"> … … 4547 4545 <xsl:when test="/bedework/myCalendars/calendars/calendar[currentAccess/current-user-privilege-set/privilege/write-content]"> 4548 4546 <xsl:apply-templates select="/bedework/myCalendars/calendars/calendar[currentAccess/current-user-privilege-set/privilege/write-content]" mode="selectCalForEventCalTree"/> 4549 </xsl:when>4550 <xsl:otherwise>4551 <li><em>no writable calendars</em></li>4552 </xsl:otherwise>4553 </xsl:choose>4554 </ul>4555 <h4>Subscribed Calendars</h4>4556 <ul class="calendarTree">4557 <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/></xsl:variable>4558 <xsl:choose>4559 <xsl:when test="/bedework/mySubscriptions/subscription[not(contains(uri,$userPath))]/calendars/calendar[currentAccess/current-user-privilege-set/privilege/write-content]">4560 <xsl:for-each select="/bedework/mySubscriptions/subscription[not(contains(uri,$userPath)) and calendars/calendar[currentAccess/current-user-privilege-set/privilege/write-content]]">4561 <li class="subscription">4562 <xsl:value-of select="name"/>4563 <ul>4564 <xsl:apply-templates select="calendars/calendar[currentAccess/current-user-privilege-set/privilege/write-content]" mode="selectCalForEventCalTree"/>4565 </ul>4566 </li>4567 </xsl:for-each>4568 4547 </xsl:when> 4569 4548 <xsl:otherwise> … … 7758 7737 </input> 7759 7738 <p> 7760 <input type="text" name="who" width="40"/>7739 <input type="text" name="who" size="40"/> 7761 7740 <span class="nowrap"><input type="radio" name="whoType" value="user" checked="checked"/>user</span> 7762 7741 <span class="nowrap"><input type="radio" name="whoType" value="group"/>group</span> … … 8134 8113 <td class="acls"> 8135 8114 <xsl:if test="grant"> 8136 grant:8137 8115 <span class="grant"> 8138 8116 <xsl:for-each select="grant/privilege/*"> … … 8143 8121 </xsl:if> 8144 8122 <xsl:if test="deny"> 8145 deny:8146 8123 <span class="deny"> 8147 8124 <xsl:for-each select="deny/privilege/*"> 8148 <xsl:value-of select="name(.)"/>8125 not-<xsl:value-of select="name(.)"/> 8149 8126 <xsl:if test="position() != last()">, </xsl:if> 8150 8127 </xsl:for-each> trunk/deployment/webuser/webapp/resources/demoskins/resources/bedeworkAccess.js
r2074 r2075 431 431 var h = how[i]; 432 432 var negated = false; 433 var grantDenyStr = grantStr; 433 434 if (h == "-") { 434 435 negated = true; 436 grantDenyStr = denyStr; 435 437 i++; 436 438 h = how[i]; 437 439 } 438 440 439 formattedHow += hows.getHows(h).getDispVal(negated) + " ";441 formattedHow += '<span class="' + grantDenyStr + '">' + hows.getHows(h).getDispVal(negated) + '</span>'; 440 442 } 441 443 … … 514 516 var td_0 = row.insertCell(0); 515 517 td_0.innerHTML = this.principal.format(); 516 row.insertCell(1).appendChild(document.createTextNode(this.formatHow())); 518 var td_1 = row.insertCell(1); 519 td_1.innerHTML = this.formatHow(); 517 520 row.insertCell(2).appendChild(document.createTextNode(this.formatInherited())); 518 521 var td_3 = row.insertCell(3);
