Last change
on this file since 74 was 66, checked in by Kris Deugau, 14 years ago |
/trunk
Basic group permissions editing functional - enforcing is trivial
- add group now adds the permissions entry. TBD: permission inheritance
- edit group Does The Right Thing(TM) - either editing the existing entry,
or converting an inherited permission group to a separate one. still
needs to rewrite subgroup and contained user inherited permissions
- the HTML permissions table rows have been moved. edit-user should pick
this up, and will require calling the template explicitly so as to show
both the default and custom permissions.
- the list of individual permissions have been moved to a list in DNSDB.pm
code that refers to this should not assume any given length - this makes
adding new permission types (somewhat) easier
Tweak menu group-tree CSS (again) add some (broken) images
- this should probalby revert to an earlier setup that uses an image
as the <li> bullet point rather than pushing the text to the right,
since many (most?) nodes will usually be leaf nodes
HTML changes not validated
|
File size:
1.5 KB
|
Line | |
---|
1 | <!-- <TMPL_VAR NAME=sid> -->
|
---|
2 | <table class="wholepage"><tr>
|
---|
3 | <TMPL_INCLUDE NAME="menu.tmpl">
|
---|
4 |
|
---|
5 | <td align="center">
|
---|
6 |
|
---|
7 | <form action="dns.cgi">
|
---|
8 | <fieldset>
|
---|
9 |
|
---|
10 | <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
|
---|
11 | <input type="hidden" name="page" value="newgrp" />
|
---|
12 | <input type="hidden" name="action" value="add" />
|
---|
13 |
|
---|
14 | <table class="container" width="450">
|
---|
15 | <tr><td>
|
---|
16 | <table border="0" cellspacing="2" cellpadding="2" width="100%">
|
---|
17 | <TMPL_IF add_failed> <tr><td class="errhead" colspan="4">Error adding group <TMPL_VAR NAME=newgroup>: <TMPL_VAR NAME=errmsg></td></tr></TMPL_IF>
|
---|
18 | <tr class="darkrowheader"><td colspan="4" align="center">Add Group</td></tr>
|
---|
19 |
|
---|
20 | <tr class="datalinelight">
|
---|
21 | <td colspan=2>Group Name:</td>
|
---|
22 | <td align="left" colspan=2><input type="text" name="newgroup" value="<TMPL_VAR NAME=newgroup>" /></td>
|
---|
23 | </tr>
|
---|
24 | <tr class="datalinelight">
|
---|
25 | <td colspan=2>Add as subgroup of:</td>
|
---|
26 | <td colspan=2><select name="pargroup">
|
---|
27 | <TMPL_LOOP name=pargroup> <option value="<TMPL_VAR NAME=groupval>"<TMPL_IF groupactive> selected="selected"</TMPL_IF>><TMPL_VAR name=groupname></option>
|
---|
28 | </TMPL_LOOP>
|
---|
29 | </select></td>
|
---|
30 | </tr>
|
---|
31 | <tr class="darkrowheader border">
|
---|
32 | <td colspan="4" align="center">Default permissions for users created in this group:</td>
|
---|
33 | </tr>
|
---|
34 | <TMPL_INCLUDE name="permlist.tmpl">
|
---|
35 | <tr class="darkrowheader">
|
---|
36 | <td colspan="4" align="center"><input type="submit" value="Add group" /></td>
|
---|
37 | </tr>
|
---|
38 | <tr><td colspan="4">tmp note: radio button select "group template" vs "clone group"?</td></tr>
|
---|
39 | </table>
|
---|
40 | </td>
|
---|
41 | </tr>
|
---|
42 | </table>
|
---|
43 |
|
---|
44 | </fieldset>
|
---|
45 | </form>
|
---|
46 |
|
---|
47 | </td></tr>
|
---|
48 | </table>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.