Changeset 2075

Show
Ignore:
Timestamp:
02/25/09 00:27:42
Author:
johnsa
Message:

personal client: more work on access form; get event form to validate.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r2074 r2075  
    27392739                    <td> 
    27402740                      <xsl:for-each select="form/categories/all/category[position() &lt;= ceiling($catCount div 2)]"> 
    2741                         <input type="checkbox" name="categoryKey"
     2741                        <input type="checkbox" name="categoryKey"/
    27422742                          <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> 
    27432743                          <xsl:if test="keyword = form/categories/current//category/keyword"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 
    27442744                          <xsl:value-of select="keyword"/> 
    2745                         </input><br/> 
     2745                        <br/> 
    27462746                      </xsl:for-each> 
    27472747                    </td> 
    27482748                    <td> 
    27492749                      <xsl:for-each select="form/categories/all/category[position() &gt; ceiling($catCount div 2)]"> 
    2750                         <input type="checkbox" name="categoryKey"
     2750                        <input type="checkbox" name="categoryKey"/
    27512751                          <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> 
    27522752                          <xsl:if test="keyword = form/categories/current//category/keyword"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 
    27532753                          <xsl:value-of select="keyword"/> 
    2754                         </input><br/> 
     2754                        <br/> 
    27552755                      </xsl:for-each> 
    27562756                    </td> 
     
    31663166                      day(s) 
    31673167                    </p> 
    3168                     <p
     3168                    <div
    31693169                      <input type="checkbox" name="swapDayMonthCheckBoxList" value="" onclick="swapVisible(this,'dayMonthCheckBoxList')"/> 
    31703170                      in these months: 
     
    31813181                        </xsl:for-each> 
    31823182                      </div> 
    3183                     </p
     3183                    </div
    31843184                    <!--<p> 
    31853185                      <input type="checkbox" name="swapDaySetPos" value="" onclick="swapVisible(this,'daySetPos')"/> 
     
    32013201                      week(s) on: 
    32023202                    </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> 
    32103208                    <p class="weekRecurLinks"> 
    32113209                      <a href="javascript:recurSelectWeekdays('weekRecurFields')">select weekdays</a> | 
     
    32403238                      <div id="monthRecurFields1"> 
    32413239                        on 
    3242                         <select name="bymonthposPos1" width="7em" onchange="changeClass('monthRecurFields2','shown')"> 
     3240                        <select name="bymonthposPos1" size="7" onchange="changeClass('monthRecurFields2','shown')"> 
    32433241                          <xsl:call-template name="recurrenceDayPosOptions"/> 
    32443242                        </select> 
     
    32513249                      </xsl:call-template> 
    32523250                    </div> 
    3253                     <p
     3251                    <div
    32543252                      <input type="checkbox" name="swapMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'monthDaysCheckBoxList')"/> 
    32553253                      on these days:<br/> 
     
    32613259                        </xsl:call-template> 
    32623260                      </div> 
    3263                     </p
     3261                    </div
    32643262                  </div> 
    32653263                  <!-- yearly --> 
     
    32783276                      <div id="yearRecurFields1"> 
    32793277                        on 
    3280                         <select name="byyearposPos1" width="7em" onchange="changeClass('yearRecurFields2','shown')"> 
     3278                        <select name="byyearposPos1" size="7" onchange="changeClass('yearRecurFields2','shown')"> 
    32813279                          <xsl:call-template name="recurrenceDayPosOptions"/> 
    32823280                        </select> 
     
    32893287                      </xsl:call-template> 
    32903288                    </div> 
    3291                     <p
     3289                    <div
    32923290                      <input type="checkbox" name="swapYearMonthCheckBoxList" value="" onclick="swapVisible(this,'yearMonthCheckBoxList')"/> 
    32933291                      in these months: 
     
    33043302                        </xsl:for-each> 
    33053303                      </div> 
    3306                     </p
    3307                     <p
     3304                    </div
     3305                    <div
    33083306                      <input type="checkbox" name="swapYearMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'yearMonthDaysCheckBoxList')"/> 
    33093307                      on these days of the month:<br/> 
     
    33153313                        </xsl:call-template> 
    33163314                      </div> 
    3317                     </p
    3318                     <p
     3315                    </div
     3316                    <div
    33193317                      <input type="checkbox" name="swapYearWeeksCheckBoxList" value="" onclick="swapVisible(this,'yearWeeksCheckBoxList')"/> 
    33203318                      in these weeks of the year:<br/> 
     
    33263324                        </xsl:call-template> 
    33273325                      </div> 
    3328                     </p
    3329                     <p
     3326                    </div
     3327                    <div
    33303328                      <input type="checkbox" name="swapYearDaysCheckBoxList" value="" onclick="swapVisible(this,'yearDaysCheckBoxList')"/> 
    33313329                      on these days of the year:<br/> 
     
    33373335                        </xsl:call-template> 
    33383336                      </div> 
    3339                     </p
     3337                    </div
    33403338                    <p> 
    33413339                      Week start: 
     
    36563654      <xsl:attribute name="id"><xsl:value-of select="$name"/>RecurFields<xsl:value-of select="$current"/></xsl:attribute> 
    36573655      and 
    3658       <select width="12em"> 
     3656      <select size="12"> 
    36593657        <xsl:attribute name="name">by<xsl:value-of select="$name"/>posPos<xsl:value-of select="$current"/></xsl:attribute> 
    36603658        <xsl:if test="$current != $total"> 
     
    45474545          <xsl:when test="/bedework/myCalendars/calendars/calendar[currentAccess/current-user-privilege-set/privilege/write-content]"> 
    45484546            <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> 
    45684547          </xsl:when> 
    45694548          <xsl:otherwise> 
     
    77587737    </input> 
    77597738    <p> 
    7760       <input type="text" name="who" width="40"/> 
     7739      <input type="text" name="who" size="40"/> 
    77617740      <span class="nowrap"><input type="radio" name="whoType" value="user" checked="checked"/>user</span> 
    77627741      <span class="nowrap"><input type="radio" name="whoType" value="group"/>group</span> 
     
    81348113            <td class="acls"> 
    81358114              <xsl:if test="grant"> 
    8136                 grant: 
    81378115                <span class="grant"> 
    81388116                  <xsl:for-each select="grant/privilege/*"> 
     
    81438121              </xsl:if> 
    81448122              <xsl:if test="deny"> 
    8145                 deny: 
    81468123                <span class="deny"> 
    81478124                  <xsl:for-each select="deny/privilege/*"> 
    8148                     <xsl:value-of select="name(.)"/> 
     8125                    not-<xsl:value-of select="name(.)"/> 
    81498126                    <xsl:if test="position() != last()">, </xsl:if> 
    81508127                  </xsl:for-each> 
  • trunk/deployment/webuser/webapp/resources/demoskins/resources/bedeworkAccess.js

    r2074 r2075  
    431431      var h = how[i]; 
    432432      var negated = false; 
     433      var grantDenyStr = grantStr; 
    433434      if (h == "-") { 
    434435        negated = true; 
     436        grantDenyStr = denyStr; 
    435437        i++; 
    436438        h = how[i]; 
    437439      } 
    438440 
    439       formattedHow += hows.getHows(h).getDispVal(negated) + " "
     441      formattedHow += '<span class="' + grantDenyStr + '">' + hows.getHows(h).getDispVal(negated) + '</span>'
    440442    } 
    441443 
     
    514516    var td_0 = row.insertCell(0); 
    515517    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(); 
    517520    row.insertCell(2).appendChild(document.createTextNode(this.formatInherited())); 
    518521    var td_3 = row.insertCell(3);