Changeset 65 for trunk/templates


Ignore:
Timestamp:
11/25/10 16:26:08 (14 years ago)
Author:
Kris Deugau
Message:

/trunk

checkpoint, adding permissions/ACL support

Location:
trunk/templates
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/dns.css

    r59 r65  
    4242        width: 100%;
    4343}
     44table.border {
     45        border: thin solid #000000;
     46}
    4447
    4548tr.row0 {
     
    6164        background-color: #F0F0F0;
    6265        text-align: left;
     66}
     67
     68th {
     69        background-color: #F0F0F0;
     70        font-size: 1.1em;
     71        font-weight:normal;
     72        padding: 4px;
    6373}
    6474
     
    128138        text-align: right;
    129139}
     140td.border {
     141        background-color: #e0e0e0;
     142        border: solid 1px #101010;
     143        padding: 2px;
     144}
     145td.noaccess {
     146        background-color: #ffe8e8;
     147        color: #2f0000;
     148}
    130149
    131150.meat {
     
    136155        font-size: 10px;
    137156}
     157
    138158ul {
    139159        margin-left: 10px;
     
    143163/* F*** ME BUT THIS LOOKS LIKE CRAP! */
    144164/* Need to find a way to vertically centre the plus image on the text.  >:(  */
    145 /*li.hassub {
    146         list-style: none outside url('../images/plus.gif');
     165li.hassub {
     166        background-image: url('../images/fwd.png');
     167        background-repeat: no-repeat;
     168        background-position: 0px 1px;
     169        padding-left: 10px;
     170        //list-style: none outside url('../images/fwd.png');
     171        margin-left: 0px;
    147172}
    148173li.leaf {
    149         list-style: none outside none;
    150 } */
    151 
     174        //list-style: none outside none;
     175        //margin-left: 0px;
     176}
     177li.lastinlvl {
     178        background-image: url('../images/ASC.png');
     179        background-repeat: no-repeat;
     180        background-position: 0px 1px;
     181        padding-left: 10px;
     182        //list-style: none outside url('../images/fwd.png');
     183        margin-left: 0px;
     184}
     185ul.grptree {
     186        list-style-type: none;
     187        padding: 0px;
     188        margin: 0px;
     189}
    152190#grptree {
    153         //margin-left: 15px;
     191        //margin-left: 10px;
    154192}
    155193/* general classes */
  • trunk/templates/grpman.tmpl

    r44 r65  
    3131<TMPL_LOOP name=grouptable>
    3232<tr class="row<TMPL_VAR name=bg>">
    33         <td align="left"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=grpman&amp;action=chgroup&amp;group=<TMPL_VAR NAME=groupid>"><TMPL_VAR NAME=groupname></a></td>
     33        <td align="left"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=edgroup&amp;gid=<TMPL_VAR NAME=groupid>"><TMPL_VAR NAME=groupname></a></td>
    3434        <td><TMPL_VAR name=pgroup></td>
    3535        <td><TMPL_VAR name=nusers></td>
  • trunk/templates/grptree.tmpl

    r41 r65  
    11<ul>
    2 <TMPL_LOOP NAME=treelvl><li class="<TMPL_IF NAME=subs>hassub<TMPL_ELSE>leaf</TMPL_IF>"><TMPL_VAR NAME=grpname>
     2<TMPL_LOOP NAME=treelvl><li class="<TMPL_IF NAME=subs>hassub<TMPL_ELSE>leaf</TMPL_IF><TMPL_IF last> lastinlvl</TMPL_IF>"><TMPL_VAR NAME=grpname>
    33<TMPL_VAR NAME=subs></li>
    44</TMPL_LOOP></ul>
  • trunk/templates/menu.tmpl

    r43 r65  
    2323<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=grpman">Manage groups</a><br />
    2424<div id="grptree">
    25 <ul>
    26 <li><TMPL_IF inlogingrp><b><TMPL_VAR NAME=logingrp></b><TMPL_ELSE><TMPL_VAR NAME=logingrp></TMPL_IF>
     25<ul class="grptree">
     26<li class="<TMPL_IF NAME=subs>hassub<TMPL_ELSE>leaf</TMPL_IF>"><TMPL_IF inlogingrp><b><TMPL_VAR NAME=logingrp></b><TMPL_ELSE><TMPL_VAR NAME=logingrp></TMPL_IF>
    2727<TMPL_VAR NAME=grptree>
    2828</li>
  • trunk/templates/newuser.tmpl

    r38 r65  
    1212<input type="hidden" name="newuser" value="yes" />
    1313
    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="2">Error adding user <TMPL_VAR NAME=uname>: <TMPL_VAR NAME=errmsg></td></tr></TMPL_IF>
     14<table border="0" cellspacing="2" cellpadding="2" width="450">
     15<TMPL_IF add_failed>    <tr>
     16                <td class="errhead" colspan="2">Error adding user <TMPL_VAR NAME=uname>: <TMPL_VAR NAME=errmsg></td>
     17        </tr></TMPL_IF>
    1818        <tr class="darkrowheader"><td colspan="2" align="center">Add User</td></tr>
    1919
     
    5353                <td>Create as active user</td><td><input type="checkbox" name="makeactive" checked="checked" /></td>
    5454        </tr>
     55
     56        <tr>
     57                <td colspan="2">
     58
     59<table style="border: thin solid #000000;" border="0" cellspacing="5" cellpadding="0" width="100%">
     60<tr class="tableheader">
     61        <td align="center" colspan="5">
     62        <input type="radio" name="perms_type" value="inherit" <TMPL_IF add_failed><TMPL_IF perm_inherit>checked="checked"</TMPL_IF><TMPL_ELSE>checked="checked"</TMPL_IF>/> Inherit permissions from group
     63        </td>
     64</tr>
     65<tr>
     66        <td align="right">Group:</td>
     67        <td><input type="checkbox"<TMPL_IF i_grped> checked="checked"</TMPL_IF> disabled="disabled" /> Edit</td>
     68        <td><input type="checkbox"<TMPL_IF i_grpcreate> checked="checked"</TMPL_IF> disabled="disabled" /> Create</td>
     69        <td><input type="checkbox"<TMPL_IF i_grpdel> checked="checked"</TMPL_IF> disabled="disabled" /> Delete</td>
     70</tr>
     71<tr>
     72        <td align="right">User:</td>
     73        <td><input type="checkbox"<TMPL_IF i_usered> checked="checked"</TMPL_IF> disabled="disabled" /> Edit</td>
     74        <td><input type="checkbox"<TMPL_IF i_usercreate> checked="checked"</TMPL_IF> disabled="disabled" /> Create</td>
     75        <td><input type="checkbox"<TMPL_IF i_userdel> checked="checked"</TMPL_IF> disabled="disabled" /> Delete</td>
     76</tr>
     77<tr>
     78        <td align="right">Domain:</td>
     79        <td><input type="checkbox"<TMPL_IF i_domed> checked="checked"</TMPL_IF> disabled="disabled" /> Edit</td>
     80        <td><input type="checkbox"<TMPL_IF i_domcreate> checked="checked"</TMPL_IF> disabled="disabled" /> Create</td>
     81        <td><input type="checkbox"<TMPL_IF i_domdel> checked="checked"</TMPL_IF> disabled="disabled" /> Delete</td>
     82        <!-- td>+ Delegate</td -->
     83</tr>
     84<tr>
     85        <td align="right">Domain Record:</td>
     86        <td><input type="checkbox"<TMPL_IF i_reced> checked="checked"</TMPL_IF> disabled="disabled" /> Edit</td>
     87        <td><input type="checkbox"<TMPL_IF i_reccreate> checked="checked"</TMPL_IF> disabled="disabled" /> Create</td>
     88        <td><input type="checkbox"<TMPL_IF i_recdel> checked="checked"</TMPL_IF> disabled="disabled" /> Delete</td>
     89        <!-- td>+ Delegate</td -->
     90</tr>
     91<tr>
     92        <td align="right">Self:</td>
     93        <td><input type="checkbox"<TMPL_IF i_edself> checked="checked"</TMPL_IF> disabled="disabled" /> Edit</td>
     94</tr>
     95
     96<tr class="tableheader">
     97        <td align="center" colspan="5">
     98        <input type="radio" name="perms_type" value="clone" <TMPL_IF add_failed><TMPL_IF perm_clone> checked="checked"</TMPL_IF></TMPL_IF>/> Clone permissions from an existing user
     99        </td>
     100</tr>
     101<tr>
     102        <td align="center" colspan="5">
     103        Note: Only users in the current group may be cloned<br>
     104        <select name="clonesrc">
     105        <option>-</option>
     106        <TMPL_LOOP name=clonesrc><option value="<TMPL_VAR NAME=uid>"<TMPL_IF selected> selected</TMPL_IF>><TMPL_VAR NAME=username></option>
     107        </TMPL_LOOP></select>
     108        </td>
     109</tr>
     110<tr class="tableheader">
     111        <td align="center" colspan="5">
     112                <input type="radio" name="perms_type" value="custom" <TMPL_IF add_failed><TMPL_IF perm_custom> checked="checked"</TMPL_IF></TMPL_IF>/> Specify permissions
     113        </td>
     114</tr>
     115<TMPL_INCLUDE name="permlist_enabled.tmpl">
     116
     117</table>
     118
     119                </td>
     120        </tr>
     121
    55122        <tr><td colspan="2" class="tblsubmit"><input type="submit" value="Add user" /></td></tr>
     123
    56124<tr><td colspan="2">tmp note:  radio button select "group template" vs "clone user"?</td></tr>
    57125    </table>
    58     </td>
    59 </tr>
    60 </table>
    61126
    62127</fieldset>
  • trunk/templates/useradmin.tmpl

    r59 r65  
    3131<TMPL_LOOP name=usertable>
    3232<tr class="row<TMPL_VAR name=bg>">
    33         <td align="left"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=useradmin&amp;action=chuser&amp;user=<TMPL_VAR NAME=userid>"><TMPL_VAR NAME=username></a></td>
     33        <td align="left"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=edituser&amp;user=<TMPL_VAR NAME=userid>"><TMPL_VAR NAME=username></a></td>
    3434        <td class="data_nowrap"><TMPL_VAR name=userfull></td>
    3535        <td><TMPL_VAR name=usertype></td>
Note: See TracChangeset for help on using the changeset viewer.