Wiki source code of Rights UI Proposal 3 - Page 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.Rights3Wiki")) | ||
| 3 | #set ($ok = $xwiki.ssx.use("XWiki.AdminSheet")) | ||
| 4 | #set ($ok = $xwiki.jsx.use("Improvements.Rights3Wiki")) | ||
| 5 | #set ($ok = $xwiki.ssfx.use("js/xwiki/table/livetable.css", true)) | ||
| 6 | #set ($ok = $xwiki.ssfx.use('js/xwiki/importer/import.css', true)) | ||
| 7 | #set ($ok = $xwiki.jsfx.use('js/xwiki/editors/dataeditors.js', true)) | ||
| 8 | {{html wiki="true"}} | ||
| 9 | <div class="rightsUI" id="xwikiobjects"> | ||
| 10 | <div id="admin-page-header"> | ||
| 11 | <div class="admin-page-header-spacer"> </div> | ||
| 12 | <div class="explicationHeader"> | ||
| 13 | <h1 id="admin-header">Rights Management</h1> | ||
| 14 | <div class="inheritanceLevel"> | ||
| 15 | <span class="inheritedRight"><span class="help" style="cursor: help;" title="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">Inheritance</span></span> Level: | ||
| 16 | <span class="wiki" title="Wiki level"><span class="tag-wrapper"><a href="#">XWiki</a></span></span> <span class="separator">»</span> <span class="space" title="Space level"><span class="tag-wrapper"><a href="#">Sandbox</a><a title="Remove level" href="#" class="tag-tool tag-delete">X</a></span></span> <span class="separator">»</span> <span class="page" title="Page level"><span class="tag-wrapper"><a href="#">Sandbox Test Page 2</a><a title="Remove level" href="#" class="tag-tool tag-delete">X</a></span></span> | ||
| 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 column45"> | ||
| 43 | <div class="rightSection"> | ||
| 44 | <div class="xclass1 collapsable"> | ||
| 45 | <div class="explication2Header xclass-title"> | ||
| 46 | <span class="savedExpand "><span class="colorHeader">Page Rights</span></span> | ||
| 47 | <div class="xHelpLabel">add users that have specific roles for this level</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">Users</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">Role</label></a></th> | ||
| 62 | </tr> | ||
| 63 | <tr class="xwiki-livetable-display-filters" id=""> | ||
| 64 | <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> | ||
| 65 | <td class="xwiki-livetable-display-header-filter"><input type="text" value="filter..."></td> | ||
| 66 | <td class="xwiki-livetable-display-header-filter"><input type="text" value="filter..."></td> | ||
| 67 | </tr> | ||
| 68 | </thead> | ||
| 69 | <tbody id="alldocs-display" class="xwiki-livetable-display-body"> | ||
| 70 | <tr class="default"> | ||
| 71 | <td class="doc_name linkview typetext"><a class="group icon" title="Group" href="#"></a></td> | ||
| 72 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a href="#">Unregistered Users</a></span></td> | ||
| 73 | <td class="actions "> | ||
| 74 | <ul class="roles"> | ||
| 75 | <li class="rightTd"> | ||
| 76 | <span class="addRight"> | ||
| 77 | <input type="text" title="Add role" value="add role"> | ||
| 78 | <input type="image" src="/xwiki/resources/icons/silk/bullet_add.gif" alt="Go" value="Go" class="button" title="Add role"> | ||
| 79 | </span> | ||
| 80 | </li> | ||
| 81 | <li><span class="tag-wrapper inheritedRight"><span title="">Unregistered</span></span></li> | ||
| 82 | </ul> | ||
| 83 | </td> | ||
| 84 | </tr> | ||
| 85 | <tr class="default"> | ||
| 86 | <td class="doc_name linkview typetext"><a class="group icon" title="Group" href="#"></a></td> | ||
| 87 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a href="#">Registered Users</a></span></td> | ||
| 88 | <td class="actions "> | ||
| 89 | <ul class="roles"> | ||
| 90 | <li class="rightTd"> | ||
| 91 | <span class="addRight"> | ||
| 92 | <input type="text" title="Add role" value="add role"> | ||
| 93 | <input type="image" src="/xwiki/resources/icons/silk/bullet_add.gif" alt="Go" value="Go" class="button" title="Add role"> | ||
| 94 | </span> | ||
| 95 | </li> | ||
| 96 | <li><span class="tag-wrapper inheritedRight"><span title="">Registered</span></span></li> | ||
| 97 | </ul> | ||
| 98 | </td> | ||
| 99 | </tr> | ||
| 100 | <tr class="default"> | ||
| 101 | <td class="doc_name linkview typetext"><a class="group icon" title="Group" href="#"></a></td> | ||
| 102 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a href="#">XWikiAdminGroup</a></span></td> | ||
| 103 | <td class="actions "> | ||
| 104 | <ul class="roles"> | ||
| 105 | <li class="rightTd"> | ||
| 106 | <span class="addRight"> | ||
| 107 | <input type="text" title="Add role" value="add role"> | ||
| 108 | <input type="image" src="/xwiki/resources/icons/silk/bullet_add.gif" alt="Go" value="Go" class="button" title="Add role"> | ||
| 109 | </span> | ||
| 110 | </li> | ||
| 111 | <li><span class="tag-wrapper inheritedRight"><span title="">Administrator</span></span></li> | ||
| 112 | </ul> | ||
| 113 | </td> | ||
| 114 | </tr> | ||
| 115 | <tr class="default"> | ||
| 116 | <td class="doc_name linkview typetext"><a class="user icon" title="User" href="#"></a></td> | ||
| 117 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a href="#">sdumitriu</a></span></td> | ||
| 118 | <td class="actions "> | ||
| 119 | <ul class="roles"> | ||
| 120 | <li class="rightTd"> | ||
| 121 | <span class="addRight"> | ||
| 122 | <input type="text" title="Add role" value="add role"> | ||
| 123 | <input type="image" src="/xwiki/resources/icons/silk/bullet_add.gif" alt="Go" value="Go" class="button" title="Add role"> | ||
| 124 | </span> | ||
| 125 | </li> | ||
| 126 | <li><span class="tag-wrapper inheritedRight"><span title="">Creator</span></span></li> | ||
| 127 | </ul> | ||
| 128 | </td> | ||
| 129 | </tr> | ||
| 130 | <tr class="default"> | ||
| 131 | <td class="doc_name linkview typetext"><a class="user icon" title="User" href="#"></a></td> | ||
| 132 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a href="#">evalica</a></span></td> | ||
| 133 | <td class="actions "> | ||
| 134 | <ul class="roles"> | ||
| 135 | <li class="rightTd"> | ||
| 136 | <span class="addRight"> | ||
| 137 | <input type="text" title="Add role" value="add role"> | ||
| 138 | <input type="image" src="/xwiki/resources/icons/silk/bullet_add.gif" alt="Go" value="Go" class="button" title="Add role"> | ||
| 139 | </span> | ||
| 140 | </li> | ||
| 141 | <li class=""><span class="tag-wrapper inheritedRight"><span title="">Reviewer</span></span></li> | ||
| 142 | <li><span class="tag-wrapper inheritedRight"><span title="">Registered</span></span></li> | ||
| 143 | </ul> | ||
| 144 | </td> | ||
| 145 | </tr> | ||
| 146 | </tbody> | ||
| 147 | <thead class="xwiki-livetable-display-header"> | ||
| 148 | <tr class="xwiki-livetable-display-filters" id=""> | ||
| 149 | <td class="xwiki-livetable-display-header-filter typenumeric"> | ||
| 150 | </td> | ||
| 151 | <td class="xwiki-livetable-display-header-filter"> | ||
| 152 | <span class="addRight"> | ||
| 153 | <input type="text" title="Add user" value="add users"> | ||
| 154 | <input type="image" src="/xwiki/resources/icons/silk/bullet_add.gif" alt="Go" value="Go" class="button" title="Add user"> | ||
| 155 | </span> | ||
| 156 | </td> | ||
| 157 | <td class="xwiki-livetable-display-header-filter" colspan="2"> | ||
| 158 | <span class="buttonwrapper hidden"> | ||
| 159 | <a href="#" class="button">Save</a> | ||
| 160 | <span> or </span> | ||
| 161 | <span class="colorLink">Reset</span> | ||
| 162 | </span> | ||
| 163 | </td> | ||
| 164 | </tr> | ||
| 165 | </thead> | ||
| 166 | </table> | ||
| 167 | </td></tr> | ||
| 168 | </tbody> | ||
| 169 | </table> | ||
| 170 | </div> | ||
| 171 | </div> | ||
| 172 | </div> | ||
| 173 | |||
| 174 | </div> | ||
| 175 | |||
| 176 | <div class="left column45"> | ||
| 177 | <div class="xclass1 collapsable"> | ||
| 178 | <div class="explication2Header xclass-title"> | ||
| 179 | <span class="savedExpand "><span class="colorHeader">Role Management</span></span> | ||
| 180 | <div class="xHelpLabel">roles determine the access level of the users</div> | ||
| 181 | </div> | ||
| 182 | <div class="xclass-content"> | ||
| 183 | <div class="containing"> | ||
| 184 | <table summary="" id="alldocs" class="xwiki-livetable"> | ||
| 185 | <tbody | ||
| 186 | <tr><td class="xwiki-livetable-display-container"> | ||
| 187 | <table class="xwiki-livetable-display"> | ||
| 188 | <thead class="xwiki-livetable-display-header"> | ||
| 189 | <tr> | ||
| 190 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 191 | <a rel="doc.space"><label for="xwiki-livetable-alldocs-filter-2">Role</label></a></th> | ||
| 192 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 193 | <a rel="doc.space"><label for="xwiki-livetable-alldocs-filter-2" class="allowRight"><span>Allow Right</span></label></a></th> | ||
| 194 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 195 | <a rel="doc.name"><label for="xwiki-livetable-alldocs-filter-1" class="denyRight"><span>Deny Right</span></label></a></th> | ||
| 196 | </tr> | ||
| 197 | <tr class="xwiki-livetable-display-filters" id=""> | ||
| 198 | <td class="xwiki-livetable-display-header-filter"><input type="text" value="filter..."></td> | ||
| 199 | <td class="xwiki-livetable-display-header-filter"><input type="text" value="filter..."></td> | ||
| 200 | <td class="xwiki-livetable-display-header-filter"><input type="text" value="filter..."></td> | ||
| 201 | </tr> | ||
| 202 | </thead> | ||
| 203 | <tbody id="alldocs-display" class="xwiki-livetable-display-body"> | ||
| 204 | <tr class="default"> | ||
| 205 | <td class="doc_space linkspace typetext inheritedRight"><span class="tag-wrapper">Creator</span></td> | ||
| 206 | <td class="actions allowRight"> | ||
| 207 | <ul class="roles"> | ||
| 208 | <li><span class="tag-wrapper"><span class="help" title="Users can delete pages">delete</span><a title="Remove right" href="#" class="tag-tool tag-delete"></a></span></li> | ||
| 209 | </ul> | ||
| 210 | </td> | ||
| 211 | <td class="actions denyRight"> | ||
| 212 | <ul class="roles"> | ||
| 213 | </ul> | ||
| 214 | </td> | ||
| 215 | </tr> | ||
| 216 | <tr class="default"> | ||
| 217 | <td class="doc_space linkspace typetext inheritedRight"><span class="tag-wrapper">Unregistered</span></td> | ||
| 218 | <td class="actions allowRight"> | ||
| 219 | <ul class="roles"> | ||
| 220 | <li><span class="tag-wrapper"><span class="help" title="Users can see the content of pages">view</span></span></li> | ||
| 221 | <li><span class="tag-wrapper"><span class="help" title="Users, in order to comment, they need to solve a captcha first">captchaComment</span></span></li> | ||
| 222 | <li><span class="tag-wrapper"><span class="help" title="Users can create new user accounts">register</span></span></li> | ||
| 223 | </ul> | ||
| 224 | </td> | ||
| 225 | <td class="actions denyRight"> | ||
| 226 | <ul class="roles"> | ||
| 227 | <li><span class="tag-wrapper"><span class="help" title="Users can create, edit and delete modifications to pages and their objects (comments, attachments, etc)">edit</span></span></li> | ||
| 228 | </ul> | ||
| 229 | </td> | ||
| 230 | </tr> | ||
| 231 | <tr class="default"> | ||
| 232 | <td class="doc_space linkspace typetext inheritedRight"><span class="tag-wrapper">Registered<a title="Remove role" href="#" class="tag-tool tag-delete"></a></span></td> | ||
| 233 | <td class="actions allowRight"> | ||
| 234 | <ul class="roles"> | ||
| 235 | <li><span class="tag-wrapper"><span class="help" title="Users can see the content of pages">view</span></span></li> | ||
| 236 | <li><span class="tag-wrapper"><span class="help" title="Users can add comments to pages">comment</span></span></li> | ||
| 237 | <li><span class="tag-wrapper"><span class="help" title="Users can create, edit and delete modifications to pages and their objects (comments, attachments, etc)">edit</span></span></li> | ||
| 238 | <li><span class="tag-wrapper"><span class="help" title="Users can delete pages">delete</span></span></li> | ||
| 239 | <li><span class="tag-wrapper"><span class="help" title="Users can create new user accounts">register</span></span></li> | ||
| 240 | |||
| 241 | </ul> | ||
| 242 | </td> | ||
| 243 | <td class="actions denyRight"> | ||
| 244 | <ul class="roles"> | ||
| 245 | </ul> | ||
| 246 | </td> | ||
| 247 | </tr> | ||
| 248 | <tr class="default"> | ||
| 249 | <td class="doc_space linkspace typetext inheritedRight"><span class="tag-wrapper">Administrator</span></td> | ||
| 250 | <td class="actions allowRight"> | ||
| 251 | <ul class="roles"> | ||
| 252 | <li><span class="tag-wrapper"><span class="help" title="Users can see the content of pages">view</span></span></li> | ||
| 253 | <li><span class="tag-wrapper"><span class="help" title="Users can add comments to pages">comment</span></span></li> | ||
| 254 | <li><span class="tag-wrapper"><span class="help" title="Users can create, edit and delete modifications to pages and their objects (comments, attachments, etc)">edit</span></span></li> | ||
| 255 | <li><span class="tag-wrapper"><span class="help" title="Users can delete pages">delete</span></span></li> | ||
| 256 | <li><span class="tag-wrapper"><span class="help" title="Users can manage administration settings, also they can view, comment, edit and delete pages">admin</span></span></li> | ||
| 257 | <li><span class="tag-wrapper"><span class="help" title="Users can create new user accounts">register</span></span></li> | ||
| 258 | </ul> | ||
| 259 | </td> | ||
| 260 | <td class="actions denyRight"> | ||
| 261 | <ul class="roles"> | ||
| 262 | <li><span class="tag-wrapper"><span class="help" title="Users can use protected APIs and Groovy code in pages">programming</span></span></li> | ||
| 263 | </ul> | ||
| 264 | </td> | ||
| 265 | </tr> | ||
| 266 | <tr class="default"> | ||
| 267 | <td class="doc_space linkspace typetext inheritedRight"><span class="tag-wrapper ">Reviewer</span></td> | ||
| 268 | <td class="actions allowRight"> | ||
| 269 | <ul class="roles"> | ||
| 270 | <li class=""><span class="tag-wrapper"><span class="help" title="Users can see the content of pages">view</span></span></li> | ||
| 271 | <li class=""><span class="tag-wrapper"><span class="help" title="Users can create, edit and delete modifications to pages and their objects (comments, attachments, etc)">edit</span></span></li> | ||
| 272 | <li class=""><span class="tag-wrapper"><span class="help" title="Users can add comments to pages">comment</span></span></li> | ||
| 273 | </ul> | ||
| 274 | </td> | ||
| 275 | <td class="actions denyRight"> | ||
| 276 | <ul class="roles"> | ||
| 277 | <li class=""><span class="tag-wrapper"><span class="help" title="Users can delete pages">delete</span></span></li> | ||
| 278 | </ul> | ||
| 279 | </td> | ||
| 280 | </tr> | ||
| 281 | </tbody> | ||
| 282 | <thead class="xwiki-livetable-display-header"> | ||
| 283 | <tr class="xwiki-livetable-display-filters" id=""> | ||
| 284 | <td class="xwiki-livetable-display-header-filter typenumeric"> | ||
| 285 | <span class="addRight"> | ||
| 286 | <input type="text" title="Add role" value="add role"> | ||
| 287 | <input type="image" src="/xwiki/resources/icons/silk/bullet_add.gif" alt="Go" value="Go" class="button" title="Add role"> | ||
| 288 | </span> | ||
| 289 | </td> | ||
| 290 | <td class="xwiki-livetable-display-header-filter"> | ||
| 291 | </td> | ||
| 292 | <td class="xwiki-livetable-display-header-filter" colspan="2"> | ||
| 293 | <span class="buttonwrapper hidden"> | ||
| 294 | <a href="#" class="button">Save</a> | ||
| 295 | <span> or </span> | ||
| 296 | <span class="colorLink">Reset</span> | ||
| 297 | </span> | ||
| 298 | </td> | ||
| 299 | </tr> | ||
| 300 | </thead> | ||
| 301 | </table> | ||
| 302 | </td></tr> | ||
| 303 | </tbody> | ||
| 304 | </table> | ||
| 305 | </div> | ||
| 306 | </div> | ||
| 307 | </div> | ||
| 308 | </div> | ||
| 309 | </div> | ||
| 310 | <div class="clearfloats"></div> | ||
| 311 | {{/html}} | ||
| 312 | {{/velocity}} |