Changeset 82 for trunk/templates


Ignore:
Timestamp:
02/25/11 17:54:07 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Tweaks and cleanups on add/edit user template mostly relating
to user editing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/user.tmpl

    r67 r82  
    1111<input type="hidden" name="page" value="user" />
    1212<input type="hidden" name="action" value="<TMPL_VAR NAME=action>" />
     13<TMPL_IF uid><input type="hidden" name="uid" value="<TMPL_VAR NAME=uid>" /></TMPL_IF>
     14<TMPL_IF gid><input type="hidden" name="gid" value="<TMPL_VAR NAME=gid>" /></TMPL_IF>
    1315
    1416<table border="0" cellspacing="2" cellpadding="2" width="450">
     
    1618                <td class="errhead" colspan="2">Error <TMPL_IF add>adding<TMPL_ELSE>updating</TMPL_IF> user <TMPL_VAR NAME=uname>: <TMPL_VAR NAME=errmsg></td>
    1719        </tr></TMPL_IF>
    18         <tr class="darkrowheader"><td colspan="2" align="center">Add User</td></tr>
     20        <tr class="darkrowheader"><td colspan="2" align="center"><TMPL_IF add>Add<TMPL_ELSE>Edit</TMPL_IF> User</td></tr>
    1921
    2022        <tr class="datalinelight">
     
    4951        </tr>
    5052        <tr class="datalinelight">
    51                 <td>Create as active user</td><td><input type="checkbox" name="makeactive" checked="checked" /></td>
     53                <td><TMPL_IF add>Create as active user<TMPL_ELSE>User is active</TMPL_IF></td>
     54                <td><input type="checkbox" name="makeactive" checked="checked" /></td>
    5255        </tr>
    5356
     
    5861<tr class="tableheader">
    5962        <td align="center" colspan="5">
    60         <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        <input type="radio" name="perms_type" value="inherit" <TMPL_IF set_permgroup><TMPL_IF perm_inherit>checked="checked"</TMPL_IF><TMPL_ELSE>checked="checked"</TMPL_IF>/> Use permissions from group
    6164        </td>
    6265</tr>
     
    6669<tr class="tableheader">
    6770        <td align="center" colspan="5">
    68         <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
     71        <input type="radio" name="perms_type" value="clone" <TMPL_IF set_permgroup><TMPL_IF perm_clone> checked="checked"</TMPL_IF></TMPL_IF>/> Clone permissions from an existing user
    6972        </td>
    7073</tr>
     
    8285<tr class="tableheader">
    8386        <td align="center" colspan="5">
    84                 <input type="radio" name="perms_type" value="custom" <TMPL_IF add_failed><TMPL_IF perm_custom> checked="checked"</TMPL_IF></TMPL_IF>/> Specify permissions
     87                <input type="radio" name="perms_type" value="custom" <TMPL_IF set_permgroup><TMPL_IF perm_custom> checked="checked"</TMPL_IF></TMPL_IF>/> Specify permissions
    8588        </td>
    8689</tr>
     
    9295        </tr>
    9396
    94         <tr><td colspan="2" class="tblsubmit"><input type="submit" value="Add user" /></td></tr>
     97        <tr><td colspan="2" class="tblsubmit"><input type="submit" value="<TMPL_IF add>Add<TMPL_ELSE>Update</TMPL_IF> user" /></td></tr>
    9598
    96 <tr><td colspan="2">tmp note:  radio button select "group template" vs "clone user"?</td></tr>
    9799    </table>
    98100
Note: See TracChangeset for help on using the changeset viewer.