Wiki source code of Rights UI Proposal 1
Last modified by Vincent Massol on 2024/11/19 16:13
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{velocity}} | ||
| 2 | $xwiki.ssfx.use('js/xwiki/editors/dataeditors.css', true) | ||
| 3 | $xwiki.jsfx.use('js/xwiki/editors/dataeditors.js', true) | ||
| 4 | $xwiki.ssx.use("Improvements.RightsPrototype") | ||
| 5 | $xwiki.ssx.use("XWiki.XWikiUserSheet") | ||
| 6 | {{/velocity}} | ||
| 7 | |||
| 8 | {{html}} | ||
| 9 | <h1>Rights Administration</h1> | ||
| 10 | <div id="xwikiobjects" style="display: "> | ||
| 11 | <div class="rightsDesc"> | ||
| 12 | <span class="rights" scope="col"><span title="Right to View pages">View</span></span> | ||
| 13 | <span class="rights" scope="col"><span title="Right to add Comments to pages">Comment</span></span> | ||
| 14 | <span class="rights" scope="col"><span title="Right to Edit pages">Edit</span></span> | ||
| 15 | <span class="rights" scope="col"><span title="Right to Delete pages">Delete</span></span> | ||
| 16 | <span class="rights back" scope="col"><span title="Right to Administer Space/Wiki">Admin</span></span> | ||
| 17 | <span class="rights back" scope="col"><span title="Right to use protected APIs & Groovy code in Wiki pages">Program</span></span> | ||
| 18 | <span class="rights back" scope="col"><span title="Right to create new user accounts in Wiki">Register</span></span> | ||
| 19 | </div> | ||
| 20 | <div class="xclass collapsable"> | ||
| 21 | <div class="xclass-title"><h2><span class="typeWiki icon">Wiki </span></h2> <span class="itemCount"> (xwiki:)</span> | ||
| 22 | <div class="clearfloats"></div> | ||
| 23 | </div> | ||
| 24 | <div class="xclass-content"> | ||
| 25 | <div class="xobject collapsable" style="display:none"> | ||
| 26 | <div class="xobject-title"><h3><span><span class="">Advanced Rights</span></span></h3> | ||
| 27 | <div class="clearfloats"></div> | ||
| 28 | </div> | ||
| 29 | <div class="xobject-content"> | ||
| 30 | <div class="xobject-content-description"><span class="xobject-content-label">Allow to register Wiki users: </span> | ||
| 31 | <span class="typeGroup icon"><span class="tag-wrapper"><a href="">XWikiAdminGroup</a><a title="Remove special rights" href="" class="tag-tool tag-delete">X</a></span></span> | ||
| 32 | <div class="add_xobject-title"> | ||
| 33 | <a title="Add More to Group" class="xobject-add-control" href="">add more</a> | ||
| 34 | </div> | ||
| 35 | </div> | ||
| 36 | <div class="xobject-content-description"><span class="xobject-content-label">Allow the usage of protected APIs & Groovy code in Wiki pages: </span> | ||
| 37 | <div class="add_xobject-title"> | ||
| 38 | <a title="Add More to Group" class="xobject-add-control" href="">add more</a> | ||
| 39 | </div> | ||
| 40 | </div> | ||
| 41 | </div> | ||
| 42 | </div> | ||
| 43 | <div class="xobject-item"> | ||
| 44 | <div><span class="typeGroup icon">Unregistered Users</span> | ||
| 45 | <div class="rightsDesc"> | ||
| 46 | <span class="rights"><img title="Allowed" src="/xwiki/resources/js/xwiki/usersandgroups/img/allow.png"/></span> | ||
| 47 | <span class="rights"><img title="Allowed by Default" src="/xwiki/bin/download/Improvements/RightsPrototype/allowDefault.png"/></span> | ||
| 48 | <span class="rights"><img title="Allowed by Default" src="/xwiki/bin/download/Improvements/RightsPrototype/allowDefault.png"/></span> | ||
| 49 | <span class="rights"><img title="Denied by Default" src="/xwiki/bin/download/Improvements/RightsPrototype/denyDefault.png"/></span> | ||
| 50 | <span class="rights back"><img title="Denied by Default" src="/xwiki/bin/download/Improvements/RightsPrototype/denyDefault.png"/></span> | ||
| 51 | <span class="rights back"><img title="Denied by Default" src="/xwiki/bin/download/Improvements/RightsPrototype/denyDefault.png"/></span> | ||
| 52 | <span class="rights back"><img title="Allowed" src="/xwiki/resources/js/xwiki/usersandgroups/img/allow.png"/></span> | ||
| 53 | </div> | ||
| 54 | <div class="clearfloats"></div> | ||
| 55 | </div> | ||
| 56 | </div> | ||
| 57 | <div class="xobject-item"> | ||
| 58 | <div><span class="typeGroup icon"><a href="">Registered Users</a></span> | ||
| 59 | <div class="rightsDesc"> | ||
| 60 | <span class="rights"><img title="Allowed" src="/xwiki/resources/js/xwiki/usersandgroups/img/allow.png"/></span> | ||
| 61 | <span class="rights"><img title="Allowed" src="/xwiki/resources/js/xwiki/usersandgroups/img/allow.png"/></span> | ||
| 62 | <span class="rights"><img title="Allowed" src="/xwiki/resources/js/xwiki/usersandgroups/img/allow.png"/></span> | ||
| 63 | <span class="rights"><img title="Allowed" src="/xwiki/resources/js/xwiki/usersandgroups/img/allow.png"/></span> | ||
| 64 | <span class="rights back"><img title="Denied by Default" src="/xwiki/bin/download/Improvements/RightsPrototype/denyDefault.png"/></span> | ||
| 65 | <span class="rights back"><img title="Denied by Default" src="/xwiki/bin/download/Improvements/RightsPrototype/denyDefault.png"/></span> | ||
| 66 | <span class="rights back"><img title="Allowed by Default" src="/xwiki/bin/download/Improvements/RightsPrototype/allowDefault.png"/></span> | ||
| 67 | </div> | ||
| 68 | <div class="clearfloats"></div> | ||
| 69 | </div> | ||
| 70 | </div> | ||
| 71 | <div class="xobject-item"> | ||
| 72 | <div><span class="typeGroup icon"><span class="tag-wrapper"><a href="">XWikiAdminGroup</a><a title="Remove special rights" href="" class="tag-tool tag-delete">X</a></span></span> | ||
| 73 | <div class="rightsDesc"> | ||
| 74 | <span class="rights"><img title="Allowed by Inheritance" src="/xwiki/bin/download/Improvements/RightsPrototype/allowInherit.png"/></span> | ||
| 75 | <span class="rights"><img title="Allowed by Inheritance" src="/xwiki/bin/download/Improvements/RightsPrototype/allowInherit.png"/></span> | ||
| 76 | <span class="rights"><img title="Allowed" src="/xwiki/resources/js/xwiki/usersandgroups/img/allow.png"/></span> | ||
| 77 | <span class="rights"><img title="Allowed" src="/xwiki/resources/js/xwiki/usersandgroups/img/allow.png"/></span> | ||
| 78 | <span class="rights back"><img title="Allowed" src="/xwiki/resources/js/xwiki/usersandgroups/img/allow.png"/></span> | ||
| 79 | <span class="rights back"><img title="Denied by Default" src="/xwiki/bin/download/Improvements/RightsPrototype/denyDefault.png"/></span> | ||
| 80 | <span class="rights back"><img title="Allowed by Default" src="/xwiki/bin/download/Improvements/RightsPrototype/allowDefault.png"/></span> | ||
| 81 | </div> | ||
| 82 | <div class="clearfloats"></div> | ||
| 83 | </div> | ||
| 84 | </div> | ||
| 85 | <div class="add_xobject"> | ||
| 86 | <div class="add_xobject-title"> | ||
| 87 | <a title="Add Special Wiki Rights" class="xobject-add-control" href="">add more special rights for the Wiki</a> | ||
| 88 | </div> | ||
| 89 | </div> | ||
| 90 | </div> | ||
| 91 | </div> | ||
| 92 | <div class="xclass collapsable"> | ||
| 93 | <div class="xclass-title"><h2><span class="typeSpace icon">Spaces</span></h2> | ||
| 94 | <div class="clearfloats"></div> | ||
| 95 | </div> | ||
| 96 | <div class="xclass-content"> | ||
| 97 | <div class="xobject collapseble"> | ||
| 98 | <div class="xobject-title"><h3><span class="tag-wrapper"><a href="">Blog</a><a title="Remove special rights" href="" class="tag-tool tag-delete">X</a></span> <span class="itemCount">(xwiki:Blog)</span></h3> | ||
| 99 | <div class="clearfloats"></div> | ||
| 100 | </div> | ||
| 101 | <div class="xobject-content"> | ||
| 102 | <div class="xobject-item"> | ||
| 103 | <span class="typeGroup icon"><span class="tag-wrapper">Unregistered Users<a title="Remove special rights" href="" class="tag-tool tag-delete">X</a></span></span> | ||
| 104 | <div class="rightsDesc"> | ||
| 105 | <span class="rights"><img title="Allowed by Inheritance" src="/xwiki/bin/download/Improvements/RightsPrototype/allowInherit.png"/></span> | ||
| 106 | <span class="rights"><img title="Allowed" src="/xwiki/resources/js/xwiki/usersandgroups/img/allow.png"/></span> | ||
| 107 | <span class="rights"><img title="Allowed by Default" src="/xwiki/bin/download/Improvements/RightsPrototype/allowDefault.png"/></span> | ||
| 108 | <span class="rights"><img title="Denied by Default" src="/xwiki/bin/download/Improvements/RightsPrototype/denyDefault.png"/></span> | ||
| 109 | <span class="rights"><img title="Denied by Default" src="/xwiki/bin/download/Improvements/RightsPrototype/denyDefault.png"/></span> | ||
| 110 | <span class="rights"></span> | ||
| 111 | <span class="rights"></span> | ||
| 112 | </div> | ||
| 113 | <div class="clearfloats"></div> | ||
| 114 | </div> | ||
| 115 | <div class="add_xobject"> | ||
| 116 | <div class="add_xobject-title"> | ||
| 117 | <a title="Add Special Space Rights" class="xobject-add-control" href="">add more special rights for this Space</a> | ||
| 118 | </div> | ||
| 119 | </div> | ||
| 120 | </div> | ||
| 121 | </div> | ||
| 122 | <div class="add_xobject"> | ||
| 123 | <div class="add_xobject-title"> | ||
| 124 | <a title="Add Special Space Rights" class="xobject-add-control" href="">add Space with special rights</a> | ||
| 125 | </div> | ||
| 126 | </div> | ||
| 127 | </div> | ||
| 128 | </div> | ||
| 129 | <div class="xclass collapsable"> | ||
| 130 | <div class="xclass-title"><h2><span class="typePage icon">Pages</span></h2> | ||
| 131 | <div class="clearfloats"></div> | ||
| 132 | </div> | ||
| 133 | <div class="xclass-content"> | ||
| 134 | <div class="xobject collapsed"> | ||
| 135 | <div class="xobject-title"><h3><span class="tag-wrapper"><a href="">First blog post</a><a title="Remove special rights" href="" class="tag-tool tag-delete">X</a></span> <span class="itemCount">(xwiki:Blog.BlogIntroduction)</span></h3> | ||
| 136 | <div class="clearfloats"></div> | ||
| 137 | </div> | ||
| 138 | <div class="xobject-content"> | ||
| 139 | <div class="xobject-item"> | ||
| 140 | <span class="typeUser icon"><span class="tag-wrapper"><a href="">risherry</a><a title="Remove special rights" href="" class="tag-tool tag-delete">X</a></span></span> | ||
| 141 | <div class="rightsDesc"> | ||
| 142 | <span class="rights"><img title="Allowed by Inheritance" src="/xwiki/bin/download/Improvements/RightsPrototype/allowInherit.png"/></span> | ||
| 143 | <span class="rights"><img title="Allowed by Inheritance" src="/xwiki/bin/download/Improvements/RightsPrototype/allowInherit.png"/></span> | ||
| 144 | <span class="rights"><img title="Denied" src="/xwiki/resources/js/xwiki/usersandgroups/img/deny1.png"/></span> | ||
| 145 | <span class="rights"><img title="Allowed by Inheritance" src="/xwiki/bin/download/Improvements/RightsPrototype/allowInherit.png"/></span> | ||
| 146 | <span class="rights"></span> | ||
| 147 | <span class="rights"></span> | ||
| 148 | <span class="rights"></span> | ||
| 149 | </div> | ||
| 150 | <div class="clearfloats"></div> | ||
| 151 | </div> | ||
| 152 | <div class="xobject-item"> | ||
| 153 | <span class="typeGroup icon"><span class="tag-wrapper">Unregistered Users<a title="Remove special rights" href="" class="tag-tool tag-delete">X</a></span></span> | ||
| 154 | <div class="rightsDesc"> | ||
| 155 | <span class="rights"><img title="Allowed by Inheritance" src="/xwiki/bin/download/Improvements/RightsPrototype/allowInherit.png"/></span> | ||
| 156 | <span class="rights"><img title="Allowed by Inheritance" src="/xwiki/bin/download/Improvements/RightsPrototype/allowInherit.png"/></span> | ||
| 157 | <span class="rights"><img title="Allowed" src="/xwiki/resources/js/xwiki/usersandgroups/img/allow.png"/></span> | ||
| 158 | <span class="rights"><img title="Denied by Default" src="/xwiki/bin/download/Improvements/RightsPrototype/denyDefault.png"/></span> | ||
| 159 | <span class="rights"></span> | ||
| 160 | <span class="rights"></span> | ||
| 161 | <span class="rights"></span> | ||
| 162 | </div> | ||
| 163 | <div class="clearfloats"></div> | ||
| 164 | </div> | ||
| 165 | <div class="add_xobject"> | ||
| 166 | <div class="add_xobject-title"> | ||
| 167 | <a title="Add Special Page Rights" class="xobject-add-control" href="">add more special rights for this Page</a> | ||
| 168 | </div> | ||
| 169 | </div> | ||
| 170 | </div> | ||
| 171 | </div> | ||
| 172 | <div class="add_xobject"> | ||
| 173 | <div class="add_xobject-title"> | ||
| 174 | <a title="Add Special Page Rights" class="xobject-add-control" href="">add Page with special rights</a> | ||
| 175 | </div> | ||
| 176 | </div> | ||
| 177 | </div> | ||
| 178 | </div> | ||
| 179 | <div class="clearfloats"></div> | ||
| 180 | </div> | ||
| 181 | {{/html}} | ||
| 182 | |||
| 183 | {{html}} | ||
| 184 | <h1> Users & Groups Administration</h1> | ||
| 185 | <div id="xwikiobjects"> | ||
| 186 | <div class=""> | ||
| 187 | <div class="xclass-title"><h2 class="typeGroup icon">Unregistered Users</h2> <!--span class="itemCount"> (xwiki:XWiki.Guest)</span--> | ||
| 188 | <div class="clearfloats"></div> | ||
| 189 | </div> | ||
| 190 | <div class="clearfloats"></div> | ||
| 191 | </div> | ||
| 192 | <div class="xclass collapsable"> | ||
| 193 | <div class="xclass-title"><h2 class="typeGroup icon"><a href="">Registered Users</a> <span class="itemCount">(3)</span></h2> <!--span class="itemCount"> (xwiki:XWiki.XWikiAllGroup)</span--> | ||
| 194 | <div class="clearfloats"></div> | ||
| 195 | </div> | ||
| 196 | <div class="xclass-content"> | ||
| 197 | <div class="xobject collapseble"> | ||
| 198 | <div class="xobject-title"><h3><span class="tag-wrapper"><span class="typeUser icon"><a href="">Administrator</a></span><a title="Delete user from wiki" href="" class="tag-tool tag-delete">X</a></span> <!--span class="itemCount">(xwiki:XWiki.Admin)</span--></h3> | ||
| 199 | <div class="clearfloats"></div> | ||
| 200 | </div> | ||
| 201 | <div class="xobject-content"> | ||
| 202 | <div class="xobject-content-description"><span class="xobject-content-label">Belongs to groups: </span> | ||
| 203 | <span class="tag-wrapper"><span class="typeGroup icon"><a href="">XWikiAdminGroup</a></span><a title="Remove user from this group" class="tag-tool tag-delete" href="">X</a></span> | ||
| 204 | </div> | ||
| 205 | </div> | ||
| 206 | </div> | ||
| 207 | <div class=""> | ||
| 208 | <div class=""><div style="padding-left:14px;"><span class="tag-wrapper"><span class="typeUser icon"><a href="">evalica</a></span> <a title="Delete user from wiki" href="" class="tag-tool tag-delete">X</a></span><!--span class="itemCount">(xwiki:XWiki.evalica)</span--></div> | ||
| 209 | <div class="clearfloats"></div> | ||
| 210 | </div> | ||
| 211 | </div> | ||
| 212 | <div class="xobject collapseble"> | ||
| 213 | <div class="xobject-title"><h3><span class="tag-wrapper"><span class="typeUser icon"><a href="">risherry</a></span><a title="Delete user from wiki" href="" class="tag-tool tag-delete">X</a></span> <!--span class="itemCount">(xwiki:XWiki.risherry)</span--></h3> | ||
| 214 | <div class="clearfloats"></div> | ||
| 215 | </div> | ||
| 216 | <div class="xobject-content"> | ||
| 217 | <div class="xobject-content-description"><span class="xobject-content-label">Belongs to groups: </span> | ||
| 218 | <span class="tag-wrapper"><span class="typeGroup icon"><a href="">XWikiAdminGroup</a></span><a title="Remove user from this group" class="tag-tool tag-delete" href="">X</a></span> | ||
| 219 | </div> | ||
| 220 | </div> | ||
| 221 | </div> | ||
| 222 | <div class="add_xobject"> | ||
| 223 | <div class="add_xobject-title"> | ||
| 224 | <a title="Register User" class="xobject-add-control" href="">register User</a> | ||
| 225 | </div> | ||
| 226 | </div> | ||
| 227 | </div> | ||
| 228 | </div> | ||
| 229 | <div class="xclass collapsable"> | ||
| 230 | <div class="xclass-title"><h2>Groups <span class="itemCount">(1)</span></h2> | ||
| 231 | <div class="clearfloats"></div> | ||
| 232 | </div> | ||
| 233 | <div class="xclass-content"> | ||
| 234 | <div class="xobject collapsable"> | ||
| 235 | <div class="xobject-title"><h3><span class="tag-wrapper"><span class="typeGroup icon"><a href="">XWikiAdminGroup </a></span><a title="Delete group" class="tag-tool tag-delete" href="">X</a></span><span class="itemCount">(2)</span></h3> <!--div class="itemCount">(xwiki:XWiki.XWikiAdminGroup)</div--> | ||
| 236 | <div class="clearfloats"></div> | ||
| 237 | </div> | ||
| 238 | <div class="xobject-content"> | ||
| 239 | <div class="xobject-content-description"><span class="xobject-content-label">Group members: </span> | ||
| 240 | <span class="tag-wrapper"><span class="typeUser icon"><a href="">Administrator</a></span><a title="Remove user from this group" class="tag-tool tag-delete" href="">X</a></span><span class="tag-wrapper"><span class="typeUser icon"><a href="">risherry</a></span><a title="Remove user from this group" class="tag-tool tag-delete" href="">X</a></span> | ||
| 241 | </div> | ||
| 242 | <div class="add_xobject"> | ||
| 243 | <div class="add_xobject-title"> | ||
| 244 | <a title="Add More to Group" class="xobject-add-control" href="">add more to group</a> | ||
| 245 | </div> | ||
| 246 | </div> | ||
| 247 | </div> | ||
| 248 | </div> | ||
| 249 | <div class="add_xobject"> | ||
| 250 | <div class="add_xobject-title"> | ||
| 251 | <a title="Add Group" class="xobject-add-control" href="">add Group</a> | ||
| 252 | </div> | ||
| 253 | </div> | ||
| 254 | </div> | ||
| 255 | </div> | ||
| 256 | </div> | ||
| 257 | {{/html}} | ||
| 258 | |||
| 259 | |||
| 260 | {{html}} | ||
| 261 | <h1> User Profile </h1> | ||
| 262 | <div id="vertical-tabs" style="height: 281px;"> | ||
| 263 | <div id="avatar"> | ||
| 264 | <span class="hidden" id="avatarUpload">Change photo</span> | ||
| 265 | <a href="/xwiki/bin/edit/XWiki/Admin?xpage=changemyavatar"><img src="/xwiki/bin/download/XWiki/XWikiUserSheet/noavatar.png?width=120" alt="Administrator" id="xwikiuseravatar" class="photo"></a> | ||
| 266 | </div> | ||
| 267 | <div> | ||
| 268 | <ul> | ||
| 269 | <li class="vertical-tab" id="profileTab"><a href="?category=profile"><img alt="Profile" src="/xwiki/resources/icons/silk/vcard.gif"><span>Profile</span></a></li> | ||
| 270 | <li class="vertical-tab" id="preferencesTab"><a href="?category=preferences"><img alt="Preferences" src="/xwiki/resources/icons/silk/wrench.gif"><span>Preferences</span></a></li> | ||
| 271 | <li class="vertical-tab" id="watchlistTab"><a href="?category=watchlist"><img alt="Watchlist" src="/xwiki/resources/icons/silk/star.gif"><span>Watchlist</span></a></li> | ||
| 272 | <li class="vertical-tab active" id="rightsTab"><a href="?category=rights"><img alt="Rgiths" src="/xwiki/resources/icons/silk/key.gif"><span>Rights</span></a></li> | ||
| 273 | </ul> | ||
| 274 | </div> | ||
| 275 | </div> | ||
| 276 | <div class="vertical-pane"> | ||
| 277 | <div class="dashboard dashboardview"> | ||
| 278 | <div class="dashboardright"> | ||
| 279 | <div class="passwordManagement"> | ||
| 280 | <h1>User's Rights: <span class="itemCount">XWiki.risherry</span></h1> | ||
| 281 | <div> | ||
| 282 | <div><span class="xobject-content-label">Belongs to groups: </span> | ||
| 283 | <span class="typeGroup icon allowedRight"><a href="">XWikiAdminGroup</a></span> | ||
| 284 | </div> | ||
| 285 | <div class="sectionSeparator"></div><div class="clearfloats"></div> | ||
| 286 | <div><span class="xobject-content-label"><strong>View</strong> Right for: </span> | ||
| 287 | <span class="rightForGroup"> | ||
| 288 | <span class="typeWiki icon allowedRight"><a href="">XWiki</a></span> | ||
| 289 | </span> | ||
| 290 | </div> | ||
| 291 | <div><span class="xobject-content-label"><strong>Comment</strong> Right for: </span> | ||
| 292 | <span class="rightForGroup"> | ||
| 293 | <span class="typeWiki icon allowedRight"><a href="">XWiki</a></span> | ||
| 294 | </span> | ||
| 295 | </div> | ||
| 296 | <div><span class="xobject-content-label"><strong>Edit</strong> Right for: </span> | ||
| 297 | <span class="rightForGroup"> | ||
| 298 | <span class="typeWiki icon allowedRight"><a href="">XWiki</a></span> <span class="typePage icon deniedRight"><a href="">First blog post</a></span> | ||
| 299 | </span> | ||
| 300 | </div> | ||
| 301 | <div><span class="xobject-content-label"><strong>Delete</strong> Right for: </span> | ||
| 302 | <span class="rightForGroup"> | ||
| 303 | <span class="typeWiki icon allowedRight"><a href="">XWiki</a></span> | ||
| 304 | </span> | ||
| 305 | </div> | ||
| 306 | <div><span class="xobject-content-label"><strong>Admin</strong> Right for: </span> | ||
| 307 | <span class="rightForGroup"> | ||
| 308 | <span class="typeWiki icon allowedRight"><a href="">XWiki</a></span> | ||
| 309 | </span> | ||
| 310 | </div> | ||
| 311 | </div> | ||
| 312 | </div> | ||
| 313 | </div> | ||
| 314 | </div> | ||
| 315 | </div> | ||
| 316 | {{/html}} |