Wiki source code of Rights UI Proposal 2 - Space Level
Last modified by Vincent Massol on 2024/11/19 16:13
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{velocity}} | ||
| 2 | #set ($ok = $xwiki.ssx.use("Improvements.Rights2Wiki")) | ||
| 3 | #set ($ok = $xwiki.ssx.use("XWiki.AdminSheet")) | ||
| 4 | #set ($ok = $xwiki.jsx.use("Improvements.Rights2Wiki")) | ||
| 5 | #set ($ok = $xwiki.jsx.use("XWiki.Tooltip")) | ||
| 6 | #set ($ok = $xwiki.ssfx.use("js/xwiki/table/livetable.css", true)) | ||
| 7 | #set ($ok = $xwiki.ssfx.use('js/xwiki/importer/import.css', true)) | ||
| 8 | #set ($ok = $xwiki.jsfx.use('js/xwiki/editors/dataeditors.js', true)) | ||
| 9 | {{html wiki="true"}} | ||
| 10 | <div class="rightsUI" id="xwikiobjects"> | ||
| 11 | <div id="admin-page-header"> | ||
| 12 | <div class="admin-page-header-spacer"> </div> | ||
| 13 | <div class="explicationHeader"> | ||
| 14 | <h1 id="admin-header">Rights Management</h1> | ||
| 15 | <div class="inheritanceLevel"> Level of {{tooltip label="Inheritance"}}Rights are inherited if they are set in a higher hierarchy level. For example, a Page inherits all rights set for the Space it belongs to and also all the rights set for the Wiki it belongs to. The same happens for a User whom inherits all rights set for the Group he is part of{{/tooltip}}: | ||
| 16 | <a href="/xwiki/bin/view/Main/" class="wiki" title="Wiki level">XWiki</a> <span class="separator">»</span> <a href="/xwiki/bin/view/Sandbox/" class="space" title="Space level">Sandbox</a> | ||
| 17 | </div> | ||
| 18 | </div> | ||
| 19 | <div id="change-context"> | ||
| 20 | <label class="hidden" for="goto-select">Place to administer</label> | ||
| 21 | <select id="goto-select"> | ||
| 22 | <optgroup label="Edit Wiki preferences:"> | ||
| 23 | <option selected="selected" value="/xwiki/bin/admin/XWiki/XWikiPreferences">Wiki administration</option> | ||
| 24 | </optgroup> | ||
| 25 | <optgroup label="Edit space preferences: "> | ||
| 26 | <option value="/xwiki/bin/admin/AnnotationCode/WebPreferences">AnnotationCode</option> | ||
| 27 | <option value="/xwiki/bin/admin/Blog/WebPreferences">Blog</option> | ||
| 28 | <option value="/xwiki/bin/admin/ColorThemes/WebPreferences">ColorThemes</option> | ||
| 29 | <option value="/xwiki/bin/admin/Improvements/WebPreferences">Improvements</option> | ||
| 30 | <option value="/xwiki/bin/admin/Main/WebPreferences">Main</option> | ||
| 31 | <option value="/xwiki/bin/admin/Panels/WebPreferences">Panels</option> | ||
| 32 | <option value="/xwiki/bin/admin/Sandbox/WebPreferences">Sandbox</option> | ||
| 33 | <option value="/xwiki/bin/admin/Scheduler/WebPreferences">Scheduler</option> | ||
| 34 | <option value="/xwiki/bin/admin/Stats/WebPreferences">Stats</option> | ||
| 35 | <option value="/xwiki/bin/admin/XWiki/WebPreferences">XWiki</option> | ||
| 36 | </optgroup> | ||
| 37 | </select> | ||
| 38 | <br><span class="buttonwrapper" id="showsectionswrapper"><a href="/xwiki/bin/admin/XWiki/XWikiPreferences" id="showsections">Show the available categories</a></span> | ||
| 39 | <span class="hidden buttonwrapper" id="hidesectionswrapper"><a href="/xwiki/bin/admin/XWiki/XWikiPreferences" id="hidesections">Hide the available categories</a></span> </div> <div class="admin-page-header-spacer"> </div> | ||
| 40 | </div> | ||
| 41 | |||
| 42 | <div class="leftMargin column65"> | ||
| 43 | <div class="rightSection"> | ||
| 44 | <div class="xclass collapsable collapsed"> | ||
| 45 | <div class="explication2Header xclass-title"> | ||
| 46 | <span class="savedExpand "><span class="colorHeader">Page Rights</span> <span class="colorHeader right">▾</span></span> | ||
| 47 | <div class="xHelpLabel">specify users that have explicit rights for contained pages</div> | ||
| 48 | </div> | ||
| 49 | <div class="xclass-content"> | ||
| 50 | <table summary="" id="alldocs" class="xwiki-livetable"> | ||
| 51 | <tbody | ||
| 52 | <tr><td class="xwiki-livetable-display-container"> | ||
| 53 | <table class="xwiki-livetable-display"> | ||
| 54 | <thead class="xwiki-livetable-display-header"> | ||
| 55 | <tr> | ||
| 56 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 57 | <a rel="doc.name"><label for="xwiki-livetable-alldocs-filter-1">Type</label></a></th> | ||
| 58 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 59 | <a rel="doc.space"><label for="xwiki-livetable-alldocs-filter-2">User</label></a></th> | ||
| 60 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 61 | <a rel="doc.space"><label for="xwiki-livetable-alldocs-filter-2">{{tooltip label="View"}}Users can see the content of pages{{/tooltip}}</label></a></th> | ||
| 62 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 63 | <a rel="doc.date">{{tooltip label="Comment"}}Users can add comments to pages{{/tooltip}}</a></th> | ||
| 64 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 65 | <a rel="doc.date">{{tooltip label="Edit"}}Users can create, edit and delete modifications to pages and their objects (comments, attachments, etc){{/tooltip}}</a></th> | ||
| 66 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 67 | <a rel="doc.date">{{tooltip label="Delete"}}Users can delete pages{{/tooltip}}</a></th> | ||
| 68 | </tr> | ||
| 69 | <tr class="xwiki-livetable-display-filters" id=""> | ||
| 70 | <td class="xwiki-livetable-display-header-filter"><select><option value="all">all</option><option value="default">user</option><option value="default">group</option></select></td> | ||
| 71 | <td class="xwiki-livetable-display-header-filter"><input type="text" value="filter..." title="Filter for the Space column" size="${colprop.size}" name="doc.space" id="xwiki-livetable-alldocs-filter-2"></td> | ||
| 72 | <td class="xwiki-livetable-display-header-filter"><select><option value="all">all</option><option value="default">allow</option><option value="default">deny</option></select></td> | ||
| 73 | <td class="xwiki-livetable-display-header-filter"><select><option value="all">all</option><option value="default">allow</option><option value="default">deny</option></select></td> | ||
| 74 | <td class="xwiki-livetable-display-header-filter"><select><option value="all">all</option><option value="default">allow</option><option value="default">deny</option></select></td> | ||
| 75 | <td class="xwiki-livetable-display-header-filter"><select><option value="all">all</option><option value="default">allow</option><option value="default">deny</option></select></td> | ||
| 76 | </tr> | ||
| 77 | </thead> | ||
| 78 | <tbody id="alldocs-display" class="xwiki-livetable-display-body"> | ||
| 79 | <tr> | ||
| 80 | <td class="doc_name linkview typetext"><a class="user icon" title="User" href="#"></a></td> | ||
| 81 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a>evalica</a><a title="Remove rights for users" href="#" class="tag-tool tag-delete">X</a></span></td> | ||
| 82 | <td class="actions"> | ||
| 83 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 84 | </td> | ||
| 85 | <td class="actions"> | ||
| 86 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 87 | </td> | ||
| 88 | <td class="actions"> | ||
| 89 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 90 | </td> | ||
| 91 | <td class="actions"> | ||
| 92 | <a class="denyInherit icon" title="Deny by Inheritance" href="#"></a> | ||
| 93 | </td> | ||
| 94 | </tr> | ||
| 95 | <tr> | ||
| 96 | <td class="doc_name linkview typetext"><a class="group icon" title="Group" href="#"></a></td> | ||
| 97 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a href="#">XWikiAdminGroup</a><a title="Remove rights for users" href="#" class="tag-tool tag-delete">X</a></span></td> | ||
| 98 | <td class="actions "> | ||
| 99 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 100 | </td> | ||
| 101 | <td class="actions "> | ||
| 102 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 103 | </td> | ||
| 104 | <td class="actions "> | ||
| 105 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 106 | </td> | ||
| 107 | <td class="actions "> | ||
| 108 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 109 | </td> | ||
| 110 | </tr> | ||
| 111 | <tr class="default"> | ||
| 112 | <td class="doc_name linkview typetext"><a class="group icon" title="Group" href="#"></a></td> | ||
| 113 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a href="#">Registered Users</a><a title="Remove rights for users" href="#" class="tag-tool tag-delete">X</a></span></td> | ||
| 114 | <td class="actions "> | ||
| 115 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 116 | </td> | ||
| 117 | <td class="actions "> | ||
| 118 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 119 | </td> | ||
| 120 | <td class="actions "> | ||
| 121 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 122 | </td> | ||
| 123 | <td class="actions "> | ||
| 124 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 125 | </td> | ||
| 126 | </tr> | ||
| 127 | <tr class="default"> | ||
| 128 | <td class="doc_name linkview typetext"><a class="group icon" title="Group" href="#"></a></td> | ||
| 129 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a href="#">Unregistered Users</a><a title="Remove rights for users" href="#" class="tag-tool tag-delete">X</a></span></td> | ||
| 130 | <td class="actions "> | ||
| 131 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 132 | </td> | ||
| 133 | <td class="actions "> | ||
| 134 | <a class="allowDefault icon" title="Allow by Default" href="#"></a> | ||
| 135 | </td> | ||
| 136 | <td class="actions "> | ||
| 137 | <a class="allowDefault icon" title="Allow by Default" href="#"></a> | ||
| 138 | </td> | ||
| 139 | <td class="actions "> | ||
| 140 | <a class="denyDefault icon" title="Deny by Default" href="#"></a> | ||
| 141 | </td> | ||
| 142 | </tr> | ||
| 143 | </tbody> | ||
| 144 | <thead class="xwiki-livetable-display-header"> | ||
| 145 | <tr class="xwiki-livetable-display-filters" id=""> | ||
| 146 | <td class="xwiki-livetable-display-header-filter typenumeric"> | ||
| 147 | <span title="Add Special Space Rights" class="addCaption">Add rights to:</span> | ||
| 148 | </td> | ||
| 149 | <td class="xwiki-livetable-display-header-filter"> | ||
| 150 | <span class="addRight"> | ||
| 151 | <input type="text" title="Add specific user" value="user / group"> | ||
| 152 | <input type="image" src="/xwiki/resources/icons/silk/bullet_add.gif" alt="Go" value="Go" class="button" title="Add rights to user"> | ||
| 153 | </span> | ||
| 154 | </td> | ||
| 155 | <td class="xwiki-livetable-display-header-filter" colspan="5"> | ||
| 156 | </td> | ||
| 157 | </tr> | ||
| 158 | </thead> | ||
| 159 | </table> | ||
| 160 | </td></tr> | ||
| 161 | </tbody> | ||
| 162 | </table> | ||
| 163 | </div> | ||
| 164 | </div> | ||
| 165 | </div> | ||
| 166 | |||
| 167 | <div class="rightSection"> | ||
| 168 | <div class="xclass collapsable collapsed"> | ||
| 169 | <div class="explication2Header xclass-title"> | ||
| 170 | <span class="savedExpand "><span class="colorHeader">Administration Rights</span> <span class="colorHeader right">▾</span></span> | ||
| 171 | <div class="xHelpLabel">specify users that can manage administration settings</div> | ||
| 172 | </div> | ||
| 173 | <div class="xclass-content"> | ||
| 174 | <table summary="" id="alldocs" class="xwiki-livetable"> | ||
| 175 | <tbody | ||
| 176 | <tr><td class="xwiki-livetable-display-container"> | ||
| 177 | <table class="xwiki-livetable-display"> | ||
| 178 | <thead class="xwiki-livetable-display-header"> | ||
| 179 | <tr> | ||
| 180 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 181 | <a rel="doc.name"><label for="xwiki-livetable-alldocs-filter-1">Type</label></a></th> | ||
| 182 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 183 | <a rel="doc.space"><label for="xwiki-livetable-alldocs-filter-2">User</label></a></th> | ||
| 184 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 185 | <a rel="doc.space"><label for="xwiki-livetable-alldocs-filter-2">{{tooltip label="Admin"}}Users can manage administration settings, also they can view, comment, edit and delete pages{{/tooltip}}</label></a></th> | ||
| 186 | </tr> | ||
| 187 | <tr class="xwiki-livetable-display-filters" id=""> | ||
| 188 | <td class="xwiki-livetable-display-header-filter"><select><option value="all">all</option><option value="default">user</option><option value="default">group</option></select></td> | ||
| 189 | <td class="xwiki-livetable-display-header-filter"><input type="text" value="filter..." title="Filter for the Space column" size="${colprop.size}" name="doc.space" id="xwiki-livetable-alldocs-filter-2"></td> | ||
| 190 | <td class="xwiki-livetable-display-header-filter"><select><option value="all">all</option><option value="default">allow</option><option value="default">deny</option></select></td> | ||
| 191 | </tr> | ||
| 192 | </thead> | ||
| 193 | <tbody id="alldocs-display" class="xwiki-livetable-display-body"> | ||
| 194 | <tr> | ||
| 195 | <td class="doc_name linkview typetext"><a class="user icon" title="User" href="#"></a></td> | ||
| 196 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a href="#">rstavro</a><a title="Remove rights for users" href="#" class="tag-tool tag-delete">X</a></span></td> | ||
| 197 | <td class="actions changed"> | ||
| 198 | <a class="allow icon" title="Allow" href="#"></a> | ||
| 199 | </td> | ||
| 200 | </tr> | ||
| 201 | <tr> | ||
| 202 | <td class="doc_name linkview typetext"><a class="group icon" title="Group" href="#"></a></td> | ||
| 203 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a href="#">XWikiAdminGroup</a><a title="Remove rights for users" href="#" class="tag-tool tag-delete">X</a></span></td> | ||
| 204 | <td class="actions "> | ||
| 205 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 206 | </td> | ||
| 207 | </tr> | ||
| 208 | </tbody> | ||
| 209 | <thead class="xwiki-livetable-display-header"> | ||
| 210 | <tr class="xwiki-livetable-display-filters" id=""> | ||
| 211 | <td class="xwiki-livetable-display-header-filter typenumeric"> | ||
| 212 | <span title="Add Special Space Rights" class="addCaption">Add rights to:</span> | ||
| 213 | </td> | ||
| 214 | <td class="xwiki-livetable-display-header-filter"> | ||
| 215 | <span class="addRight"> | ||
| 216 | <input type="text" title="Add specific user" value="user / group"> | ||
| 217 | <input type="image" src="/xwiki/resources/icons/silk/bullet_add.gif" alt="Go" value="Go" class="button" title="Add rights to user"> | ||
| 218 | </span> | ||
| 219 | </td> | ||
| 220 | <td class="xwiki-livetable-display-header-filter"> | ||
| 221 | <span class="buttonwrapper"> | ||
| 222 | <a href="#" class="button">Save</a> | ||
| 223 | <span> or </span> | ||
| 224 | <span class="colorLink">Reset</span> | ||
| 225 | </span> | ||
| 226 | </td> | ||
| 227 | </tr> | ||
| 228 | </thead> | ||
| 229 | </table> | ||
| 230 | </td></tr> | ||
| 231 | </tbody> | ||
| 232 | </table> | ||
| 233 | </div> | ||
| 234 | </div> | ||
| 235 | </div> | ||
| 236 | |||
| 237 | </div> | ||
| 238 | |||
| 239 | <div class="left column30"> | ||
| 240 | <div class="xclass collapsable collapsed"> | ||
| 241 | <div class="explication2Header xclass-title"> | ||
| 242 | <span class="savedExpand "><span class="colorHeader">Containing Pages</span> <span class="colorHeader right">▾</span></span> | ||
| 243 | <div class="xHelpLabel">the rights apply to containing pages and their objects</div> | ||
| 244 | </div> | ||
| 245 | <div class="containing"> | ||
| 246 | <table summary="" id="alldocs" class="xwiki-livetable xclass-content"> | ||
| 247 | <tbody | ||
| 248 | <tr><td class="xwiki-livetable-display-container"> | ||
| 249 | <table class="xwiki-livetable-display"> | ||
| 250 | <thead class="xwiki-livetable-display-header"> | ||
| 251 | <tr> | ||
| 252 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 253 | <a rel="doc.name"><label for="xwiki-livetable-alldocs-filter-1">Contains</label></a></th> | ||
| 254 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 255 | <a rel="doc.space"><label for="xwiki-livetable-alldocs-filter-2">Rights</label></a></th> | ||
| 256 | <th scope="col" class="xwiki-livetable-display-header-text"> | ||
| 257 | <a rel="doc.date">Actions</a></th> | ||
| 258 | </tr> | ||
| 259 | <tr class="xwiki-livetable-display-filters" id=""> | ||
| 260 | <td class="xwiki-livetable-display-header-filter"><input type="text" title="Filter for the Page column" size="30" name="doc.name" id="xwiki-livetable-alldocs-filter-1" value="filter..."></td> | ||
| 261 | <td class="xwiki-livetable-display-header-filter"><select><option value="default">all</option><option value="inherited">inherited</option><option value="overriden">overriden</option></select></td> | ||
| 262 | <td class="xwiki-livetable-display-header-filter"></td> | ||
| 263 | </tr> | ||
| 264 | </thead> | ||
| 265 | <tbody id="alldocs-display" class="xwiki-livetable-display-body"> | ||
| 266 | <tr> | ||
| 267 | <td class="doc_name linkview typetext"><div class="pagename"><a href="#">TestPage1</a></div></td> | ||
| 268 | <td class="doc_space linkspace typetext"><div class="containingChanges" title="contained Page inherits all rights">inherited</div></td> | ||
| 269 | <td class="actions typenumeric"> | ||
| 270 | <a title="Edit Rights" href="#"><img src="/xwiki/resources/icons/silk/cog_edit.gif" alt="Edit Rights"></a> | ||
| 271 | </td> | ||
| 272 | </tr> | ||
| 273 | <tr> | ||
| 274 | <td class="doc_name linkview typetext"><div class="pagename"><a href="#">TestPage2</a></div></td> | ||
| 275 | <td class="doc_space linkspace typetext"><div class="containingChanges" title="contained Page inherits all rights">inherited</div></td> | ||
| 276 | <td class="actions typenumeric"> | ||
| 277 | <a title="Edit Rights" href="#"><img src="/xwiki/resources/icons/silk/cog_edit.gif" alt="Edit Rights"></a> | ||
| 278 | </td> | ||
| 279 | </tr> | ||
| 280 | <tr> | ||
| 281 | <td class="doc_name linkview typetext"><div class="pagename"><a href="#">TestPage3</a></div></td> | ||
| 282 | <td class="doc_space linkspace typetext"><div class="containingChanges" title="contained Page inherits all rights">inherited</div></td> | ||
| 283 | <td class="actions typenumeric"> | ||
| 284 | <a title="Edit Rights" href="#"><img src="/xwiki/resources/icons/silk/cog_edit.gif" alt="Edit Rights"></a> | ||
| 285 | </td> | ||
| 286 | </tr> | ||
| 287 | <tr> | ||
| 288 | <td class="doc_name linkview typetext"><div class="pagename"><a href="#">WebHome</a></div></td> | ||
| 289 | <td class="doc_space linkspace typetext"><div class="containingChanges" title="contained Page inherits all rights">inherited</div></td> | ||
| 290 | <td class="actions typenumeric"> | ||
| 291 | <a title="Edit Rights" href="#"><img src="/xwiki/resources/icons/silk/cog_edit.gif" alt="Edit Rights"></a> | ||
| 292 | </td> | ||
| 293 | </tr> | ||
| 294 | <tr> | ||
| 295 | <td class="doc_name linkview typetext"><div class="pagename"><a href="#">WebPreferences</a></div></td> | ||
| 296 | <td class="doc_space linkspace typetext"><div class="containingChanges" title="contained Page inherits all rights">inherited</div></td> | ||
| 297 | <td class="actions typenumeric"> | ||
| 298 | <a title="Edit Rights" href="#"><img src="/xwiki/resources/icons/silk/cog_edit.gif" alt="Edit Rights"></a> | ||
| 299 | </td> | ||
| 300 | </tr> | ||
| 301 | </tbody> | ||
| 302 | </table> | ||
| 303 | </td></tr> | ||
| 304 | </tbody> | ||
| 305 | </table> | ||
| 306 | </div> | ||
| 307 | </div> | ||
| 308 | </div> | ||
| 309 | </div> | ||
| 310 | {{/html}} | ||
| 311 | {{/velocity}} |