Changeset 527


Ignore:
Timestamp:
10/27/09 15:35:40 (15 years ago)
Author:
nanardon
Message:
  • mail forms show input box only is acl permit it
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts-Web/root/html/users/mail.tt

    r500 r527  
    33No user [% username | html %] found. 
    44[% ELSE %] 
    5      
     5 
    66<div id="objectform" class="objectform"> 
    77[% INCLUDE 'users/menu.tt' %] 
     
    1212<input type=hidden name="usermail" value=1> 
    1313<table border=1> 
     14[% IF c.model('Accounts').db.check_acl(user, 'mail', 'r') %] 
    1415<tr><th>EMail</th> 
    1516<td> 
     17[% IF c.model('Accounts').db.check_acl(user, 'mail', 'w') %] 
     18[% showsubmit = 1 %] 
    1619<input type="text" name="mail" value="[% user.get_c_field('mail') | html %]"> 
     20[% ELSE %] 
     21[% user.get_c_field('mail') | html %] 
     22[% END %] 
    1723</td> 
    1824</tr> 
     25[% END %] 
    1926 
     27[% IF c.model('Accounts').db.check_acl(user, 'aliases', 'r') %] 
    2028<tr> 
    2129<th>Aliases</th> 
    2230<td> 
    2331[% FOREACH alias = user.get_c_field('aliases') %] 
     32[% IF c.model('Accounts').db.check_acl(user, 'aliases', 'w') %] 
     33[% showsubmit = 1 %] 
    2434[% oalias = c.model('Accounts').db.get_object('aliases', alias) %] 
    25 <input type="text" name="aliases" value="[% alias %]" id="[% 'aliases' _ loop.count %]"> 
     35<input type="text" name="aliases" value="[% alias | html %]" id="[% 'aliases' _ loop.count %]"> 
    2636<span style="display:none" id="[% 'aliasesind' _ loop.count %]">Searching...</span> 
    2737<span id="[% 'aliases_span' _ loop.count %]"></span><br> 
     
    3444    indicator => 'aliasesind' _ loop.count, 
    3545}) %] 
     46[% ELSE %] 
     47[% alias | html %]<br> 
    3648[% END %] 
     49[% IF c.model('Accounts').db.check_acl(user, 'aliases', 'w') %] 
     50[% showsubmit = 1 %] 
    3751<input type="text" name="aliases" value="" id="aliases0"><br> 
    3852<span style="display:none" id="[% 'aliasesind' _ 0 %]">Searching...</span> 
     
    4660    indicator => 'aliasesind' _ 0, 
    4761}) %] 
    48  
     62[% END %] 
     63[% END %] 
    4964--<br> 
    5065[% FOREACH same = samealiases %] 
     
    5570</td> 
    5671</tr> 
     72[% END %] 
    5773 
     74 
     75[% IF c.model('Accounts').db.check_acl(user, 'forward', 'r') %] 
    5876<tr> 
    5977<th>Renvois</th> 
    6078 
    6179<td> 
     80[% IF c.model('Accounts').db.check_acl(user, 'forward', 'w') %] 
     81[% showsubmit = 1 %] 
    6282<input type="text" name="forward" value="[% forward.get_c_field('forward').join(',') | html %]"> 
     83[% ELSE %] 
     84[% forward.get_c_field('forward').join(',') | html %] 
     85[% END %] 
    6386</td> 
    6487</tr> 
     88[% END %] 
    6589 
     90[% IF c.model('Accounts').db.check_acl(user, 'revaliases', 'r') %] 
    6691<tr> 
    6792<th>RevAliases</th> 
    6893<td> 
     94[% IF c.model('Accounts').db.check_acl(user, 'revaliases', 'w') %] 
     95[% showsubmit = 1 %] 
    6996<input type="text" name="revaliases" value="[% user.get_c_field('revaliases') | html %]"> 
     97[% ELSE %] 
     98[% user.get_c_field('revaliases') | html %] 
     99[% END %] 
    70100</td> 
    71101</tr> 
     102[% END %] 
     103 
     104[% IF showsubmit %] 
    72105<tr><td colspan=2> 
    73106<input type="submit"> 
    74107</td> 
    75108</tr> 
     109[% END %] 
    76110</table> 
    77111</form> 
Note: See TracChangeset for help on using the changeset viewer.