Ignore:
Timestamp:
12/02/11 11:42:17 (13 years ago)
Author:
nanardon
Message:
  • reimport missing files from previous svn
Location:
LATMOS-Accounts-Web/root
Files:
50 added
18 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts-Web/root/html/ajax/objexist.tt

    r500 r861  
    11[% IF exists %] 
    2 <img src="[% c.uri_for('/static', 'images', 'dialog-cancel.png') %]"> 
     2<img class="attr" src="[% c.uri_for('/static', 'images', 'dialog-cancel.png') %]"> 
    33([% exists %]) 
    44[% ELSE %] 
    5 <img src="[% c.uri_for('/static', 'images', 'dialog-ok-apply.png') %]"> 
     5<img class="attr" src="[% c.uri_for('/static', 'images', 'dialog-ok-apply.png') %]"> 
    66[% END %] 
  • LATMOS-Accounts-Web/root/html/departments/default.tt

    r148 r861  
    1 <!-- $Id: default.tt 432 2009-05-17 13:19:38Z nanardon $ --> 
     1<!-- $Id: default.tt 2800 2010-08-01 12:02:51Z nanardon $ --> 
    22[% IF NOT department %] 
    33No department [% departmentname | html %] found. 
  • LATMOS-Accounts-Web/root/html/departments/menu.tt

    r148 r861  
    1 <!-- $Id: user_menu.tt 443 2009-05-18 03:52:21Z nanardon $ --> 
     1<!-- $Id: menu.tt 2800 2010-08-01 12:02:51Z nanardon $ --> 
    22<div> 
    33    <table border="0"> 
  • LATMOS-Accounts-Web/root/html/groups/index.tt

    r220 r861  
    1010<table border="0"> 
    1111<tr><td colspan="2">[% groupslist.size %] groupes</td></tr> 
    12 <tr><th>Nom</th><th>Description</th></tr> 
     12<tr><th>Nom</th><th>Description</th><th></th></tr> 
    1313[% FOREACH groupname = groupslist %] 
    1414[% group = db.get_object('group', groupname) %] 
    1515<tr> 
    16     <td>[% group.id | html %]</td> 
    17     <td>[% group.get_c_field('description') | truncate(30) | html %] 
    18     <a href="[% c.uri_for('/groups', groupname) %]"> 
    19         <img src="[% c.uri_for('/static', 'icons', 'arrow-right.png') %]" 
     16    <td><a href="[% c.uri_for('/groups', groupname) %]"> 
     17        <img src="[% c.uri_for('/static', 'icons', 'icon_edit.png') %]" 
    2018            height="16" width="16" 
    2119            alt="[% "edit " _ groupname | html %]"> 
    22     </a></td> 
     20    </a> [% group.id | html %]</td> 
     21    <td> 
     22    <span title="[% group.get_c_field('description') | html %]"> 
     23    [% group.get_c_field('description') | truncate(30) | html %] 
     24    </span> 
     25    </td> 
    2326</tr> 
    2427[% END %] 
  • LATMOS-Accounts-Web/root/html/groups/menu.tt

    r544 r861  
    11<!-- $Id$ --> 
    2 <div id="omenu"> 
     2<div id="oinfo"> 
    33    [% INCLUDE 'includes/obj_prev_next.tt' objtype='group' objname=groupname %] 
    4     <table border="0"> 
    5     <tr><td> 
     4 
     5    <div> 
    66    <img src="[% c.uri_for('/static', 'icons', 'user-group-properties.png') %]" 
    77    alt="[% "Groupe " _ groupname %]"> 
    8     </td> 
    9     <td>    
    10     [% groupname | html %]<br> 
     8    </div> 
     9 
     10    <div>    
     11    <p id="oname">[% groupname | html %]</p> 
    1112    [% group.get_c_field('description') | html %] 
    12     </table> 
    13     <div style="clear: both;"></div> 
     13    </div> 
     14 
     15</div> 
     16<div style="clear: both;"></div> 
     17<div id="omenu"> 
    1418        <a href="[% c.uri_for(groupname) %]"><span [% 'id="oactive"' IF subform == '' %]>SystÚme</span></a> 
    1519        <a href="[% c.uri_for(groupname, 'users') %]"><span [% 'id="oactive"' IF subform == 'users' %]>Utilisateurs</span></a> 
     20[% IF group.get_attributes('sutype') == 'dpmt' %] 
     21        <a href="[% c.uri_for(groupname, 'dpmt') %]"><span [% 'id="oactive"' IF subform == 'dpmt' %]>Département</span></a> 
     22[% END %] 
    1623</div> 
     24<div style="clear: both;"></div> 
  • LATMOS-Accounts-Web/root/html/groups/users.tt

    r756 r861  
    44[% ELSE %] 
    55     
    6 [% modallow = c.model('Accounts').db.check_acl(group, 'memberUID', 'w') %] 
     6[% modallow = c.model('Accounts').db.check_acl(group, 'memberUID', 'w') AND 
     7NOT group.attribute('memberUID').ro %] 
    78 
    89<div class="objectform" id="objectform"> 
     
    1920<b>Membres primaire:</b><br> 
    2021[% END %] 
    21 <a href="[% c.uri_for('/users', uid) %]">[% uid | html %]</a><br> 
     22<a href="[% c.uri_for('/users', uid) %]">[% uid | html %]</a> 
     23[% ouser = c.model('Accounts').db.get_object('user', uid) %] 
     24[% INCLUDE user_flag ouser=ouser %] 
     25<br> 
    2226[% END %] 
    2327 
    2428[% FOREACH uid = group.get_c_field('member').sort %] 
     29[% ouser = c.model('Accounts').db.get_object('user', uid) %] 
    2530[% IF loop.first %] 
    2631<b>Membres</b><br> 
    2732[% END %] 
    2833[% IF modallow %] 
    29 <form action="[% c.uri_for(groupname, subform) %]" method="POST"> 
     34[% IF ouser.get_attributes('department') == group.id OR 
     35      ouser.get_attributes('contratType') == group.id %] 
     36<img src="[% c.uri_for('/static', 'icons', 'changes-prevent.png') %]" 
     37    width="24" height="24" title="Ce groupe est géré via un autre attribut"> 
     38[% ELSE %] 
     39<form action="[% c.uri_for(groupname, subform) %]" method="POST" style="display: inline"> 
    3040<input type="hidden" name="deluser" value="[% uid | html %]"> 
    3141<input type="image" src="[% c.uri_for('/static', 'icons', 'user-group-delete.png') %]" width="24" height="24"> 
     42</form> 
    3243[% END %] 
    33 <a href="[% c.uri_for('/users', uid) %]">[% uid | html %] 
    34 ([% c.model('Accounts').db.get_object('user', uid).get_attributes('displayName') | html %])</a><br> 
     44[% END %] 
     45<a href="[% c.uri_for('/users', uid, 'statut') %]">[% uid | html %] 
     46([% ouser.get_attributes('displayName') | html %])</a> 
     47[% INCLUDE user_flag ouser=ouser %] 
     48<br> 
    3549[% IF modallow %] 
    36 </form> 
    3750[% END %] 
    3851[% IF loop.last %] 
  • LATMOS-Accounts-Web/root/html/includes/form.tt

    r507 r861  
    11<!-- $Id$ --> 
    2 <div id="oform"> 
     2<div id="oform" class="oform"> 
    33[% attributes = form.attributes() %] 
    44[% IF attributes.0 %] 
     
    1313<tr><th>[% form.attr_label(attr) %]</th><td>[% form.attr_field(attr) %]</td> 
    1414[% IF loop.last %] 
     15[% IF form.write_attributes %] 
    1516<tr><td colspan=2>[% form.submit %]</td></tr> 
     17[% END %] 
    1618</table> 
    1719</form> 
  • LATMOS-Accounts-Web/root/html/includes/header.tt

    r689 r861  
    22<html> 
    33<head> 
    4 <title>[% page.title %]</title> 
     4<title>LATMOS::Accounts / [% page.title %]</title> 
    55<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
    66<link rel="stylesheet" href="[% c.uri_for('/static', 'style.css') %]?" type="text/css"> 
     
    1212<script type="text/javascript" language="JavaScript" src="[% c.uri_for('/static', 'js', 'dragdrop.js') %]"></script> 
    1313<script type="text/javascript" language="JavaScript" src="[% c.uri_for('/static', 'js', 'controls.js') %]"></script> 
     14<script type="text/javascript" language="JavaScript"> 
     15function resetmenu() { 
     16    document.getElementById('menui').innerHTML = '[% page.title | html %]'; 
     17} 
     18 
     19[% IF page.error %] 
     20window.onload = analert; 
     21 
     22function analert () { 
     23    alert('[% page.error | replace('\'', '\\\'') %]'); 
     24} 
     25[% END %] 
     26</script> 
    1427</head> 
    1528 
     
    2033[% END %] 
    2134 
     35[% BLOCK user_flag %] 
     36[% INCLUDE object_flag object = ouser %] 
     37[% END %] 
     38 
     39[% BLOCK object_flag %] 
     40[% IF object.type == 'user' %] 
     41    [% IF object.get_attributes('unexported') %] 
     42<img src="[% c.uri_for('/static', 'icons', 'gtk-delete.png') %]" 
     43class="notice" title="Ce compte est désactivé" alt="disable"> 
     44    [% ELSIF object.get_attributes('expired') %] 
     45<img src="[% c.uri_for('/static', 'icons', 'emblem-urgent.png') %]" 
     46class="notice" title="Ce compte est expiré ([% object.get_attributes('expired') %])" alt="expired"> 
     47    [% ELSIF object.get_attributes('expire') %] 
     48<img src="[% c.uri_for('/static', 'icons', 'appointment-new.png') %]" 
     49class="notice" title="Ce compte est temporaire ([% object.get_attributes('expire') %])" alt="temporary"> 
     50    [% END %] 
     51[% ELSE %] 
     52    [% IF object.get_attributes('unexported') %] 
     53<img src="[% c.uri_for('/static', 'icons', 'gtk-delete.png') %]" 
     54class="notice" title="Cette entrée est désactivés" alt="disable"> 
     55    [% END %] 
     56[% END %] 
     57[% END %] 
     58 
    2259<body> 
    2360<!-- $Id$ --> 
    24 <div id="head" class="pmenu"> 
    25     Gestion des Utilisateurs du LATMOS 
    26 [% IF c.user.username %] 
    27 <span style="float:right; font-size: 0.5em;"> 
    28 Vous êtes [% c.user.username | html %] 
    29 </span> 
    30 [% END %] 
     61<div id="head"> 
     62    <div class="pmenu"> 
     63        [% IF c.config.company %] 
     64        Gestion informatique - [% c.config.company | html %] 
     65        [% ELSE %] 
     66        Gestion informatique 
     67        [% END %] 
     68    [% IF c.user.username %] 
     69    <span style="float:right; font-size: 0.5em;"> 
     70    Vous êtes [% c.user.username | html %] 
     71    </span> 
     72    [% END %] 
     73    </div> 
     74 
     75    <div id="mainmenu" style="float: left"> 
     76        <span> 
     77            <a href="[% c.uri_for('/users') %]" 
     78            onMouseOver="document.getElementById('menui').innerHTML='Liste des utilisateurs';" 
     79            onMouseOut="resetmenu();" 
     80            > 
     81            <img title="Utilisateurs" src="[% c.uri_for('/static', 'icons', 'avatar-default.png') %]"></a> 
     82        [% IF c.model('Accounts').db.check_acl('user', '@CREATE', 'w') %] 
     83            <a href="[% c.uri_for('/create', 'user') %]" 
     84            onMouseOver="document.getElementById('menui').innerHTML='Créer un utilisateur';" 
     85            onMouseOut="resetmenu();" 
     86            > 
     87            <img title="Ajouter un utilisateurs" src="[% c.uri_for('/static', 'icons', 'add.png') %]"></a> 
     88        [% END %] 
     89        </span> 
     90        <span> 
     91            <a href="[% c.uri_for('/groups') %]" 
     92            onMouseOver="document.getElementById('menui').innerHTML='Liste des groupes';" 
     93            onMouseOut="resetmenu();" 
     94            > 
     95            <img title="Groupes" src="[% c.uri_for('/static', 'icons', 'system-users.png') %]"></a> 
     96        [% IF c.model('Accounts').db.check_acl('group', '@CREATE', 'w') %] 
     97            <a href="[% c.uri_for('/create', 'group') %]" 
     98            onMouseOver="document.getElementById('menui').innerHTML='Créer un groupe';" 
     99            onMouseOut="resetmenu();" 
     100            > 
     101            <img title="Ajouter un groupe" src="[% c.uri_for('/static', 'icons', 'add.png') %]"></a> 
     102        [% END %] 
     103        </span> 
     104        <span> 
     105            <a href="[% c.uri_for('/sites') %]" 
     106            onMouseOver="document.getElementById('menui').innerHTML='Liste des sites';" 
     107            onMouseOut="resetmenu();" 
     108            > 
     109            <img title="Sites" src="[% c.uri_for('/static', 'icons', 'xfce-internet.png') %]"></a> 
     110        </span> 
     111        [% # On cache volontairement les alias si l'utilisateur ne doit pas y 
     112        toucher %] 
     113        [% IF c.model('Accounts').db.check_acl('aliases', '@CREATE', 'w') %] 
     114        <span> 
     115            <a href="[% c.uri_for('/aliases') %]" 
     116            onMouseOver="document.getElementById('menui').innerHTML= 
     117                'Alias mail sans utilisateur';" 
     118            onMouseOut="resetmenu();" 
     119            > 
     120            <img title="Alias mail" src="[% c.uri_for('/static', 'icons', 'mail_forward.png') %]"></a> 
     121        </span> 
     122        [% END %] 
     123        <span> 
     124            <a href="[% c.uri_for('/nethosts') %]" 
     125            onMouseOver="document.getElementById('menui').innerHTML='Liste des hÃŽtes réseau';" 
     126            onMouseOut="resetmenu();" 
     127            > 
     128            <img title="HÃŽtes réseau" src="[% c.uri_for('/static', 'icons', 'video-display.png') %]"></a> 
     129        [% IF c.model('Accounts').db.check_acl('nethost', '@CREATE', 'w') %] 
     130            <a href="[% c.uri_for('/create', 'nethost') %]" 
     131            onMouseOver="document.getElementById('menui').innerHTML='Ajouter un hote réseau';" 
     132            onMouseOut="resetmenu();" 
     133            > 
     134            <img title="Ajouter un hÃŽte réseau" src="[% c.uri_for('/static', 'icons', 'add.png') %]"></a> 
     135        [% END %] 
     136        </span> 
     137        [% # On cache volontaire les zones si l'utilisateur ne doit pas y 
     138        toucher %] 
     139        [% IF c.model('Accounts').db.check_acl('netzone', '@CREATE', 'w') %] 
     140        <span> 
     141            <a href="[% c.uri_for('/netzones') %]" 
     142            onMouseOver="document.getElementById('menui').innerHTML='Liste des zones réseaux';" 
     143            onMouseOut="resetmenu();" 
     144            > 
     145            <img title="Gestion Réseau" src="[% c.uri_for('/static', 'icons', 'network-workgroup.png') %]"></a> 
     146            <a href="[% c.uri_for('/create', 'netzone') %]" 
     147            onMouseOver="document.getElementById('menui').innerHTML='Ajouter une zones réseau';" 
     148            onMouseOut="resetmenu();" 
     149            ><img title="Ajouter une zone" src="[% c.uri_for('/static', 'icons', 'add.png') %]"></a> 
     150        </span> 
     151        [% END %] 
     152        <span> 
     153            <a href="[% c.uri_for('/about') %]" 
     154            onMouseOver="document.getElementById('menui').innerHTML='A propos...';" 
     155            onMouseOut="resetmenu();" 
     156            > 
     157            <img title="A propos..." src="[% c.uri_for('/static', 'icons', 'gtk-about.png') %]"></a> 
     158        </span> 
     159    </div> 
     160 
     161    [% IF c.user.username %] 
     162    <div style="float: right"> 
     163        <span> 
     164            <a href="[% c.uri_for('/users', c.user.username) %]" 
     165            onMouseOver="document.getElementById('menui').innerHTML='Mon profile';" 
     166            onMouseOut="resetmenu();" 
     167            > 
     168            <img title="Mon profile" src="[% c.uri_for('/static', 'icons', 'gtk-home.png') %]"></a> 
     169        </span> 
     170        <span> 
     171            <a href="[% c.uri_for('/users', c.user.username, 'passwd') %]" 
     172            onMouseOver="document.getElementById('menui').innerHTML='Changer mon mot de passe';" 
     173            onMouseOut="resetmenu();" 
     174            > 
     175            <img title="Changer mon mot de passe" src="[% c.uri_for('/static', 
     176            'icons', 'dialog-password.png') %]"></a> 
     177        </span> 
     178        <span> 
     179            <a href="[% c.uri_for('/logout') %]" 
     180            onMouseOver="document.getElementById('menui').innerHTML='Se déconnecter';" 
     181            onMouseOut="resetmenu();" 
     182            > 
     183            <img title="Se déconnecter" src="[% c.uri_for('/static', 
     184                    'icons', 'gtk-close.png') %]"></a> 
     185        </span> 
     186    </div> 
     187    [% END %] 
     188     
     189    <div style="clear: both"></div> 
     190 
     191    <p>&gt; <span id="menui">[% page.title | html %]</span></p> 
    31192</div> 
    32 <div id="mainmenu" class="pmenu"> 
    33 <div style="float: left">[% mainmenu %]</div> 
    34 [% IF c.user.username %] 
    35 <div style="float: right"> 
    36     <a href="[% c.uri_for('/users', c.user.username) %]"><span>Mon profile</span></a> 
    37     <a href="[% c.uri_for('/users', c.user.username, 'passwd') %]"><span>Mon mot de passe</span></a> 
    38     <a href="[% c.uri_for('/logout') %]"><span>Se déconnecter</span></a> 
    39 </div> 
    40 [% END %] 
    41 <div style="clear: both"></div> 
    42 </div> 
  • LATMOS-Accounts-Web/root/html/includes/obj_prev_next.tt

    r544 r861  
    11<!-- $Id$ --> 
    22 
    3 <p style="float: right"> 
    4 [% prev_next = c.model('Accounts').object_prev_next(objtype, objname) %] 
    5 [% IF prev_next.0 %]                                                     
    6 <a href="[% c.uri_for(prev_next.0, subform) %]" title="[% prev_next.0 | html 
    7 %]">Prec.</a> 
    8 [% ELSE %]                                                                                 
    9 Prec.                                                                                      
    10 [% END %]                                                                                  
    11 [% IF prev_next.1 %]                                                                       
    12 <a href="[% c.uri_for(prev_next.1, subform) %]" title="[% prev_next.1 | html 
    13 %]">Suiv.</a> 
    14 [% ELSE %]                                                                                 
    15 Suiv.                                                                                      
    16 [% END %]                                                                                  
    17 </p>   
     3<div id="navigate" style="float: right"> 
     4<p> 
     5[% nav = c.model('Accounts').object_navigate(objtype, objname) %] 
     6 
     7[% IF nav.ofirst %] 
     8<a href="[% c.uri_for(nav.ofirst, subform) %]"> 
     9<img src="[% c.uri_for('/static', 'icons/gtk-goto-first-ltr.png') %]" title="[% 
     10nav.ofirst | html %]" alt="first"> 
     11</a> 
     12[% END %] 
     13 
     14[% IF nav.oprev %] 
     15<a href="[% c.uri_for(nav.oprev, subform) %]"> 
     16<img src="[% c.uri_for('/static', 'icons/gtk-go-back-ltr.png') %]" title="[% 
     17nav.oprev | html %]" alt="previous"> 
     18</a> 
     19[% END %] 
     20 
     21[% IF nav.onext %] 
     22<a href="[% c.uri_for(nav.onext, subform) %]"> 
     23<img src="[% c.uri_for('/static', 'icons/gtk-go-back-rtl.png') %]" title="[% 
     24nav.onext | html %]" alt="next"> 
     25</a> 
     26[% END %] 
     27 
     28[% IF nav.olast %] 
     29<a href="[% c.uri_for(nav.olast, subform) %]"> 
     30<img src="[% c.uri_for('/static', 'icons/gtk-goto-first-rtl.png') %]" title="[% 
     31nav.olast | html %]" alt="last"> 
     32</a> 
     33[% END %] 
     34</p> 
     35 
     36[% IF nav.list %] 
     37<form action="[% c.uri_for('/ajax/goto') %]"> 
     38<p> 
     39<input type="hidden" name="otype" value="[% objtype | html %]"> 
     40<input type="hidden" name="subform" value="[% subform | html %]"> 
     41<select name="goto"> 
     42[% FOREACH item = nav.list %] 
     43<option value="[% item | html %]" [% 'selected="selected"' IF item == objname 
     44%]>[% item | html %]</option> 
     45[% END %] 
     46</select> 
     47<input type="image" alt="Go To" title="Aller à" src="[% 
     48c.uri_for('/static', 'icons', 'gtk-jump-to-rtl.png') %]"> 
     49</p> 
     50</form> 
     51[% END %] 
     52 
     53</div>  
  • LATMOS-Accounts-Web/root/html/sites/default.tt

    r214 r861  
    1 <!-- $Id: default.tt 432 2009-05-17 13:19:38Z nanardon $ --> 
     1<!-- $Id: default.tt 2800 2010-08-01 12:02:51Z nanardon $ --> 
    22[% IF NOT site %] 
    33No site [% sitename | html %] found. 
  • LATMOS-Accounts-Web/root/html/sites/menu.tt

    r214 r861  
    1 <!-- $Id: user_menu.tt 443 2009-05-18 03:52:21Z nanardon $ --> 
    2 <div id="omenu"> 
    3     <table border="0"> 
    4     <tr><td> 
     1<!-- $Id: menu.tt 3103 2010-08-26 12:47:15Z nanardon $ --> 
     2<div id="oinfo"> 
     3 
     4    [% INCLUDE 'includes/obj_prev_next.tt' objtype='site' objname=sitename %] 
     5 
     6    <div> 
    57    <img src="[% c.uri_for('/static', 'icons', 'user-properties.png') %]" 
    68    alt="[% "User " _ sitename %]"> 
    7     </td> 
    8     <td>    
    9     [% sitename | html %]<br> 
     9    </div> 
     10    <div>    
     11    <p id="oname">[% sitename | html %]</p> 
    1012    [% user.get_c_field('l') | html %] 
    11     </td></tr> 
    12     </table> 
     13    </div> 
    1314</div> 
     15<div style="clear: both;"></div> 
  • LATMOS-Accounts-Web/root/html/users/address.tt

    r686 r861  
    2020</form> 
    2121 
     22[% IF address.base.check_acl(address, '@DELETE', 'w') %] 
    2223<table border=1><tr><td align="center"> 
    2324<form action="[% c.uri_for(username, subform) %]" method="POST"> 
     
    2829</form> 
    2930</td></tr></table> 
     31[% END %] 
    3032 
    3133</div> 
  • LATMOS-Accounts-Web/root/html/users/address_form.tt

    r760 r861  
    6363    <td>[% form.attr_field('co', fieldtype) %]</td> 
    6464</tr> 
     65[% IF form.write_attributes %] 
    6566<tr> 
    6667    <th></th> 
    67     <td>[% form.submit %]</td> 
     68    <td> 
     69    [% form.submit %] 
     70    </td> 
    6871</tr> 
     72[% END %] 
    6973</table> 
  • LATMOS-Accounts-Web/root/html/users/groups.tt

    r508 r861  
    2020[% FOREACH g = user.get_c_field('memberOf') %] 
    2121[% IF modallow %] 
    22 <form action="[% c.uri_for(username, subform) %]" method="POST"> 
     22[% IF user.get_attributes('department') == g OR  
     23      user.get_attributes('contratType') == g %] 
     24<img src="[% c.uri_for('/static', 'icons', 'changes-prevent.png') %]" 
     25    width="24" height="24" title="Ce groupe est géré via un autre attribut"> 
     26[% ELSE %] 
     27<form action="[% c.uri_for(username, subform) %]" method="POST" style="display: inline"> 
    2328<input type="hidden" name="delgroup" value="[% g | html %]"> 
    2429<input type="image" src="[% c.uri_for('/static', 'icons', 'user-group-delete.png') %]" width="24" height="24"> 
     30</form> 
     31[% END %] 
    2532[% END %] 
    2633<a href="[% c.uri_for('/groups', g) %]">[% g | html %]</a><br> 
    2734[% IF modallow %] 
    28 </form> 
    2935[% END %] 
    3036[% END %] 
  • LATMOS-Accounts-Web/root/html/users/index.tt

    r682 r861  
    99 
    1010<table border="0"> 
    11 <tr><td colspan="2">[% objectslist.size %] Utilisateurs<br> 
     11<tr><td colspan="5"> 
    1212[% IF initials %] 
    1313Pages:  
     
    2222[% END %] 
    2323</td></tr> 
    24 <tr><th>Login</th><th>Nom</th></tr> 
     24<tr><td></td><th>Login</th><th>Nom</th><th>Description</th><th>Mail</th></tr> 
    2525[% FOREACH username = userslist %] 
    2626[% user = db.get_object('user', username) %] 
    2727<tr> 
    28     <td>[% username | html %]</td> 
     28    <td> 
     29[% INCLUDE 'user_flag' ouser=user %] 
     30    </td> 
     31    <td><a href="[% c.uri_for('/users', username) %]"> 
     32        <img src="[% c.uri_for('/static', 'icons', 'icon_edit.png') %]" 
     33            height="16" width="16" 
     34            alt="[% "edit " _ username | html %]"> 
     35    </a>[% username | html %]</td> 
    2936    <td> 
    3037        [% user.get_c_field('sn') | html %] 
    3138        [% user.get_c_field('givenName') | html %] 
    32         [% user.get_c_field('description') | truncate(20) | html %] 
    33     <a href="[% c.uri_for('/users', username) %]"> 
    34         <img src="[% c.uri_for('/static', 'icons', 'arrow-right.png') %]" 
    35             height="16" width="16" 
    36             alt="[% "edit " _ username | html %]"> 
    37     </a></td> 
     39   </td> 
     40    <td> 
     41    <span title="[% user.get_c_field('description') | html %]">     
     42    [% user.get_c_field('description') | truncate(20) | html %] 
     43    </span> 
     44   </td> 
     45    <td><span title="[% user.get_c_field('mail') | html %]"> 
     46    [% user.get_c_field('mail') | truncate(20) | html %]</span> 
     47   </td> 
    3848</tr> 
    3949[% END %] 
  • LATMOS-Accounts-Web/root/html/users/menu.tt

    r730 r861  
    11<!-- $Id$ --> 
    2 <div id="omenu"> 
    3  
     2<div id="oinfo"> 
    43[% INCLUDE 'includes/obj_prev_next.tt' objtype='user' objname=username %] 
    54 
    6 <table border="0"> 
    7 <tr><td> 
    8 [% IF NOT user.get_c_field('exported') OR user.get_c_field('locked') %] 
    9 <img src="[% c.uri_for('/static', 'icons', 'view-media-artist.png') %]" 
    10 [% ELSE %] 
    11 <img src="[% c.uri_for('/static', 'icons', 'user-properties.png') %]" 
    12 [% END %] 
    13 alt="[% "User " _ username %]"> 
    14 </td> 
    15 <td>    
    16 [% username | html %]<br> 
    17 [% user.get_c_field('displayName') | html %] 
    18 </td> 
    19 </tr> 
    20 </table> 
     5    <div> 
     6    [% IF NOT user.get_c_field('exported') %] 
     7    <img src="[% c.uri_for('/static', 'icons', 'gtk-delete.png') %]" 
     8    alt="[% "User " _ username %]" title="le compte est désactivé"> 
     9    [% ELSE %] 
     10    <img src="[% c.uri_for('/static', 'icons', 'user-properties.png') %]" 
     11    alt="[% "User " _ username %]"> 
     12    [% END %] 
     13    </div> 
     14 
     15    <div> 
     16    [% IF user.get_c_field('locked') %] 
     17    <img src="[% c.uri_for('/static', 'icons', 'locked.png') %]"  
     18    alt="le compte est vérrouillé" title="le compte est vérrouillé"> 
     19    [% END %] 
     20    </div> 
     21 
     22    <div> 
     23    <p id="oname">[% username | html %] 
     24        [% INCLUDE user_flag ouser = user %]</span></p> 
     25    [% user.get_c_field('displayName') | html %] 
     26    </div> 
     27</div> 
    2128<div style="clear: both;"></div> 
     29<div id="omenu"> 
    2230        <a href="[% c.uri_for(username) %]"><span [% 'id="oactive"' IF subform == '' %]>SystÚme</span></a> 
    23         <a href="[% c.uri_for(username, 'status') %]"><span [% 'id="oactive"' IF subform == 'status' %]>Status</span></a> 
     31        <a href="[% c.uri_for(username, 'statut') %]"><span [% 'id="oactive"' IF subform == 'statut' %]>Statut</span></a> 
    2432        <a href="[% c.uri_for(username, 'groups') %]"><span [% 'id="oactive"' IF subform == 'groups' %]>Groupes</span></a> 
    2533        <a href="[% c.uri_for(username, 'address') %]"><span [% 'id="oactive"' IF subform == 'address' %]>Adresses</span></a> 
    2634        <a href="[% c.uri_for(username, 'mail') %]"><span [% 'id="oactive"' IF subform == 'mail' %]>eMail</span></a> 
     35        <a href="[% c.uri_for(username, 'my') %]"><span [% 'id="oactive"' IF subform == 'my' %]>My</span></a> 
    2736[% IF c.model('Accounts').db.check_acl(user, 'userPasswd', 'r') %] 
    2837        <a href="[% c.uri_for(username, 'passwd') %]"><span [% 'id="oactive"' IF subform == 'passwd' %]>Mot de passe</span></a> 
    2938[% END %] 
    3039</div> 
     40<div style="clear:both"></div> 
  • LATMOS-Accounts-Web/root/html/users/passwd.tt

    r667 r861  
    33[% INCLUDE 'users/menu.tt' %] 
    44 
     5<script type="text/javascript"> 
     6function check_passwd() { 
     7    new Ajax.Updater( 
     8        'perror', 
     9        '[% c.uri_for('/ajax', 'cracklib', username) %]', 
     10        { parameters: 'passwd=' + document.getElementById("passwd").value + 
     11            '&cpasswd=' + document.getElementById("cpasswd").value } 
     12    ) 
     13} 
     14</script> 
     15 
    516<div id="oform"> 
    617[% IF c.model('Accounts').db.check_acl(user, 'userPassword', 'w') %] 
    718<form id="fpasswd" action="[% c.uri_for(username, subform) %]" method="POST"> 
    8 [% c.prototype.observe_form('fpasswd', { 
    9     url => c.uri_for('/ajax', 'cracklib', username), 
    10     update => 'perror', 
    11     frequency => 1, 
    12 }) %] 
    1319<table border="1"> 
    1420<tr> 
    1521<th>Nouveau mot de passe:</th> 
    16 <td><input type="password" name="passwd"></td> 
     22<td><input type="password" name="passwd" id="passwd" onkeyup="check_passwd()"></td> 
    1723</tr> 
    1824<tr> 
    1925<th>Confirmation:</th> 
    20 <td><input type="password" name="cpasswd"></td> 
     26<td><input type="password" name="cpasswd" id="cpasswd" onkeyup="check_passwd()"></td> 
    2127</tr> 
    2228<tr><td colspan="2"><span id="perror">[% pmerror | html %]</span></td></tr> 
  • LATMOS-Accounts-Web/root/static/style.css

    r507 r861  
    22    border: none; 
    33    vertical-align: middle; 
     4    padding: 0em 
    45} 
    56 
    67.pmenu { 
     8    padding: 0.5em; 
     9    font-size: 2em; 
     10} 
     11 
     12.permdenied { 
     13    padding: 0.5em; 
     14} 
     15 
     16#head { 
    717    background-color: #7DB4D8; 
    8     padding: 0.5em; 
    9 } 
    10  
    11 .permdenied { 
    12     padding: 0.5em; 
    13 } 
    14  
    15 #head { 
    16     font-size: 2em; 
     18    padding-bottom: 0.2em; 
     19    padding-top: 0.2em; 
    1720} 
    1821 
    1922#mainmenu a { 
    20     font-size: 80%; 
     23    font-size: 50px; 
    2124    overflow: hidden; 
    2225    text-decoration: none; 
     
    2427 
    2528#mainmenu span { 
     29    padding-left: 1em; 
     30    padding-right: 1em; 
     31    text-decoration: none; 
     32} 
     33 
     34#mainmenu span#actif { 
    2635    border-style: outset; 
    2736    padding-left: 1em; 
    2837    padding-right: 1em; 
    2938    text-decoration: none; 
    30 } 
    31  
    32 #mainmenu span#actif { 
    33     border-style: inset; 
    34     border-size: 1px; 
    35     padding-left: 1em; 
    36     padding-right: 1em; 
    37     text-decoration: none; 
     39    height: 32px; 
    3840} 
    3941 
    4042#mainmenu a:hover { 
    41     border: solid; 
    42 } 
    43  
    44 div#objectform  { 
     43/*    border: solid;*/ 
     44    background-color: #7DB4D8; 
     45} 
     46 
     47#oinfo div { 
     48    float: left; 
     49    padding: 0.5em; 
     50} 
     51 
     52#oname { 
     53    font-size: 1.2em; 
     54    padding: 0em; 
     55    margin: 0em; 
     56} 
     57 
     58#omenu a { 
     59    text-decoration: none; 
     60    color: black; 
     61} 
     62 
     63#omenu div { 
     64    float: left; 
     65    padding-top: 0.5em; 
     66    padding-bottom: 0.5em; 
     67} 
     68 
     69 
     70#omenu span { 
     71    padding-left: 1em; 
     72    padding-right: 1em; 
     73    margin: 0; 
     74    border: groove thin; 
     75    text-decoration: none; 
     76    float: left; 
     77    background-color: #DDDDD9; 
     78    color: black; 
     79} 
     80 
     81#omenu span#oactive { 
     82    padding-left: 1em; 
     83    padding-right: 1em; 
     84    margin: 0; 
     85    border: groove thin; 
     86    text-decoration: none; 
     87    float: left; 
     88    background-color: #7DB4D8; 
     89    color: black; 
     90} 
     91 
     92#omenu a:hover { 
     93    /* border: inset; */ 
     94    text-color blue; 
     95} 
     96 
     97div.objectform  { 
    4598    border-style: outset; 
    4699    width: 60%; 
     
    49102} 
    50103 
    51 #objectform table { 
     104.objectform table { 
    52105    margin-left: auto; 
    53106    margin-right: auto; 
     
    56109} 
    57110 
    58 #omenu a { 
    59     text-decoration: none; 
    60 } 
    61  
    62 #omenu td { 
    63     padding-left: 0.5em; 
    64     padding-right: 0.5em; 
    65 } 
    66  
    67 #omenu table { 
     111div.objectformleft { 
     112    /* border-style: outset; */ 
     113    width: 60%; 
     114    margin-left: auto; 
     115    margin-right: auto; 
     116} 
     117 
     118.objectformleft table { 
     119    /* 
     120    margin-top: 1em; 
     121    margin-bottom: 1em; 
     122    */ 
     123} 
     124 
     125.objectformleft #oform { 
     126    /*border: inset;*/ 
     127    float: left; 
     128} 
     129 
     130.oform { 
     131    /* border: inset; */ 
    68132    margin: 0.5em; 
    69133} 
    70134 
    71  
    72 #omenu span { 
    73     padding-left: 1em; 
    74     padding-right: 1em; 
    75     margin: 0; 
    76     border: groove thin; 
    77     text-decoration: none; 
    78 } 
    79  
    80 #omenu span#oactive { 
    81     margin: 0; 
    82     padding-left: 1em; 
    83     padding-right: 1em; 
    84     border: outset; 
    85     border-bottom-style: none; 
    86     text-decoration: none; 
    87     font-weight:bold; 
    88 } 
    89  
    90 #omenu a:hover { 
    91     border: inset; 
    92 } 
    93  
    94 #oform { 
    95     border: inset; 
    96 } 
    97  
    98 table#oform { 
    99     margin-left: 20%; 
    100     margin-right: 20%; 
     135.oform table { 
     136    /* margin-left: 20%; 
     137    margin-right: 20%; */ 
     138} 
     139 
     140.oform td { 
     141    vertical-align: top; 
     142} 
     143 
     144.oform p { 
     145    margin: 0.5em; 
     146    font-weight: bold; 
     147} 
     148 
     149.oform ul { 
     150    padding: 0.5em; 
     151} 
     152 
     153.oform li { 
     154    list-style-type: none; 
     155    padding-left: 0.2em; 
     156} 
     157 
     158.inputvalidate img { 
     159    width: 1em; 
     160    height:1em; 
     161} 
     162 
     163#navigate { 
     164} 
     165 
     166#navigate p { 
     167    margin: 0em; 
     168    text-align: center; 
     169} 
     170 
     171#navigate input { 
     172    width: 3em; 
     173    height:3em; 
     174    vertical-align: middle; 
     175} 
     176 
     177#navigate img { 
     178    width: 2em; 
     179    height:2em; 
     180    vertical-align: middle; 
     181} 
     182 
     183img.notice { 
     184    width: 1em; 
     185    height:1em; 
     186    vertical-align: middle; 
     187} 
     188 
     189img.attr { 
     190    width: 1.5em; 
     191    height:1.5em; 
     192    vertical-align: middle; 
    101193} 
    102194 
Note: See TracChangeset for help on using the changeset viewer.