| 2135 | | <xsl:value-of select="$who"/> |
|---|
| 2136 | | </xsl:otherwise> |
|---|
| 2137 | | </xsl:choose> |
|---|
| 2138 | | </th> |
|---|
| 2139 | | <td> |
|---|
| 2140 | | <xsl:for-each select="grant/node()"> |
|---|
| 2141 | | <xsl:value-of select="name(.)"/>   |
|---|
| 2142 | | </xsl:for-each> |
|---|
| 2143 | | <xsl:for-each select="deny/node()"> |
|---|
| 2144 | | deny-<xsl:value-of select="name(.)"/> |
|---|
| 2145 | |    |
|---|
| 2146 | | </xsl:for-each> |
|---|
| 2147 | | </td> |
|---|
| 2148 | | <td> |
|---|
| 2149 | | <xsl:choose> |
|---|
| 2150 | | <xsl:when test="inherited"> |
|---|
| 2151 | | inherited from: |
|---|
| 2152 | | <a> |
|---|
| 2153 | | <xsl:attribute name="href"><xsl:value-of select="$calendar-fetchForUpdate"/>&calPath=<xsl:value-of select="inherited/href"/></xsl:attribute> |
|---|
| 2154 | | <xsl:value-of select="inherited/href"/> |
|---|
| 2155 | | </a> |
|---|
| 2156 | | </xsl:when> |
|---|
| 2157 | | <xsl:otherwise> |
|---|
| 2158 | | local: |
|---|
| 2159 | | <xsl:variable name="whoType"> |
|---|
| 2160 | | <xsl:choose> |
|---|
| 2161 | | <xsl:when test="contains($who,/bedeworkadmin/syspars/userPrincipalRoot)">user</xsl:when> |
|---|
| 2162 | | <xsl:when test="contains($who,/bedeworkadmin/syspars/groupPrincipalRoot)">group</xsl:when> |
|---|
| 2163 | | <xsl:otherwise></xsl:otherwise> |
|---|
| 2164 | | </xsl:choose> |
|---|
| 2165 | | </xsl:variable> |
|---|
| 2166 | | <xsl:variable name="shortWho"> |
|---|
| 2167 | | <xsl:choose> |
|---|
| 2168 | | <xsl:when test="contains($who,/bedeworkadmin/syspars/userPrincipalRoot)"><xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedeworkadmin/syspars/userPrincipalRoot)),'/')"/></xsl:when> |
|---|
| 2169 | | <xsl:when test="contains($who,/bedeworkadmin/syspars/groupPrincipalRoot)"><xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedeworkadmin/syspars/groupPrincipalRoot)),'/')"/></xsl:when> |
|---|
| 2170 | | <xsl:otherwise><xsl:value-of select="$who"/></xsl:otherwise> |
|---|
| 2171 | | </xsl:choose> |
|---|
| 2172 | | </xsl:variable> |
|---|
| 2187 | | </td> |
|---|
| 2188 | | </tr> |
|---|
| 2189 | | </xsl:for-each> |
|---|
| 2190 | | </table> |
|---|
| 2191 | | <form name="calendarShareForm" action="{$calendar-setAccess}" id="shareForm" method="post"> |
|---|
| 2192 | | <input type="hidden" name="calPath" value="{$calPath}"/> |
|---|
| 2193 | | <table cellpadding="0" id="shareFormTable" class="common"> |
|---|
| 2194 | | <tr> |
|---|
| 2195 | | <th colspan="2" class="commonHeader">Set access:</th> |
|---|
| 2196 | | </tr> |
|---|
| 2197 | | <tr> |
|---|
| 2198 | | <td> |
|---|
| 2199 | | <h5>Who:</h5> |
|---|
| 2200 | | <input type="text" name="who" size="20"/> |
|---|
| 2201 | | <br/> |
|---|
| 2202 | | <input type="radio" value="user" name="whoType" checked="checked"/> user |
|---|
| 2203 | | <input type="radio" value="group" name="whoType"/> group |
|---|
| 2204 | | <p>OR</p> |
|---|
| 2205 | | <p> |
|---|
| 2206 | | <input type="radio" value="auth" name="whoType"/> all authorized users<br/> |
|---|
| 2207 | | <input type="radio" value="other" name="whoType"/> other users<br/> |
|---|
| 2208 | | <input type="radio" value="owner" name="whoType"/> owner |
|---|
| 2209 | | </p> |
|---|
| 2210 | | <!-- we may never use the invert action ...it is probably |
|---|
| 2211 | | too confusing, and can be achieved in other ways --> |
|---|
| 2212 | | <!-- |
|---|
| 2213 | | <p class="padTop"> |
|---|
| 2214 | | <input type="checkbox" value="yes" name="notWho"/> invert (deny) |
|---|
| 2215 | | </p>--> |
|---|
| 2216 | | </td> |
|---|
| 2217 | | <td> |
|---|
| 2218 | | <h5>Rights:</h5> |
|---|
| 2219 | | <ul id="howList"> |
|---|
| 2220 | | <li> |
|---|
| 2221 | | <input type="radio" value="A" name="how"/> |
|---|
| 2222 | | <strong>All</strong> (read, write, delete)</li> |
|---|
| 2223 | | <li class="padTop"> |
|---|
| 2224 | | <input type="radio" value="R" name="how" checked="checked"/> |
|---|
| 2225 | | <strong>Read</strong> (content, access, freebusy) |
|---|
| 2226 | | </li> |
|---|
| 2227 | | <li> |
|---|
| 2228 | | <input type="radio" value="f" name="how"/> Read freebusy only |
|---|
| 2229 | | </li> |
|---|
| 2230 | | <li class="padTop"> |
|---|
| 2231 | | <input type="radio" value="Rc" name="how"/> |
|---|
| 2232 | | <strong>Read</strong> and <strong>Write content only</strong> |
|---|
| 2233 | | </li> |
|---|
| 2234 | | <li class="padTop"> |
|---|
| 2235 | | <input type="radio" value="W" name="how"/> |
|---|
| 2236 | | <strong>Write and delete</strong> (content, access, properties) |
|---|
| 2237 | | </li> |
|---|
| 2238 | | <li> |
|---|
| 2239 | | <input type="radio" value="c" name="how"/> Write content only |
|---|
| 2240 | | </li> |
|---|
| 2241 | | <li> |
|---|
| 2242 | | <input type="radio" value="u" name="how"/> Delete only |
|---|
| 2243 | | </li> |
|---|
| 2244 | | <li class="padTop"> |
|---|
| 2245 | | <input type="radio" value="N" name="how"/> |
|---|
| 2246 | | <strong>None</strong> |
|---|
| 2247 | | </li> |
|---|
| | 2122 | </xsl:variable> |
|---|
| | 2123 | <tr> |
|---|
| | 2124 | <th class="thin"> |
|---|
| | 2125 | <xsl:if test="invert"> |
|---|
| | 2126 | Not |
|---|
| | 2127 | </xsl:if> |
|---|
| | 2128 | <xsl:choose> |
|---|
| | 2129 | <xsl:when test="contains($who,/bedeworkadmin/syspars/userPrincipalRoot)"> |
|---|
| | 2130 | <img src="{$resourcesRoot}/resources/userIcon.gif" width="13" height="13" border="0" alt="user"/> |
|---|
| | 2131 | <xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedeworkadmin/syspars/userPrincipalRoot)),'/')"/> |
|---|
| | 2132 | </xsl:when> |
|---|
| | 2133 | <xsl:when test="contains($who,/bedeworkadmin/syspars/groupPrincipalRoot)"> |
|---|
| | 2134 | <img src="{$resourcesRoot}/resources/groupIcon.gif" width="13" height="13" border="0" alt="group"/> |
|---|
| | 2135 | <xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedeworkadmin/syspars/groupPrincipalRoot)),'/')"/> |
|---|
| | 2136 | </xsl:when> |
|---|
| | 2137 | <xsl:when test="invert and $who='owner'"> |
|---|
| | 2138 | <xsl:value-of select="$who"/> (other) |
|---|
| | 2139 | </xsl:when> |
|---|
| | 2140 | <xsl:otherwise> |
|---|
| | 2141 | <xsl:value-of select="$who"/> |
|---|
| | 2142 | </xsl:otherwise> |
|---|
| | 2143 | </xsl:choose> |
|---|
| | 2144 | </th> |
|---|
| | 2145 | <td> |
|---|
| | 2146 | <xsl:for-each select="grant/node()"> |
|---|
| | 2147 | <xsl:value-of select="name(.)"/>   |
|---|
| | 2148 | </xsl:for-each> |
|---|
| | 2149 | <xsl:for-each select="deny/node()"> |
|---|
| | 2150 | <xsl:choose> |
|---|
| | 2151 | <xsl:when test="name(.)='all'"> |
|---|
| | 2152 | none |
|---|
| | 2153 | </xsl:when> |
|---|
| | 2154 | <xsl:otherwise> |
|---|
| | 2155 | deny-<xsl:value-of select="name(.)"/> |
|---|
| | 2156 | </xsl:otherwise> |
|---|
| | 2157 | </xsl:choose> |
|---|
| | 2158 |    |
|---|
| | 2159 | </xsl:for-each> |
|---|
| | 2160 | </td> |
|---|
| | 2161 | <td> |
|---|
| | 2162 | <xsl:choose> |
|---|
| | 2163 | <xsl:when test="inherited"> |
|---|
| | 2164 | inherited from: |
|---|
| | 2165 | <a> |
|---|
| | 2166 | <xsl:attribute name="href"><xsl:value-of select="$calendar-fetchForUpdate"/>&calPath=<xsl:value-of select="inherited/href"/></xsl:attribute> |
|---|
| | 2167 | <xsl:value-of select="inherited/href"/> |
|---|
| | 2168 | </a> |
|---|
| | 2169 | </xsl:when> |
|---|
| | 2170 | <xsl:otherwise> |
|---|
| | 2171 | local: |
|---|
| | 2172 | <xsl:variable name="whoType"> |
|---|
| | 2173 | <xsl:choose> |
|---|
| | 2174 | <xsl:when test="contains($who,/bedeworkadmin/syspars/userPrincipalRoot)">user</xsl:when> |
|---|
| | 2175 | <xsl:when test="contains($who,/bedeworkadmin/syspars/groupPrincipalRoot)">group</xsl:when> |
|---|
| | 2176 | <xsl:otherwise></xsl:otherwise> |
|---|
| | 2177 | </xsl:choose> |
|---|
| | 2178 | </xsl:variable> |
|---|
| | 2179 | <xsl:variable name="shortWho"> |
|---|
| | 2180 | <xsl:choose> |
|---|
| | 2181 | <xsl:when test="contains($who,/bedeworkadmin/syspars/userPrincipalRoot)"><xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedeworkadmin/syspars/userPrincipalRoot)),'/')"/></xsl:when> |
|---|
| | 2182 | <xsl:when test="contains($who,/bedeworkadmin/syspars/groupPrincipalRoot)"><xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedeworkadmin/syspars/groupPrincipalRoot)),'/')"/></xsl:when> |
|---|
| | 2183 | <xsl:otherwise><xsl:value-of select="$who"/></xsl:otherwise> |
|---|
| | 2184 | </xsl:choose> |
|---|
| | 2185 | </xsl:variable> |
|---|
| | 2186 | <xsl:choose> |
|---|
| | 2187 | <xsl:when test="invert"> |
|---|
| | 2188 | <a href="{$calendar-setAccess}&calPath={$encodedCalPath}&how=default&who={$shortWho}&whoType={$whoType}&notWho=yes"> |
|---|
| | 2189 | reset to default |
|---|
| | 2190 | </a> |
|---|
| | 2191 | </xsl:when> |
|---|
| | 2192 | <xsl:otherwise> |
|---|
| | 2193 | <a href="{$calendar-setAccess}&calPath={$encodedCalPath}&how=default&who={$shortWho}&whoType={$whoType}"> |
|---|
| | 2194 | reset to default |
|---|
| | 2195 | </a> |
|---|
| | 2196 | </xsl:otherwise> |
|---|
| | 2197 | </xsl:choose> |
|---|
| | 2198 | </xsl:otherwise> |
|---|
| | 2199 | </xsl:choose> |
|---|
| | 2200 | </td> |
|---|
| | 2201 | </tr> |
|---|
| | 2202 | </xsl:for-each> |
|---|
| | 2203 | </table> |
|---|
| | 2204 | </xsl:if> |
|---|
| | 2205 | |
|---|
| | 2206 | <xsl:if test="currentAccess/current-user-privilege-set/privilege/write-acl or /bedeworkadmin/userInfo/superUser='true'"> |
|---|
| | 2207 | <form name="calendarShareForm" action="{$calendar-setAccess}" id="shareForm" method="post"> |
|---|
| | 2208 | <input type="hidden" name="calPath" value="{$calPath}"/> |
|---|
| | 2209 | <table cellpadding="0" id="shareFormTable" class="common"> |
|---|
| | 2210 | <tr> |
|---|
| | 2211 | <th colspan="2" class="commonHeader">Set access:</th> |
|---|
| | 2212 | </tr> |
|---|
| | 2213 | <tr> |
|---|
| | 2214 | <td> |
|---|
| | 2215 | <h5>Who:</h5> |
|---|
| | 2216 | <input type="text" name="who" size="20"/> |
|---|
| | 2217 | <br/> |
|---|
| | 2218 | <input type="radio" value="user" name="whoType" checked="checked"/> user |
|---|
| | 2219 | <input type="radio" value="group" name="whoType"/> group |
|---|
| | 2220 | <p>OR</p> |
|---|
| | 2221 | <p> |
|---|
| | 2222 | <input type="radio" value="auth" name="whoType"/> all authorized users<br/> |
|---|
| | 2223 | <input type="radio" value="other" name="whoType"/> other users<br/> |
|---|
| | 2224 | <input type="radio" value="owner" name="whoType"/> owner |
|---|
| | 2225 | </p> |
|---|
| | 2226 | <!-- we may never use the invert action ...it is probably |
|---|
| | 2227 | too confusing, and can be achieved in other ways --> |
|---|
| 2249 | | <li class="padTop"> |
|---|
| 2250 | | <input type="radio" value="default" name="how"/> |
|---|
| 2251 | | <strong>Restore default access</strong> |
|---|
| 2252 | | </li>--> |
|---|
| 2253 | | </ul> |
|---|
| 2254 | | </td> |
|---|
| 2255 | | </tr> |
|---|
| 2256 | | </table> |
|---|
| 2257 | | <input type="submit" name="submit" value="Submit"/> |
|---|
| 2258 | | </form> |
|---|
| | 2229 | <p class="padTop"> |
|---|
| | 2230 | <input type="checkbox" value="yes" name="notWho"/> invert (deny) |
|---|
| | 2231 | </p>--> |
|---|
| | 2232 | </td> |
|---|
| | 2233 | <td> |
|---|
| | 2234 | <h5>Rights:</h5> |
|---|
| | 2235 | <ul id="howList"> |
|---|
| | 2236 | <li> |
|---|
| | 2237 | <input type="radio" value="A" name="how"/> |
|---|
| | 2238 | <strong>All</strong> (read, write, delete)</li> |
|---|
| | 2239 | <li class="padTop"> |
|---|
| | 2240 | <input type="radio" value="R" name="how" checked="checked"/> |
|---|
| | 2241 | <strong>Read</strong> (content, access, freebusy) |
|---|
| | 2242 | </li> |
|---|
| | 2243 | <li> |
|---|
| | 2244 | <input type="radio" value="f" name="how"/> Read freebusy only |
|---|
| | 2245 | </li> |
|---|
| | 2246 | <li class="padTop"> |
|---|
| | 2247 | <input type="radio" value="Rc" name="how"/> |
|---|
| | 2248 | <strong>Read</strong> and <strong>Write content only</strong> |
|---|
| | 2249 | </li> |
|---|
| | 2250 | <li class="padTop"> |
|---|
| | 2251 | <input type="radio" value="W" name="how"/> |
|---|
| | 2252 | <strong>Write and delete</strong> (content, access, properties) |
|---|
| | 2253 | </li> |
|---|
| | 2254 | <li> |
|---|
| | 2255 | <input type="radio" value="c" name="how"/> Write content only |
|---|
| | 2256 | </li> |
|---|
| | 2257 | <li> |
|---|
| | 2258 | <input type="radio" value="u" name="how"/> Delete only |
|---|
| | 2259 | </li> |
|---|
| | 2260 | <li class="padTop"> |
|---|
| | 2261 | <input type="radio" value="N" name="how"/> |
|---|
| | 2262 | <strong>None</strong> |
|---|
| | 2263 | </li> |
|---|
| | 2264 | <!-- |
|---|
| | 2265 | <li class="padTop"> |
|---|
| | 2266 | <input type="radio" value="default" name="how"/> |
|---|
| | 2267 | <strong>Restore default access</strong> |
|---|
| | 2268 | </li>--> |
|---|
| | 2269 | </ul> |
|---|
| | 2270 | </td> |
|---|
| | 2271 | </tr> |
|---|
| | 2272 | </table> |
|---|
| | 2273 | <input type="submit" name="submit" value="Submit"/> |
|---|
| | 2274 | </form> |
|---|
| | 2275 | </xsl:if> |
|---|