source: trunk/templates/grpman.tmpl@ 146

Last change on this file since 146 was 140, checked in by Kris Deugau, 13 years ago

/trunk

ACL fixups:

  • Default Records are only viewable by an admin
  • Remove links for group operations user is not permitted to access, also rename "Manage groups" to "View groups" if the user does not have any of group add/edit/delete permissions

Lightly tweak error message handling for group operations to
more easily overload it for different errors
TODO note and fixme notes about deleting groups with stuff
still in them

File size: 2.2 KB
Line 
1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
5<td align="center" valign="top">
6
7 <TMPL_IF errmsg>
8 <div class='errmsg'><TMPL_VAR NAME=errmsg></div>
9 </TMPL_IF>
10
11<table width="98%">
12<tr><th colspan="3"><div class="center maintitle"><TMPL_IF chggrps>Manage<TMPL_ELSE>View</TMPL_IF> groups</div></th></tr>
13<tr>
14<td class="leftthird"><TMPL_INCLUDE NAME="pgcount.tmpl"></td>
15<td align="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></td>
16<td class="rightthird"><TMPL_INCLUDE NAME="sbox.tmpl"></td>
17</tr>
18<tr><td colspan="3" align="center"><TMPL_INCLUDE NAME="lettsearch.tmpl"></td></tr>
19<tr>
20 <td colspan="2"><TMPL_IF edgrp><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=edgroup&amp;gid=<TMPL_VAR NAME=gid>">Edit Current Group</a></TMPL_IF></td>
21 <td align="right"><TMPL_IF addgrp><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=newgrp">New Group</a></TMPL_IF>
22</td>
23</tr>
24</table>
25
26<table width="98%" border="0" cellspacing="4" cellpadding="3">
27<tr>
28<TMPL_LOOP NAME=colheads>
29 <td class="datahead_<TMPL_IF firstcol>l<TMPL_ELSE>s</TMPL_IF>"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR NAME=offset></TMPL_IF>&amp;sortby=<TMPL_VAR NAME=sortby>&amp;order=<TMPL_VAR NAME=order>"><TMPL_VAR NAME=colname></a><TMPL_IF NAME=sortorder>&nbsp;<img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></td></TMPL_LOOP>
30<TMPL_IF delgrp>
31 <td class="datahead_s">Delete</td>
32</TMPL_IF>
33</tr>
34<TMPL_IF name=grouptable>
35<TMPL_LOOP name=grouptable>
36<tr class="row<TMPL_VAR name=bg>">
37 <td align="left"><TMPL_IF edgrp><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=edgroup&amp;gid=<TMPL_VAR NAME=groupid>"><TMPL_VAR NAME=groupname></a><TMPL_ELSE><TMPL_VAR NAME=groupname></TMPL_IF></td>
38 <td><TMPL_VAR name=pgroup></td>
39 <td><TMPL_VAR name=nusers></td>
40 <td><TMPL_VAR name=ndomains></td>
41<TMPL_IF delgrp>
42 <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=delgrp&amp;id=<TMPL_VAR NAME=groupid>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td>
43</TMPL_IF>
44</tr>
45</TMPL_LOOP>
46<TMPL_ELSE>
47<tr><td colspan="5" align="center">No groups found</td></tr>
48</TMPL_IF>
49</table>
50
51</td>
52</tr>
53</table>
Note: See TracBrowser for help on using the repository browser.