Wiki source code of Rights UI Proposal 2 - 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.Rights2Wiki")) | ||
| 3 | #set ($ok = $xwiki.ssx.use("XWiki.AdminSheet")) | ||
| 4 | #set ($ok = $xwiki.jsx.use("Improvements.Rights2Wiki")) | ||
| 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"> 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}}: | ||
| 15 | <a href="/xwiki/bin/view/Main/" class="wiki" href="#"="Wiki level">XWiki</a> <span class="separator">»</span> <a href="/xwiki/bin/view/Sandbox/" class="space" href="#"="Space level">Sandbox</a> <span class="separator">»</span> <a href="/xwiki/bin/view/Sandbox/TestPage2" class="page" href="#"="Page level">Sandbox Test Page 2</a> | ||
| 16 | </div> | ||
| 17 | </div> | ||
| 18 | <div id="change-context"> | ||
| 19 | <label class="hidden" for="goto-select">Place to administer</label> | ||
| 20 | <select id="goto-select"> | ||
| 21 | <optgroup label="Edit Wiki preferences:"> | ||
| 22 | <option selected="selected" value="/xwiki/bin/admin/XWiki/XWikiPreferences">Wiki administration</option> | ||
| 23 | </optgroup> | ||
| 24 | <optgroup label="Edit space preferences: "> | ||
| 25 | <option value="/xwiki/bin/admin/AnnotationCode/WebPreferences">AnnotationCode</option> | ||
| 26 | <option value="/xwiki/bin/admin/Blog/WebPreferences">Blog</option> | ||
| 27 | <option value="/xwiki/bin/admin/ColorThemes/WebPreferences">ColorThemes</option> | ||
| 28 | <option value="/xwiki/bin/admin/Improvements/WebPreferences">Improvements</option> | ||
| 29 | <option value="/xwiki/bin/admin/Main/WebPreferences">Main</option> | ||
| 30 | <option value="/xwiki/bin/admin/Panels/WebPreferences">Panels</option> | ||
| 31 | <option value="/xwiki/bin/admin/Sandbox/WebPreferences">Sandbox</option> | ||
| 32 | <option value="/xwiki/bin/admin/Scheduler/WebPreferences">Scheduler</option> | ||
| 33 | <option value="/xwiki/bin/admin/Stats/WebPreferences">Stats</option> | ||
| 34 | <option value="/xwiki/bin/admin/XWiki/WebPreferences">XWiki</option> | ||
| 35 | </optgroup> | ||
| 36 | </select> | ||
| 37 | <br><span class="buttonwrapper" id="showsectionswrapper"><a href="/xwiki/bin/admin/XWiki/XWikiPreferences" id="showsections">Show the available categories</a></span> | ||
| 38 | <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> | ||
| 39 | </div> | ||
| 40 | |||
| 41 | <div class="leftMargin column65"> | ||
| 42 | <div class="rightSection"> | ||
| 43 | <div class="xclass collapsable"> | ||
| 44 | <div class="explication2Header xclass-title"> | ||
| 45 | <span class="savedExpand "><span class="colorHeader">Page Rights</span> <span class="colorHeader right">▾</span></span> | ||
| 46 | <div class="xHelpLabel">specify users that have explicit rights for this page</div> | ||
| 47 | </div> | ||
| 48 | <div class="xclass-content"> | ||
| 49 | <table summary="" id="alldocs" class="xwiki-livetable"> | ||
| 50 | <tbody | ||
| 51 | <tr><td class="xwiki-livetable-display-container"> | ||
| 52 | <table class="xwiki-livetable-display"> | ||
| 53 | <thead class="xwiki-livetable-display-header"> | ||
| 54 | <tr> | ||
| 55 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 56 | <a rel="doc.name"><label for="xwiki-livetable-alldocs-filter-1">Type</label></a></th> | ||
| 57 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 58 | <a rel="doc.space"><label for="xwiki-livetable-alldocs-filter-2">User</label></a></th> | ||
| 59 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 60 | <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> | ||
| 61 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 62 | <a rel="doc.date">{{tooltip label="Comment"}}Users can add comments to pages{{/tooltip}}</a></th> | ||
| 63 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 64 | <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> | ||
| 65 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 66 | <a rel="doc.date">{{tooltip label="Delete"}}Users can delete pages{{/tooltip}}</a></th> | ||
| 67 | </tr> | ||
| 68 | <tr class="xwiki-livetable-display-filters" id=""> | ||
| 69 | <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> | ||
| 70 | <td class="xwiki-livetable-display-header-filter"><input type="text" value="filter..." href="#"="Filter for the Space column" size="${colprop.size}" name="doc.space" id="xwiki-livetable-alldocs-filter-2"></td> | ||
| 71 | <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> | ||
| 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 | </tr> | ||
| 76 | </thead> | ||
| 77 | <tbody id="alldocs-display" class="xwiki-livetable-display-body"> | ||
| 78 | <tr> | ||
| 79 | <td class="doc_name linkview typetext"><a class="user icon" title="User" href="#"></a></td> | ||
| 80 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a href="">evalica</a><a href="#"="Remove rights for users" href="" class="tag-tool tag-delete">X</a></span></td> | ||
| 81 | <td class="actions"> | ||
| 82 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 83 | </td> | ||
| 84 | <td class="actions"> | ||
| 85 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 86 | </td> | ||
| 87 | <td class="actions"> | ||
| 88 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 89 | </td> | ||
| 90 | <td class="actions"> | ||
| 91 | <a class="denyInherit icon" title="Deny by Inheritance" href="#"></a> | ||
| 92 | </td> | ||
| 93 | </tr> | ||
| 94 | <tr> | ||
| 95 | <td class="doc_name linkview typetext"><a class="group icon" title="Group" href="#"></a></td> | ||
| 96 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a href="">XWikiAdminGroup</a><a href="#"="Remove rights for users" href="" class="tag-tool tag-delete">X</a></span></td> | ||
| 97 | <td class="actions "> | ||
| 98 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 99 | </td> | ||
| 100 | <td class="actions "> | ||
| 101 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 102 | </td> | ||
| 103 | <td class="actions "> | ||
| 104 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 105 | </td> | ||
| 106 | <td class="actions "> | ||
| 107 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 108 | </td> | ||
| 109 | </tr> | ||
| 110 | <tr class="default"> | ||
| 111 | <td class="doc_name linkview typetext"><a class="group icon" title="Group" href="#"></a></td> | ||
| 112 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a href="">Registered Users</a><a href="#"="Remove rights for users" href="" class="tag-tool tag-delete">X</a></span></td> | ||
| 113 | <td class="actions "> | ||
| 114 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 115 | </td> | ||
| 116 | <td class="actions "> | ||
| 117 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 118 | </td> | ||
| 119 | <td class="actions "> | ||
| 120 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 121 | </td> | ||
| 122 | <td class="actions "> | ||
| 123 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 124 | </td> | ||
| 125 | </tr> | ||
| 126 | <tr class="default"> | ||
| 127 | <td class="doc_name linkview typetext"><a class="group icon" title="Group" href="#"></a></td> | ||
| 128 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a href="">Unregistered Users</a><a href="#"="Remove rights for users" href="" class="tag-tool tag-delete">X</a></span></td> | ||
| 129 | <td class="actions "> | ||
| 130 | <a class="allowInherit icon" title="Allow by Inheritance" href="#"></a> | ||
| 131 | </td> | ||
| 132 | <td class="actions "> | ||
| 133 | <a class="allowDefault icon" title="Allow by Default" href="#"></a> | ||
| 134 | </td> | ||
| 135 | <td class="actions "> | ||
| 136 | <a class="allowDefault icon" title="Allow by Default" href="#"></a> | ||
| 137 | </td> | ||
| 138 | <td class="actions "> | ||
| 139 | <a class="denyDefault icon" title="Deny by Default" href="#"></a> | ||
| 140 | </td> | ||
| 141 | </tr> | ||
| 142 | </tbody> | ||
| 143 | <thead class="xwiki-livetable-display-header"> | ||
| 144 | <tr class="xwiki-livetable-display-filters" id=""> | ||
| 145 | <td class="xwiki-livetable-display-header-filter typenumeric"> | ||
| 146 | <span href="#"="Add Special Space Rights" class="addCaption">Add rights to:</span> | ||
| 147 | </td> | ||
| 148 | <td class="xwiki-livetable-display-header-filter"> | ||
| 149 | <span class="addRight"> | ||
| 150 | <input type="text" href="#"="Add specific user" value="user / group"> | ||
| 151 | <input type="image" src="/xwiki/resources/icons/silk/bullet_add.gif" alt="Go" value="Go" class="button" href="#"="Add rights to user"> | ||
| 152 | </span> | ||
| 153 | </td> | ||
| 154 | <td class="xwiki-livetable-display-header-filter" colspan="5"> | ||
| 155 | </td> | ||
| 156 | </tr> | ||
| 157 | </thead> | ||
| 158 | </table> | ||
| 159 | </td></tr> | ||
| 160 | </tbody> | ||
| 161 | </table> | ||
| 162 | </div> | ||
| 163 | </div> | ||
| 164 | </div> | ||
| 165 | |||
| 166 | </div> | ||
| 167 | |||
| 168 | <div class="left column30"> | ||
| 169 | |||
| 170 | <div class="rightSection"> | ||
| 171 | <div class="xclass collapsable"> | ||
| 172 | <div class="explication2Header xclass-title"> | ||
| 173 | <span class="savedExpand "><span class="colorHeader">Creator</span> <span class="colorHeader right">▾</span></span> | ||
| 174 | <div class="xHelpLabel">the creator can view, comment, edit and delete the page</div> | ||
| 175 | </div> | ||
| 176 | <div class="xclass-content simpleContent"> | ||
| 177 | <div> <a class="user icon" title="User" href="#">sdumitriu</a> <div class="containingChanges">full rights</div></div> | ||
| 178 | </div> | ||
| 179 | </div> | ||
| 180 | </div> | ||
| 181 | |||
| 182 | <div class="rightSection"> | ||
| 183 | <div class="xclass collapsable"> | ||
| 184 | <div class="explication2Header xclass-title"> | ||
| 185 | <span class="savedExpand "><span class="colorHeader">Administrators</span> <span class="colorHeader right">▾</span></span> | ||
| 186 | <div class="xHelpLabel">users can manage administration settings at a higher level, view, comment, edit and delete the page</div> | ||
| 187 | </div> | ||
| 188 | <div class="xclass-content simpleContent"> | ||
| 189 | <div> <a class="user icon" title="User" href="#">rstavro</a> <div class="containingChanges">full rights</div></div> | ||
| 190 | <div> <a class="group icon" title="Group" href="#">XWikiAdminGroup</a> <div class="containingChanges">full rights</div></div> | ||
| 191 | </div> | ||
| 192 | </div> | ||
| 193 | </div> | ||
| 194 | |||
| 195 | </div> | ||
| 196 | </div> | ||
| 197 | {{/html}} | ||
| 198 | {{/velocity}} |