Changeset 861 for LATMOS-Accounts-Web/root
- Timestamp:
- 12/02/11 11:42:17 (13 years ago)
- Location:
- LATMOS-Accounts-Web/root
- Files:
-
- 50 added
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts-Web/root/html/ajax/objexist.tt
r500 r861 1 1 [% 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') %]"> 3 3 ([% exists %]) 4 4 [% 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') %]"> 6 6 [% 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 $ --> 2 2 [% IF NOT department %] 3 3 No 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 $ --> 2 2 <div> 3 3 <table border="0"> -
LATMOS-Accounts-Web/root/html/groups/index.tt
r220 r861 10 10 <table border="0"> 11 11 <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> 13 13 [% FOREACH groupname = groupslist %] 14 14 [% group = db.get_object('group', groupname) %] 15 15 <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') %]" 20 18 height="16" width="16" 21 19 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> 23 26 </tr> 24 27 [% END %] -
LATMOS-Accounts-Web/root/html/groups/menu.tt
r544 r861 1 1 <!-- $Id$ --> 2 <div id="o menu">2 <div id="oinfo"> 3 3 [% INCLUDE 'includes/obj_prev_next.tt' objtype='group' objname=groupname %] 4 <table border="0"> 5 < tr><td>4 5 <div> 6 6 <img src="[% c.uri_for('/static', 'icons', 'user-group-properties.png') %]" 7 7 alt="[% "Groupe " _ groupname %]"> 8 </td> 9 <td> 10 [% groupname | html %]<br> 8 </div> 9 10 <div> 11 <p id="oname">[% groupname | html %]</p> 11 12 [% 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"> 14 18 <a href="[% c.uri_for(groupname) %]"><span [% 'id="oactive"' IF subform == '' %]>SystÚme</span></a> 15 19 <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 %] 16 23 </div> 24 <div style="clear: both;"></div> -
LATMOS-Accounts-Web/root/html/groups/users.tt
r756 r861 4 4 [% ELSE %] 5 5 6 [% modallow = c.model('Accounts').db.check_acl(group, 'memberUID', 'w') %] 6 [% modallow = c.model('Accounts').db.check_acl(group, 'memberUID', 'w') AND 7 NOT group.attribute('memberUID').ro %] 7 8 8 9 <div class="objectform" id="objectform"> … … 19 20 <b>Membres primaire:</b><br> 20 21 [% 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> 22 26 [% END %] 23 27 24 28 [% FOREACH uid = group.get_c_field('member').sort %] 29 [% ouser = c.model('Accounts').db.get_object('user', uid) %] 25 30 [% IF loop.first %] 26 31 <b>Membres</b><br> 27 32 [% END %] 28 33 [% 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"> 30 40 <input type="hidden" name="deluser" value="[% uid | html %]"> 31 41 <input type="image" src="[% c.uri_for('/static', 'icons', 'user-group-delete.png') %]" width="24" height="24"> 42 </form> 32 43 [% 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> 35 49 [% IF modallow %] 36 </form>37 50 [% END %] 38 51 [% IF loop.last %] -
LATMOS-Accounts-Web/root/html/includes/form.tt
r507 r861 1 1 <!-- $Id$ --> 2 <div id="oform" >2 <div id="oform" class="oform"> 3 3 [% attributes = form.attributes() %] 4 4 [% IF attributes.0 %] … … 13 13 <tr><th>[% form.attr_label(attr) %]</th><td>[% form.attr_field(attr) %]</td> 14 14 [% IF loop.last %] 15 [% IF form.write_attributes %] 15 16 <tr><td colspan=2>[% form.submit %]</td></tr> 17 [% END %] 16 18 </table> 17 19 </form> -
LATMOS-Accounts-Web/root/html/includes/header.tt
r689 r861 2 2 <html> 3 3 <head> 4 <title> [% page.title %]</title>4 <title>LATMOS::Accounts / [% page.title %]</title> 5 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6 6 <link rel="stylesheet" href="[% c.uri_for('/static', 'style.css') %]?" type="text/css"> … … 12 12 <script type="text/javascript" language="JavaScript" src="[% c.uri_for('/static', 'js', 'dragdrop.js') %]"></script> 13 13 <script type="text/javascript" language="JavaScript" src="[% c.uri_for('/static', 'js', 'controls.js') %]"></script> 14 <script type="text/javascript" language="JavaScript"> 15 function resetmenu() { 16 document.getElementById('menui').innerHTML = '[% page.title | html %]'; 17 } 18 19 [% IF page.error %] 20 window.onload = analert; 21 22 function analert () { 23 alert('[% page.error | replace('\'', '\\\'') %]'); 24 } 25 [% END %] 26 </script> 14 27 </head> 15 28 … … 20 33 [% END %] 21 34 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') %]" 43 class="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') %]" 46 class="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') %]" 49 class="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') %]" 54 class="notice" title="Cette entrée est désactivés" alt="disable"> 55 [% END %] 56 [% END %] 57 [% END %] 58 22 59 <body> 23 60 <!-- $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>> <span id="menui">[% page.title | html %]</span></p> 31 192 </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 1 1 <!-- $Id$ --> 2 2 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="[% 10 nav.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="[% 17 nav.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="[% 24 nav.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="[% 31 nav.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="[% 48 c.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 $ --> 2 2 [% IF NOT site %] 3 3 No 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> 5 7 <img src="[% c.uri_for('/static', 'icons', 'user-properties.png') %]" 6 8 alt="[% "User " _ sitename %]"> 7 </ td>8 < td>9 [% sitename | html %]<br>9 </div> 10 <div> 11 <p id="oname">[% sitename | html %]</p> 10 12 [% user.get_c_field('l') | html %] 11 </td></tr> 12 </table> 13 </div> 13 14 </div> 15 <div style="clear: both;"></div> -
LATMOS-Accounts-Web/root/html/users/address.tt
r686 r861 20 20 </form> 21 21 22 [% IF address.base.check_acl(address, '@DELETE', 'w') %] 22 23 <table border=1><tr><td align="center"> 23 24 <form action="[% c.uri_for(username, subform) %]" method="POST"> … … 28 29 </form> 29 30 </td></tr></table> 31 [% END %] 30 32 31 33 </div> -
LATMOS-Accounts-Web/root/html/users/address_form.tt
r760 r861 63 63 <td>[% form.attr_field('co', fieldtype) %]</td> 64 64 </tr> 65 [% IF form.write_attributes %] 65 66 <tr> 66 67 <th></th> 67 <td>[% form.submit %]</td> 68 <td> 69 [% form.submit %] 70 </td> 68 71 </tr> 72 [% END %] 69 73 </table> -
LATMOS-Accounts-Web/root/html/users/groups.tt
r508 r861 20 20 [% FOREACH g = user.get_c_field('memberOf') %] 21 21 [% 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"> 23 28 <input type="hidden" name="delgroup" value="[% g | html %]"> 24 29 <input type="image" src="[% c.uri_for('/static', 'icons', 'user-group-delete.png') %]" width="24" height="24"> 30 </form> 31 [% END %] 25 32 [% END %] 26 33 <a href="[% c.uri_for('/groups', g) %]">[% g | html %]</a><br> 27 34 [% IF modallow %] 28 </form>29 35 [% END %] 30 36 [% END %] -
LATMOS-Accounts-Web/root/html/users/index.tt
r682 r861 9 9 10 10 <table border="0"> 11 <tr><td colspan=" 2">[% objectslist.size %] Utilisateurs<br>11 <tr><td colspan="5"> 12 12 [% IF initials %] 13 13 Pages: … … 22 22 [% END %] 23 23 </td></tr> 24 <tr><t h>Login</th><th>Nom</th></tr>24 <tr><td></td><th>Login</th><th>Nom</th><th>Description</th><th>Mail</th></tr> 25 25 [% FOREACH username = userslist %] 26 26 [% user = db.get_object('user', username) %] 27 27 <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> 29 36 <td> 30 37 [% user.get_c_field('sn') | html %] 31 38 [% 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> 38 48 </tr> 39 49 [% END %] -
LATMOS-Accounts-Web/root/html/users/menu.tt
r730 r861 1 1 <!-- $Id$ --> 2 <div id="omenu"> 3 2 <div id="oinfo"> 4 3 [% INCLUDE 'includes/obj_prev_next.tt' objtype='user' objname=username %] 5 4 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> 21 28 <div style="clear: both;"></div> 29 <div id="omenu"> 22 30 <a href="[% c.uri_for(username) %]"><span [% 'id="oactive"' IF subform == '' %]>SystÚme</span></a> 23 <a href="[% c.uri_for(username, 'statu s') %]"><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> 24 32 <a href="[% c.uri_for(username, 'groups') %]"><span [% 'id="oactive"' IF subform == 'groups' %]>Groupes</span></a> 25 33 <a href="[% c.uri_for(username, 'address') %]"><span [% 'id="oactive"' IF subform == 'address' %]>Adresses</span></a> 26 34 <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> 27 36 [% IF c.model('Accounts').db.check_acl(user, 'userPasswd', 'r') %] 28 37 <a href="[% c.uri_for(username, 'passwd') %]"><span [% 'id="oactive"' IF subform == 'passwd' %]>Mot de passe</span></a> 29 38 [% END %] 30 39 </div> 40 <div style="clear:both"></div> -
LATMOS-Accounts-Web/root/html/users/passwd.tt
r667 r861 3 3 [% INCLUDE 'users/menu.tt' %] 4 4 5 <script type="text/javascript"> 6 function 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 5 16 <div id="oform"> 6 17 [% IF c.model('Accounts').db.check_acl(user, 'userPassword', 'w') %] 7 18 <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 }) %]13 19 <table border="1"> 14 20 <tr> 15 21 <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> 17 23 </tr> 18 24 <tr> 19 25 <th>Confirmation:</th> 20 <td><input type="password" name="cpasswd" ></td>26 <td><input type="password" name="cpasswd" id="cpasswd" onkeyup="check_passwd()"></td> 21 27 </tr> 22 28 <tr><td colspan="2"><span id="perror">[% pmerror | html %]</span></td></tr> -
LATMOS-Accounts-Web/root/static/style.css
r507 r861 2 2 border: none; 3 3 vertical-align: middle; 4 padding: 0em 4 5 } 5 6 6 7 .pmenu { 8 padding: 0.5em; 9 font-size: 2em; 10 } 11 12 .permdenied { 13 padding: 0.5em; 14 } 15 16 #head { 7 17 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; 17 20 } 18 21 19 22 #mainmenu a { 20 font-size: 80%;23 font-size: 50px; 21 24 overflow: hidden; 22 25 text-decoration: none; … … 24 27 25 28 #mainmenu span { 29 padding-left: 1em; 30 padding-right: 1em; 31 text-decoration: none; 32 } 33 34 #mainmenu span#actif { 26 35 border-style: outset; 27 36 padding-left: 1em; 28 37 padding-right: 1em; 29 38 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; 38 40 } 39 41 40 42 #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 97 div.objectform { 45 98 border-style: outset; 46 99 width: 60%; … … 49 102 } 50 103 51 #objectform table {104 .objectform table { 52 105 margin-left: auto; 53 106 margin-right: auto; … … 56 109 } 57 110 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 { 111 div.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; */ 68 132 margin: 0.5em; 69 133 } 70 134 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 183 img.notice { 184 width: 1em; 185 height:1em; 186 vertical-align: middle; 187 } 188 189 img.attr { 190 width: 1.5em; 191 height:1.5em; 192 vertical-align: middle; 101 193 } 102 194
Note: See TracChangeset
for help on using the changeset viewer.