12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <script type="text/javascript">//<![CDATA[
- function reset() {
- for (i = 0; i < $('#permissionsform').raw().elements.length; i++) {
- element = $('#permissionsform').raw().elements[i];
- if (element.id.substr(0, 8) == 'default_') {
- $('#' + element.id.substr(8)).raw().checked = element.checked;
- }
- }
- }
- //]]>
- </script>
- <div class="header">
- <h2><a href="user.php?id={{ user.id }}" class="username">{{ user.username }}</a> › Permissions</h2>
- <div class="linkbox">
- <a href="#" onclick="reset(); return false;" class="brackets">Defaults</a>
- <a href="tools.php?action=permissions&id={{ user.primaryClass }}" class="brackets">Primary permissions</a>
- </div>
- </div>
- <div class="box pad thin">
- <p>Before using permissions, please understand that it allows you to both
- grant and revoke access to specific features. If you think that to add access
- to a feature, you need to uncheck everything else, <strong>YOU ARE
- WRONG</strong>. The check boxes on the left, which are grayed out, are the
- standard permissions granted by their class (and donor/artist status). Any
- changes you make to the right side will overwrite this.</p>
- <p>It's not complicated, and if you screw up, click the "Defaults" link at
- the top. It will reset the user to their respective features granted by
- class, then you can select or deselect the one or two things you want to
- change. <strong>DO NOT DESELECT EVERYTHING.</strong> If you need further
- clarification, ask a developer before using this tool.</p>
- </div>
- <br />
- <form class="manage_form" name="permissions" id="permissionsform" method="post" action="">
- <input type="hidden" name="action" value="permissions" />
- <input type="hidden" name="auth" value="{{ auth }}" />
- <input type="hidden" name="id" value="{{ user.id }}" />
- {% include 'admin/privilege-list.twig'
- with {
- 'default': user.defaultPermissionList,
- 'user': user.permissionList,
- } only
- %}
- </form>
|