Changeset 1162
- Timestamp:
- 09/28/12 08:08:47 (12 years ago)
- Location:
- trunk/LATMOS-Accounts-Web
- Files:
-
- 2 added
- 2 deleted
- 38 edited
- 31 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/MANIFEST
r1159 r1162 124 124 root/html/users/passwd.tt 125 125 root/html/users/side_menu.tt 126 root/static/icons/add.png127 root/static/icons/appointment-new.png128 126 root/static/icons/appointment-soon.png 129 127 root/static/icons/arrow-right.png 130 root/static/icons/avatar-default.png131 root/static/icons/changes-prevent.png132 128 root/static/icons/dialog-cancel.png 133 129 root/static/icons/dialog-password.png 134 130 root/static/icons/document-save-as.png 135 131 root/static/icons/document-save.png 136 root/static/icons/editclear.png137 root/static/icons/emblem-default.png138 root/static/icons/emblem-favorite.png139 root/static/icons/emblem-urgent.png140 132 root/static/icons/expired.png 141 root/static/icons/find.png142 133 root/static/icons/gnome-session-logout.png 143 134 root/static/icons/gnome-stock-mail-snd.png 144 135 root/static/icons/gtk-about.png 145 root/static/icons/gtk-add.png146 136 root/static/icons/gtk-cancel.png 147 137 root/static/icons/gtk-close.png 148 root/static/icons/gtk-delete.png149 138 root/static/icons/gtk-execute.png 150 root/static/icons/gtk-find.png151 root/static/icons/gtk-go-back-ltr.png152 root/static/icons/gtk-go-back-rtl.png153 root/static/icons/gtk-goto-first-ltr.png154 root/static/icons/gtk-goto-first-rtl.png155 root/static/icons/gtk-home.png156 root/static/icons/gtk-jump-to-rtl.png157 139 root/static/icons/gtk-refresh.png 158 140 root/static/icons/help-contents.png … … 167 149 root/static/icons/stock_smiley-22.png 168 150 root/static/icons/system-config-users.png 169 root/static/icons/system-users.png170 root/static/icons/user-group-delete.png171 root/static/icons/user-group-new.png172 root/static/icons/user-group-properties.png173 151 root/static/icons/user-info.png 174 152 root/static/icons/user-invisible.png 175 root/static/icons/user-properties.png176 root/static/icons/user-trash.png177 root/static/icons/video-display.png178 153 root/static/icons/view-calendar-day.png 179 154 root/static/icons/view-media-artist.png 180 root/static/icons/xfce-internet.png 155 root/static/images/add.png 156 root/static/images/appointment-new.png 157 root/static/images/avatar-default.png 181 158 root/static/images/btn_120x50_built.png 182 159 root/static/images/btn_120x50_built_shadow.png … … 188 165 root/static/images/btn_88x31_powered_shadow.png 189 166 root/static/images/catalyst_logo.png 167 root/static/images/changes-prevent.png 190 168 root/static/images/contact-new.png 191 169 root/static/images/dialog-cancel.png 192 170 root/static/images/dialog-ok-apply.png 193 171 root/static/images/edit-delete.png 172 root/static/images/edit-disable.png 173 root/static/images/edit-enable.png 174 root/static/images/editclear.png 175 root/static/images/emblem-default.png 176 root/static/images/emblem-favorite.png 177 root/static/images/emblem-urgent.png 178 root/static/images/find.png 179 root/static/images/group_conf.png 180 root/static/images/group_del.png 181 root/static/images/gtk-add.png 182 root/static/images/gtk-delete.png 183 root/static/images/gtk-find.png 184 root/static/images/gtk-go-back-ltr.png 185 root/static/images/gtk-go-back-rtl.png 186 root/static/images/gtk-goto-first-ltr.png 187 root/static/images/gtk-goto-first-rtl.png 188 root/static/images/gtk-home.png 189 root/static/images/gtk-jump-to-rtl.png 190 root/static/images/icon_edit.png 191 root/static/images/locked.png 192 root/static/images/logviewer.png 194 193 root/static/images/mail-mark-important.png 195 194 root/static/images/mail-mark-junk.png 196 195 root/static/images/mail-mark-unread-new.png 197 196 root/static/images/mail-mark-unread.png 197 root/static/images/mail-read.png 198 root/static/images/mail_forward.png 199 root/static/images/network-workgroup.png 200 root/static/images/preferences-desktop-wallpaper.png 198 201 root/static/images/process-stop.png 202 root/static/images/site_conf.png 203 root/static/images/system-users.png 204 root/static/images/user-trash.png 205 root/static/images/video-display.png 199 206 root/static/images/view-media-artist.png 200 207 root/static/images/view-pim-contacts.png -
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Aliases.pm
r1081 r1162 32 32 33 33 my $db = $c->model('Accounts')->db; 34 if ($c->req->param('delete')) { 35 $db->delete_object('aliases', $alias); 36 $db->commit; 37 $c->res->redirect($c->uri_for('/aliases')); 38 return; 39 } 34 40 35 my $oalias = $db->get_object('aliases', $alias); 41 36 $c->stash->{aliasesname} = $alias; … … 44 39 45 40 $c->stash->{form} = $c->model('AttrForms', 'aliases', $oalias); 46 $c->stash->{form}->set_attrs; 41 42 if ($c->req->param('make_active')) { 43 $c->stash->{aliases}->set_c_fields('exported' => 1); 44 $db->commit; 45 } 46 elsif ($c->req->param('make_inactive')) { 47 $c->stash->{aliases}->set_c_fields('exported' => 0); 48 $db->commit; 49 } 50 elsif ($c->req->param('delete')) { 51 $db->delete_object('aliases', $alias); 52 $db->commit; 53 $c->res->redirect('/aliases'); 54 return; 55 } 56 else { 57 $c->stash->{form}->set_attrs; 58 } 47 59 } 48 60 -
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Groups.pm
r1092 r1162 41 41 return; 42 42 }; 43 44 if ($c->req->param('make_active')) { 45 $c->stash->{group}->set_c_fields('exported' => 1); 46 $base->commit; 47 } 48 if ($c->req->param('make_inactive')) { 49 $c->stash->{group}->set_c_fields('exported' => 0); 50 $base->commit; 51 } 52 if ($c->req->param('delete')) { 53 $base->delete_object('group', $groupname); 54 $base->commit; 55 $c->res->redirect('/groups'); 56 } 43 57 44 58 $c->stash->{subform} = $subform || ''; -
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/NetHosts.pm
r1087 r1162 69 69 $base->rollback; 70 70 } 71 } elsif ($c->req->param('delete')) { 72 if ($base->delete_object('nethost', $nethostname)) { 73 $base->commit; 74 $c->res->redirect('/nethosts'); 75 } else { 76 $base->rollback; 77 } 71 } elsif ($c->req->param('make_active')) { 72 $c->stash->{nethost}->set_c_fields('exported' => 1); 73 $base->commit; 74 } 75 elsif ($c->req->param('make_inactive')) { 76 $c->stash->{nethost}->set_c_fields('exported' => 0); 77 $base->commit; 78 } 79 elsif ($c->req->param('delete')) { 80 $base->delete_object('nethost', $nethostname); 81 $base->commit; 82 $c->res->redirect('/nethosts'); 83 78 84 } else { 79 85 $c->stash->{form}->set_attrs; -
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/NetZones.pm
r1089 r1162 41 41 $c->stash->{form} = $c->model('AttrForms', 'netzone', $c->stash->{netzone}); 42 42 $c->stash->{form}->set_attrs; 43 44 if ($c->req->param('make_active')) { 45 $c->stash->{netzone}->set_c_fields('exported' => 1); 46 $base->commit; 47 } 48 if ($c->req->param('make_inactive')) { 49 $c->stash->{netzone}->set_c_fields('exported' => 0); 50 $base->commit; 51 } 52 if ($c->req->param('delete')) { 53 $base->delete_object('netzone', $netzonename); 54 $base->commit; 55 $c->res->redirect('/netzones'); 56 } 43 57 } 44 58 -
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Sites.pm
r1088 r1162 41 41 }; 42 42 43 if ($c->req->param('make_active')) { 44 $c->stash->{site}->set_c_fields('exported' => 1); 45 $base->commit; 46 } 47 if ($c->req->param('make_inactive')) { 48 $c->stash->{site}->set_c_fields('exported' => 0); 49 $base->commit; 50 } 51 if ($c->req->param('delete')) { 52 $base->delete_object('site', $sitename); 53 $base->commit; 54 $c->res->redirect('/sites'); 55 } 56 43 57 $c->stash->{subform} = $subform || ''; 44 58 -
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Users.pm
r1088 r1162 75 75 $c->stash->{user}->set_c_fields('exported' => 1); 76 76 $base->commit; 77 } 78 if ($c->req->param('make_inactive')) { 79 $c->stash->{user}->set_c_fields('exported' => 0); 80 $base->commit; 81 } 82 if ($c->req->param('delete')) { 83 $base->delete_object('user', $username); 84 $base->commit; 85 $c->res->redirect('/users'); 77 86 } 78 87 -
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrForms.pm
r1137 r1162 562 562 '$attr'.replace(/SUBID/g, cn ); 563 563 document.getElementById('${htmlname}_div_' + (cn - 1)).innerHTML += 564 '<div id="${htmlname}_div_'+ cn +'" ></div>';564 '<div id="${htmlname}_div_'+ cn +'" style="display:block"></div>'; 565 565 %s 566 566 } … … 571 571 $addempty .= "\n"; 572 572 $addempty .= 573 qq|<button type="button" onclick="add_${htmlname}()">+</button>|,573 qq|<button type="button" style="display:block" onclick="add_${htmlname}()">+</button>|, 574 574 575 575 push(@html_fields, $addempty); -
trunk/LATMOS-Accounts-Web/root/html/admin/index.tt
r1106 r1162 9 9 onMouseOut="resetmenu();" 10 10 > 11 <img title="Utilisateurs" src="[% c.uri_for('/static', 'i cons', 'avatar-default.png') %]"></a>11 <img title="Utilisateurs" src="[% c.uri_for('/static', 'images', 'avatar-default.png') %]"></a> 12 12 [% IF c.model('Accounts').db.check_acl('user', '@CREATE', 'w') %] 13 13 <a href="[% c.uri_for('/create', 'user') %]" … … 15 15 onMouseOut="resetmenu();" 16 16 > 17 <img title="Ajouter un utilisateurs" src="[% c.uri_for('/static', 'i cons', 'add.png') %]"></a>17 <img title="Ajouter un utilisateurs" src="[% c.uri_for('/static', 'images', 'add.png') %]"></a> 18 18 [% END %] 19 19 </td> … … 26 26 onMouseOut="resetmenu();" 27 27 > 28 <img title="Groupes" src="[% c.uri_for('/static', 'i cons', 'system-users.png') %]"></a>28 <img title="Groupes" src="[% c.uri_for('/static', 'images', 'system-users.png') %]"></a> 29 29 [% IF c.model('Accounts').db.check_acl('group', '@CREATE', 'w') %] 30 30 <a href="[% c.uri_for('/create', 'group') %]" … … 32 32 onMouseOut="resetmenu();" 33 33 > 34 <img title="Ajouter un groupe" src="[% c.uri_for('/static', 'i cons', 'add.png') %]"></a>34 <img title="Ajouter un groupe" src="[% c.uri_for('/static', 'images', 'add.png') %]"></a> 35 35 [% END %] 36 36 </td> … … 43 43 onMouseOut="resetmenu();" 44 44 > 45 <img title="HÃŽtes réseau" src="[% c.uri_for('/static', 'i cons', 'video-display.png') %]"></a>45 <img title="HÃŽtes réseau" src="[% c.uri_for('/static', 'images', 'video-display.png') %]"></a> 46 46 [% IF c.model('Accounts').db.check_acl('nethost', '@CREATE', 'w') %] 47 47 <a href="[% c.uri_for('/create', 'nethost') %]" … … 49 49 onMouseOut="resetmenu();" 50 50 > 51 <img title="Ajouter un hÃŽte réseau" src="[% c.uri_for('/static', 'i cons', 'add.png') %]"></a>51 <img title="Ajouter un hÃŽte réseau" src="[% c.uri_for('/static', 'images', 'add.png') %]"></a> 52 52 [% END %] 53 53 </td> … … 61 61 onMouseOut="resetmenu();" 62 62 > 63 <img title="Annuaires" src="[% c.uri_for('/static', 'i cons', 'logviewer.png') %]"></a>63 <img title="Annuaires" src="[% c.uri_for('/static', 'images', 'logviewer.png') %]"></a> 64 64 </td></tr> 65 65 [% END %] … … 71 71 onMouseOut="resetmenu();" 72 72 > 73 <img title="Sites" src="[% c.uri_for('/static', 'icons', 'xfce-internet.png') %]"></a> 73 <img title="Sites" src="[% c.uri_for('/static', 'images', 'site_conf.png') %]"></a> 74 [% IF c.model('Accounts').db.check_acl('nethost', '@CREATE', 'w') %] 75 <a href="[% c.uri_for('/create', 'site') %]" 76 onMouseOver="document.getElementById('menui').innerHTML='Ajouter un site';" 77 onMouseOut="resetmenu();" 78 > 79 <img title="Ajouter un hÃŽte réseau" src="[% c.uri_for('/static', 'images', 'add.png') %]"></a> 80 [% END %] 74 81 </td> 75 82 <td> … … 86 93 onMouseOut="resetmenu();" 87 94 > 88 <img title="Alias mail" src="[% c.uri_for('/static', 'i cons', 'mail_forward.png') %]"></a>95 <img title="Alias mail" src="[% c.uri_for('/static', 'images', 'mail_forward.png') %]"></a> 89 96 [% IF c.model('Accounts').db.check_acl('aliases', '@CREATE', 'w') %] 90 97 <a href="[% c.uri_for('/create', 'aliases') %]" … … 92 99 onMouseOut="resetmenu();" 93 100 > 94 <img title="Ajouter un utilisateurs" src="[% c.uri_for('/static', 'i cons', 'add.png') %]"></a>101 <img title="Ajouter un utilisateurs" src="[% c.uri_for('/static', 'images', 'add.png') %]"></a> 95 102 [% END %] 96 103 </td> … … 109 116 onMouseOut="resetmenu();" 110 117 > 111 <img title="Gestion Réseau" src="[% c.uri_for('/static', 'i cons', 'network-workgroup.png') %]"></a>118 <img title="Gestion Réseau" src="[% c.uri_for('/static', 'images', 'network-workgroup.png') %]"></a> 112 119 <a href="[% c.uri_for('/create', 'netzone') %]" 113 120 onMouseOver="document.getElementById('menui').innerHTML='Ajouter une zones réseau';" 114 121 onMouseOut="resetmenu();" 115 ><img title="Ajouter une zone" src="[% c.uri_for('/static', 'i cons', 'add.png') %]"></a>122 ><img title="Ajouter une zone" src="[% c.uri_for('/static', 'images', 'add.png') %]"></a> 116 123 </td> 117 124 <td> … … 123 130 onMouseOver="document.getElementById('menui').innerHTML='Demandes';" 124 131 onMouseOut="resetmenu();"> 125 <img title="Demandes" src="[% c.uri_for('/static', 'i cons', 'logviewer.png') %]"></a>132 <img title="Demandes" src="[% c.uri_for('/static', 'images', 'logviewer.png') %]"></a> 126 133 </td> 127 134 <td> -
trunk/LATMOS-Accounts-Web/root/html/admin/requests/update.tt
r974 r1162 11 11 onMouseOver="document.getElementById('menui').innerHTML='Demandes';" 12 12 onMouseOut="resetmenu();"> 13 <img title="Demandes" src="[% c.uri_for('/static', 'i cons', 'logviewer.png')13 <img title="Demandes" src="[% c.uri_for('/static', 'images', 'logviewer.png') 14 14 %]"> 15 15 Revenir à la liste des requêtes en attentes. -
trunk/LATMOS-Accounts-Web/root/html/ajax/services/mailing/dest_list.tt
r1136 r1162 15 15 </td> 16 16 <td> 17 [% c.prototype.link_to_remote( '<img src="' _ c.uri_for('/static/icons', 18 'user-trash.png') _ '" height="24" width="24" alt="" title="Retirer ' _ disp _ '">', { 17 [% c.prototype.link_to_remote( 18 '<img src="' _ c.uri_for('/static', 'images', 'user-trash.png' ) _ '" 19 height="24" width="24" alt="" title="Retirer ' _ disp _ '">', { 19 20 update => 'destlist', 20 21 url => c.uri_for('/ajax', 'services', 'mailing', 'mod_to', { -
trunk/LATMOS-Accounts-Web/root/html/ajax/services/mailing/users_list.tt
r1136 r1162 11 11 </td> 12 12 <td><input type=checkbox name="user" checked=1 value="[% u | html %]"> 13 [% c.prototype.link_to_remote( '<img src="' _ c.uri_for('/static/icons', 14 'gtk-add.png') _ '" height="24" width="24" alt="" title="Ajouter ' _ disp _ '">', { 15 update => 'destlist', 16 url => c.uri_for('/ajax', 'services', 'mailing', 'mod_to', { 17 'act' => 'add_to', 18 'user' => u, 19 }) 20 }, { entities => '' } ) %] 13 [% c.prototype.link_to_remote( 14 '<img src="' _ c.uri_for('/static', 'icons', 'gtk-add.png') _ '" height="24" width="24" alt="" title="Ajouter ' _ disp _ '">', 15 { 16 update => 'destlist', 17 url => c.uri_for('/ajax', 'services', 'mailing', 'mod_to', { 18 'act' => 'add_to', 19 'user' => u, 20 }) 21 }, 22 { entities => '' } ) %] 21 23 </td> 22 24 </tr> -
trunk/LATMOS-Accounts-Web/root/html/ajax/user_to_group_form.tt
r1067 r1162 3 3 4 4 [% FOREACH g = othergroups %] 5 [% IF loop.first %] 6 <ul> 7 [% END %] 8 <li> 5 9 [% IF modallow %] 6 10 <form action="[% c.uri_for('/users', user.id, 'groups') %]" method="POST"> 7 11 <input type="hidden" name="addgroup" value="[% g | html %]"> 8 <input type="image" src="[% c.uri_for('/static', 'i cons', 'user-group-new.png')12 <input type="image" src="[% c.uri_for('/static', 'images', 'group_conf.png') 9 13 %]" width="24" height="24"> 10 14 [% END %] … … 13 17 </form> 14 18 [% END %] 19 </li> 20 [% IF loop.last %] 21 </ul> 15 22 [% END %] 23 [% END %] -
trunk/LATMOS-Accounts-Web/root/html/aliases/default.tt
r979 r1162 1 1 <!-- $Id$ --> 2 2 3 <div id="objectform" class="objectform">4 3 <div id="oinfo"> 5 4 [% INCLUDE 'includes/obj_prev_next.tt' objtype='aliases' objname=aliasesname %] … … 7 6 <div id="oinfo_icons"> 8 7 [% IF NOT aliases.get_c_field('exported') %] 9 <img src="[% c.uri_for('/static', 'i cons', 'mail-mark-important.png') %]"8 <img src="[% c.uri_for('/static', 'images', 'mail-mark-important.png') %]" 10 9 alt="[% "User " _ aliasesname %]" title="l'alias est désactivé"> 11 10 [% ELSE %] 12 <img src="[% c.uri_for('/static', 'i cons', 'mail-read.png') %]"11 <img src="[% c.uri_for('/static', 'images', 'mail-read.png') %]" 13 12 alt="[% "User " _ aliasesname %]"> 14 13 [% END %] … … 17 16 <p id="oname">[% aliasesname | html %]</span></p> 18 17 </div> 18 </div> 19 19 20 <div id="oaction"> 21 [% IF c.model('Accounts').db.check_acl(aliases, 'exported', 'w') %] 22 [% IF NOT aliases.get_c_field('exported') %] 23 <form method="POST" action="[% c.uri_for('/aliases', aliasesname, subform) %]" 24 onSubmit="return confirm('Activer l\'alias mail [% aliasesname %] ?') ? true : false"> 25 <input type="image" name="delete" value="Supprimer" title="Supprimer" 26 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-enable.png') %]"> 27 <input type="hidden" value="activer" name="make_active"> 28 </form> 29 [% ELSE %] 30 <form method="POST" action="[% c.uri_for('/aliases', aliasesname, subform) %]" 31 onSubmit="return confirm('Désactiver l\'alias mail [% aliasesname %] ?') ? true : false"> 32 <input type="image" name="delete" value="Supprimer" title="Supprimer" 33 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-disable.png') %]"> 34 <input type="hidden" value="désactiver" name="make_inactive"> 35 </form> 36 [% END %] 37 [% END %] 38 [% IF c.model('Accounts').db.check_acl(aliases, 'DELETE', 'w') %] 39 <form method="POST" action="[% c.uri_for('/aliases', aliasesname, subform) %]" 40 onSubmit="return confirm('Détruire l\'alias mail [% aliasesname %] ?') ? true : false"> 41 <input type="image" name="delete" value="Supprimer" title="Supprimer" 42 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-delete.png') %]"> 43 <input type="hidden" value="DETRUIRE" name="delete"> 44 </form> 45 [% END %] 20 46 </div> 21 <div id="oinfo_close"></div> 47 48 <div id="objectform" class="objectform"> 22 49 23 50 [% IF c.model('Accounts').db.check_acl('aliases', 'forward', 'w') %] … … 25 52 [% INCLUDE 'includes/form.tt' %] 26 53 27 [% IF c.model('Accounts').db.check_acl('aliases', '@DELETE', 'w') %]28 <script LANGUAGE="JavaScript">29 <!--30 function confirmSubmit()31 {32 var agree=confirm("Supprimer l'alias [% aliases.id %] ?");33 if (agree)34 return true ;35 else36 return false ;37 }38 // -->39 </script>40 <fieldset>41 <legend>Supprimer cet alias</legend>42 <form action="[% c.uri_for(aliases.id) %]" method="POST" onsubmit="return confirmSubmit()">43 <input type="image" name="delete" value="Supprimer" title="Supprimer"44 alt="effacer" src="[%45 c.uri_for('/static', 'images', 'edit-delete.png') %]">46 <input type="hidden" name="delete" value="Supprimer">47 </form>48 </fieldset>49 [% END %]50 54 </div> 51 55 -
trunk/LATMOS-Accounts-Web/root/html/groups/object_header.tt
r1081 r1162 4 4 <div id="oinfo"> 5 5 <div id="oinfo_icons"> 6 <img src="[% c.uri_for('/static', 'icons', 'user-group-properties.png') %]" 6 [% IF group.get_c_field('exported') %] 7 <img src="[% c.uri_for('/static', 'images', 'group_conf.png') %]" 7 8 alt="[% "Groupe " _ groupname %]"> 9 [% ELSE %] 10 <img src="[% c.uri_for('/static', 'images', 'gtk-delete.png') %]" 11 alt="[% "Groupe " _ groupname %]"> 12 [% END %] 8 13 </div> 9 14 … … 13 18 </div> 14 19 </div> 15 <div id="oinfo_close"></div> 20 21 <div id="oaction"> 22 [% IF c.model('Accounts').db.check_acl(group, 'exported', 'w') %] 23 [% IF NOT group.get_c_field('exported') %] 24 <form method="POST" action="[% c.uri_for('/groups', groupname, subform) %]" 25 onSubmit="return confirm('Activer le groupe [% groupname %] ?') ? true : false"> 26 <input type="image" name="delete" value="Supprimer" title="Supprimer" 27 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-enable.png') %]"> 28 <input type="hidden" value="activer" name="make_active"> 29 </form> 30 [% ELSE %] 31 <form method="POST" action="[% c.uri_for('/groups', groupname, subform) %]" 32 onSubmit="return confirm('Désactiver le group [% groupname %] ?') ? true : false"> 33 <input type="image" name="delete" value="Supprimer" title="Supprimer" 34 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-disable.png') %]"> 35 <input type="hidden" value="désactiver" name="make_inactive"> 36 </form> 37 [% END %] 38 [% END %] 39 [% IF c.model('Accounts').db.check_acl(group, 'DELETE', 'w') %] 40 <form method="POST" action="[% c.uri_for('/groups', groupname, subform) %]" 41 onSubmit="return confirm('Détruire le groupe [% groupname %] ?') ? true : false"> 42 <input type="image" name="delete" value="Supprimer" title="Supprimer" 43 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-delete.png') %]"> 44 <input type="hidden" value="DETRUIRE" name="delete"> 45 </form> 46 [% END %] 47 </div> 16 48 17 49 <div id="omenu"> -
trunk/LATMOS-Accounts-Web/root/html/groups/users.tt
r1081 r1162 34 34 [% IF ouser.get_attributes('department') == group.id OR 35 35 ouser.get_attributes('contratType') == group.id %] 36 <img src="[% c.uri_for('/static', 'i cons', 'changes-prevent.png') %]"36 <img src="[% c.uri_for('/static', 'images', 'changes-prevent.png') %]" 37 37 width="24" height="24" title="Ce groupe est géré via un autre attribut"> 38 38 [% ELSE %] 39 39 <form action="[% c.uri_for(groupname, subform) %]" method="POST" style="display: inline"> 40 40 <input type="hidden" name="deluser" value="[% uid | html %]"> 41 <input type="image" src="[% c.uri_for('/static', 'i cons', 'user-group-delete.png') %]" width="24" height="24">41 <input type="image" src="[% c.uri_for('/static', 'images', 'group_del.png') %]" width="24" height="24"> 42 42 </form> 43 43 [% END %] -
trunk/LATMOS-Accounts-Web/root/html/includes/defs.tt
r1081 r1162 13 13 [% IF object.type == 'user' %] 14 14 [% IF object.get_attributes('unexported') %] 15 <img src="[% c.uri_for('/static', 'i cons', 'gtk-delete.png') %]"15 <img src="[% c.uri_for('/static', 'images', 'gtk-delete.png') %]" 16 16 class="notice" title="Ce compte est désactivé" alt="disable"> 17 17 [% ELSIF object.get_attributes('expired') %] 18 <img src="[% c.uri_for('/static', 'i cons', 'emblem-urgent.png') %]"18 <img src="[% c.uri_for('/static', 'images', 'emblem-urgent.png') %]" 19 19 class="notice" title="Ce compte est expiré ([% object.get_attributes('expired') %])" alt="expired"> 20 20 [% ELSIF object.get_attributes('expire') %] 21 <img src="[% c.uri_for('/static', 'i cons', 'appointment-new.png') %]"21 <img src="[% c.uri_for('/static', 'images', 'appointment-new.png') %]" 22 22 class="notice" title="Ce compte est temporaire ([% object.get_attributes('expire') %])" alt="temporary"> 23 23 [% END %] 24 24 [% ELSE %] 25 25 [% IF object.get_attributes('unexported') %] 26 <img src="[% c.uri_for('/static', 'i cons', 'gtk-delete.png') %]"26 <img src="[% c.uri_for('/static', 'images', 'gtk-delete.png') %]" 27 27 class="notice" title="Cette entrée est désactivés" alt="disable"> 28 28 [% END %] -
trunk/LATMOS-Accounts-Web/root/html/includes/form.tt
r971 r1162 1 1 <!-- $Id$ --> 2 2 3 <div id="oform" class="oform">4 3 [% attributes = form.attributes() %] 5 4 [% IF attributes.0 %] … … 34 33 [% perm_denied %] 35 34 [% END %] 36 </div> -
trunk/LATMOS-Accounts-Web/root/html/includes/header.tt
r1127 r1162 44 44 </div><!-- #header --> 45 45 46 <div style="float: left;"id="sidebar">46 <div id="sidebar"> 47 47 [% INCLUDE 'includes/sidebar.tt' %] 48 48 [% tpl = c.namespace _ '/side_menu.tt' %] … … 54 54 </div> 55 55 56 <div id="mainbox" style="float: left;">56 <div id="mainbox"> 57 57 -
trunk/LATMOS-Accounts-Web/root/html/includes/list_objects.tt
r1131 r1162 39 39 </td> 40 40 <td><a href="[% c.uri_for('/' _ c.forward('/obj_to_uri', [ ofilter.otype ]), object.id) %]"> 41 <img src="[% c.uri_for('/static', 'i cons', 'icon_edit.png') %]"42 height="16" width="16"41 <img src="[% c.uri_for('/static', 'images', 'icon_edit.png') %]" 42 class="editobj" 43 43 alt="[% "edit " _ object.id | html %]"></a> 44 44 [% object.id | html %]</td> -
trunk/LATMOS-Accounts-Web/root/html/includes/obj_prev_next.tt
r971 r1162 1 1 <!-- $Id$ --> 2 2 3 <div id="navigate" style="float: right">3 <div id="navigate"> 4 4 <p> 5 5 [% nav = c.model('Accounts').object_navigate(objtype, objname) %] 6 6 7 [% IF nav.ofirst %]7 [% IF nav.ofirst -%] 8 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 %] 9 <img src="[% c.uri_for('/static', 'images', 'gtk-goto-first-ltr.png') %]" title="[% 10 nav.ofirst | html %]" alt="first" class="attr"></a> 11 [%- END %] 13 12 14 13 [% IF nav.oprev %] 15 14 <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> 15 <img src="[% c.uri_for('/static', 'images', 'gtk-go-back-ltr.png') %]" title="[% 16 nav.oprev | html %]" alt="previous" class="attr"></a> 19 17 [% END %] 20 18 21 19 [% IF nav.onext %] 22 20 <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> 21 <img src="[% c.uri_for('/static', 'images', 'gtk-go-back-rtl.png') %]" title="[% 22 nav.onext | html %]" alt="next" class="attr"></a> 26 23 [% END %] 27 24 28 25 [% IF nav.olast %] 29 26 <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> 27 <img src="[% c.uri_for('/static', 'images', 'gtk-goto-first-rtl.png') %]" title="[% 28 nav.olast | html %]" alt="last" class="attr"></a> 33 29 [% END %] 34 30 </p> … … 46 42 </select> 47 43 <input type="image" alt="Go To" title="Aller à " src="[% 48 c.uri_for('/static', 'i cons', 'gtk-jump-to-rtl.png') %]">44 c.uri_for('/static', 'images', 'gtk-jump-to-rtl.png') %]" class="attrbutton"> 49 45 </p> 50 46 </form> -
trunk/LATMOS-Accounts-Web/root/html/includes/sidebar.tt
r1148 r1162 1 1 <form action="[% c.uri_for('/search') %]"> 2 2 <input name="q" value="[% c.req.param('q') | html %]"> 3 <input type="image" name="" src="[% c.uri_for('/static', 'i cons', 'gtk-find.png') %]" height="16" width="16">3 <input type="image" name="" src="[% c.uri_for('/static', 'images', 'gtk-find.png') %]" height="16" width="16"> 4 4 </form> 5 5 <ul> -
trunk/LATMOS-Accounts-Web/root/html/nethosts/default.tt
r1081 r1162 62 62 [% END %] 63 63 64 [% IF c.model('Accounts').db.check_acl('nethost', '@DELETE', 'w') %]65 <script LANGUAGE="JavaScript">66 <!--67 function confirmSubmit()68 {69 var agree=confirm("Supprimer l'hÃŽte [% nethost.id %] ?");70 if (agree)71 return true ;72 else73 return false ;74 }75 // -->76 </script>77 <fieldset>78 <legend>Supprimer cet hÃŽte</legend>79 <form action="[% c.uri_for(nethostname) %]" method="POST" onsubmit="return confirmSubmit()">80 <input type="image" name="delete" value="Supprimer" title="Supprimer" alt="effacer" src="[%81 c.uri_for('/static', 'images', 'edit-delete.png') %]">82 <input type="hidden" name="delete" value="Supprimer">83 </form>84 </fieldset>85 [% END %]86 87 64 </td></tr> 88 65 </table> -
trunk/LATMOS-Accounts-Web/root/html/nethosts/object_header.tt
r1081 r1162 6 6 <div id="oinfo_icons"> 7 7 [% IF NOT nethost.get_c_field('exported') %] 8 <img src="[% c.uri_for('/static', 'i cons', 'gtk-delete.png') %]"8 <img src="[% c.uri_for('/static', 'images', 'gtk-delete.png') %]" 9 9 alt="[% "HÃŽte " _ nethostname %]" title="l'entrée est désactivée"> 10 10 [% ELSE %] 11 <img src="[% c.uri_for('/static', 'i cons', 'preferences-desktop-wallpaper.png') %]"11 <img src="[% c.uri_for('/static', 'images', 'preferences-desktop-wallpaper.png') %]" 12 12 alt="[% "Ordinateur " _ nethostname %]"> 13 13 [% END %] … … 19 19 </div> 20 20 </div> 21 <div id="oinfo_close"></div> 21 22 <div id="oaction"> 23 [% IF c.model('Accounts').db.check_acl(nethost, 'exported', 'w') %] 24 [% IF NOT nethost.get_c_field('exported') %] 25 <form method="POST" action="[% c.uri_for('/nethosts', nethostname, subform) %]" 26 onSubmit="return confirm('Activer l\'hÃŽte [% nethostname %] ?') ? true : false"> 27 <input type="image" name="delete" value="Supprimer" title="Supprimer" 28 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-enable.png') %]"> 29 <input type="hidden" value="activer" name="make_active"> 30 </form> 31 [% ELSE %] 32 <form method="POST" action="[% c.uri_for('/nethosts', nethostname, subform) %]" 33 onSubmit="return confirm('Désactiver l\'hÃŽte [% nethostname %] ?') ? true : false"> 34 <input type="image" name="delete" value="Supprimer" title="Supprimer" 35 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-disable.png') %]"> 36 <input type="hidden" value="désactiver" name="make_inactive"> 37 </form> 38 [% END %] 39 [% END %] 40 [% IF c.model('Accounts').db.check_acl(nethost, 'DELETE', 'w') %] 41 <form method="POST" action="[% c.uri_for('/nethosts', nethostname, subform) %]" 42 onSubmit="return confirm('Détruire l\'hÃŽte [% nethostname %] ?') ? true : false"> 43 <input type="image" name="delete" value="Supprimer" title="Supprimer" 44 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-delete.png') %]"> 45 <input type="hidden" value="DETRUIRE" name="delete"> 46 </form> 47 [% END %] 48 </div> -
trunk/LATMOS-Accounts-Web/root/html/netzones/default.tt
r1081 r1162 7 7 8 8 <div class="objectformleft" id="objectform"> 9 <div class="oform">10 9 [% INCLUDE 'includes/form.tt' 11 10 form = form 12 11 form_uri = c.uri_for(netzonename) %] 13 </div>14 12 15 13 <table border=1> -
trunk/LATMOS-Accounts-Web/root/html/netzones/menu.tt
r976 r1162 4 4 <div id="oinfo"> 5 5 <div id="oinfo_icons"> 6 <img src="[% c.uri_for('/static', 'i cons', 'preferences-desktop-wallpaper.png') %]"6 <img src="[% c.uri_for('/static', 'images', 'preferences-desktop-wallpaper.png') %]" 7 7 alt="[% "Ordinateur " _ hostgroupname %]"> 8 8 </div> … … 13 13 </div> 14 14 </div> 15 <div id="oinfo_close"></div>15 <div -
trunk/LATMOS-Accounts-Web/root/html/netzones/object_header.tt
r1081 r1162 4 4 <div id="oinfo"> 5 5 <div id="oinfo_icons"> 6 <img src="[% c.uri_for('/static', 'i cons', 'preferences-desktop-wallpaper.png') %]"6 <img src="[% c.uri_for('/static', 'images', 'preferences-desktop-wallpaper.png') %]" 7 7 alt="[% "Ordinateur " _ hostgroupname %]"> 8 8 </div> … … 13 13 </div> 14 14 </div> 15 <div id="oinfo_close"></div> 15 16 <div id="oaction"> 17 [% IF c.model('Accounts').db.check_acl(netzone, 'exported', 'w') %] 18 [% IF NOT netzone.get_c_field('exported') %] 19 <form method="POST" action="[% c.uri_for('/netzones', netzonename, subform) %]" 20 onSubmit="return confirm('Activer la zone [% netzonename %] ?') ? true : false"> 21 <input type="image" name="delete" value="Supprimer" title="Supprimer" 22 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-enable.png') %]"> 23 <input type="hidden" value="activer" name="make_active"> 24 </form> 25 [% ELSE %] 26 <form method="POST" action="[% c.uri_for('/netzones', netzonename, subform) %]" 27 onSubmit="return confirm('Désactiver la zone [% netzonename %] ?') ? true : false"> 28 <input type="image" name="delete" value="Supprimer" title="Supprimer" 29 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-disable.png') %]"> 30 <input type="hidden" value="désactiver" name="make_inactive"> 31 </form> 32 [% END %] 33 [% END %] 34 [% IF c.model('Accounts').db.check_acl(netzone, 'DELETE', 'w') %] 35 <form method="POST" action="[% c.uri_for('/netzones', netzonename, subform) %]" 36 onSubmit="return confirm('Détruire la zone [% netzonename %] ?') ? true : false"> 37 <input type="image" name="delete" value="Supprimer" title="Supprimer" 38 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-delete.png') %]"> 39 <input type="hidden" value="DETRUIRE" name="delete"> 40 </form> 41 [% END %] 42 </div> -
trunk/LATMOS-Accounts-Web/root/html/search/index.tt
r1145 r1162 20 20 </td> 21 21 <td><a href="[% c.uri_for('/' _ c.forward('/obj_to_uri', [ filter.otype ]), object.id) %]"> 22 <img src="[% c.uri_for('/static', 'i cons', 'icon_edit.png') %]"22 <img src="[% c.uri_for('/static', 'images', 'icon_edit.png') %]" 23 23 height="16" width="16" 24 24 alt="[% "edit " _ object.id | html %]"></a> -
trunk/LATMOS-Accounts-Web/root/html/services/mailing/to.tt
r1136 r1162 22 22 </span> 23 23 <br> 24 <input type="image" src="[% c.uri_for('/static /icons/find.png') %]" width="24" height="24">24 <input type="image" src="[% c.uri_for('/static', 'images', 'find.png') %]" width="24" height="24"> 25 25 [% c.prototype.observe_field( 'to_type', { 26 26 update => 'to_res', … … 54 54 <div style="width: 20em; float:left; border: solid;"> 55 55 [% c.prototype.link_to_remote( 56 '<img src="' _ c.uri_for('/static /icons', 'editclear.png') _ '" title="Vider la liste">',56 '<img src="' _ c.uri_for('/static', 'images', 'editclear.png') _ '" title="Vider la liste">', 57 57 { 58 58 update => 'destlist', … … 62 62 <span style="float: right"> 63 63 <a href="[% c.uri_for('/services', 'mailing') %]"> 64 <img src="[% c.uri_for('/static /icons', 'emblem-default.png') %]"64 <img src="[% c.uri_for('/static', 'images', 'emblem-default.png') %]" 65 65 title="Valider la liste"> 66 66 </a> -
trunk/LATMOS-Accounts-Web/root/html/sites/menu.tt
r994 r1162 5 5 <div id="oinfo"> 6 6 <div id="oinfo_icons"> 7 <img src="[% c.uri_for('/static', 'i cons', 'user-properties.png') %]"7 <img src="[% c.uri_for('/static', 'images', 'user_conf.png') %]" 8 8 alt="[% "User " _ sitename %]"> 9 9 </div> … … 13 13 </div> 14 14 </div> 15 <div id="oinfo_close"></div>15 <div -
trunk/LATMOS-Accounts-Web/root/html/sites/object_header.tt
r1081 r1162 5 5 <div id="oinfo"> 6 6 <div id="oinfo_icons"> 7 <img src="[% c.uri_for('/static', 'icons', 'user-properties.png') %]" 7 [% IF site.get_c_field('exported') %] 8 <img src="[% c.uri_for('/static', 'images', 'site_conf.png') %]" 8 9 alt="[% "User " _ sitename %]"> 10 [% ELSE %] 11 <img src="[% c.uri_for('/static', 'images', 'gtk-delete.png') %]" 12 alt="[% "User " _ sitename %]"> 13 [% END %] 9 14 </div> 10 15 <div id="oinfo_label"> 11 16 <p id="oname">[% sitename | html %]</p> 12 <p>[% user.get_c_field('l') | html %]</p>17 <p>[% site.get_c_field('description') || site.get_c_field('l') | html %]</p> 13 18 </div> 14 19 </div> 15 <div id="oinfo_close"></div> 20 21 <div id="oaction"> 22 [% IF c.model('Accounts').db.check_acl(site, 'exported', 'w') %] 23 [% IF NOT site.get_c_field('exported') %] 24 <form method="POST" action="[% c.uri_for('/sites', sitename, subform) %]" 25 onSubmit="return confirm('Activer le site [% sitename %] ?') ? true : false"> 26 <input type="image" name="img" value="Supprimer" title="Supprimer" 27 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-enable.png') %]"> 28 <input type="hidden" value="activer" name="make_active"> 29 </form> 30 [% ELSE %] 31 <form method="POST" action="[% c.uri_for('/sites', sitename, subform) %]" 32 onSubmit="return confirm('Désactiver l\'utilisateur [% sitename %] ?') ? true : false"> 33 <input type="image" name="delete" value="Supprimer" title="Supprimer" 34 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-disable.png') %]"> 35 <input type="hidden" value="désactiver" name="make_inactive"> 36 </form> 37 [% END %] 38 [% END %] 39 [% IF c.model('Accounts').db.check_acl(site, 'DELETE', 'w') %] 40 <form method="POST" action="[% c.uri_for('/sites', sitename, subform) %]" 41 onSubmit="return confirm('Détruire l\'utilisateur [% sitename %] ?') ? true : false"> 42 <input type="image" name="delete" value="Supprimer" title="Supprimer" 43 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-delete.png') %]"> 44 <input type="hidden" value="DETRUIRE" name="delete"> 45 </form> 46 [% END %] 47 </div> -
trunk/LATMOS-Accounts-Web/root/html/users/address.tt
r1081 r1162 7 7 8 8 <div id="objectform" class="objectform"> 9 <div style="padding:2em; border:outset">10 9 <table border="0"> 11 10 [% FOREACH idaddress = user.get_c_field('otheraddress') %] … … 44 43 <input type="image" value="Effacer" title="Supprimer" alt="effacer" 45 44 src="[% c.uri_for('/static', 'images', 'edit-delete.png') %]" 46 class="attr "45 class="attrbutton" 47 46 > 48 47 </form> … … 57 56 <input type="hidden" name="main" value="[% laddress.id | html %]"> 58 57 <input type="image" value="" title="Passer en principale" alt="effacer" 59 src="[% c.uri_for('/static', 'i cons', 'emblem-favorite.png') %]"60 class="attr "58 src="[% c.uri_for('/static', 'images', 'emblem-favorite.png') %]" 59 class="attrbutton" 61 60 style="display:inline;" 62 61 > … … 80 79 [% END %] 81 80 </table> 82 </div>83 81 84 82 … … 86 84 <div id="oform"> 87 85 88 89 <p style="text-align:center">90 91 [% IF address.get_c_field('unexported') %]92 <img src="[% c.uri_for('/static', 'images', 'mail-mark-junk.png') %]">93 [% ELSE %]94 <img src="[% c.uri_for('/static', 'images', 'mail-mark-unread.png') %]">95 [% END %]96 97 [% IF address.get_c_field('isMainAddress') %]98 99 <img src="[% c.uri_for('/static', 'icons', 'gtk-home.png') %]"100 title="Adresse principale" alt="Adresse principale"101 >102 [% END %]103 [% address.get_c_field('l') | html %]104 [% IF address.get_c_field('physicalDeliveryOfficeName') %]105 - [% address.get_c_field('physicalDeliveryOfficeName') | html %]106 [% END %]107 </p>108 86 109 87 <form action="[% c.uri_for(username, subform, address.id) %]" method="POST"> -
trunk/LATMOS-Accounts-Web/root/html/users/address_form.tt
r971 r1162 1 1 <!-- $Id$ --> 2 2 <table border="1"> 3 4 <tr><th colspan=2> 5 [% IF address.get_c_field('unexported') %] 6 <img src="[% c.uri_for('/static', 'images', 'mail-mark-junk.png') %]"> 7 [% ELSE %] 8 <img src="[% c.uri_for('/static', 'images', 'mail-mark-unread.png') %]"> 9 [% END %] 10 11 [% IF address.get_c_field('isMainAddress') %] 12 13 <img src="[% c.uri_for('/static', 'images', 'gtk-home.png') %]" 14 title="Adresse principale" alt="Adresse principale" 15 > 16 [% END %] 17 [% address.get_c_field('l') | html %] 18 [% IF address.get_c_field('physicalDeliveryOfficeName') %] 19 - [% address.get_c_field('physicalDeliveryOfficeName') | html %] 20 [% END %] 21 </th></tr> 3 22 4 23 [% FOREACH attrs IN [ 'site', 'description', 'isMainAddress', -
trunk/LATMOS-Accounts-Web/root/html/users/groups.tt
r1081 r1162 9 9 [% modallow = c.model('Accounts').db.check_acl(user, 'memberOf', 'w') %] 10 10 11 <div id="oform">12 11 <table border="1"> 13 12 <tr> … … 22 21 [% IF user.get_attributes('department') == g OR 23 22 user.get_attributes('contratType') == g %] 24 <img src="[% c.uri_for('/static', 'i cons', 'changes-prevent.png') %]"23 <img src="[% c.uri_for('/static', 'images', 'changes-prevent.png') %]" 25 24 width="24" height="24" title="Ce groupe est géré via un autre attribut"> 26 25 [% ELSE %] 27 26 <form action="[% c.uri_for(username, subform) %]" method="POST" style="display: inline"> 28 27 <input type="hidden" name="delgroup" value="[% g | html %]"> 29 <input type="image" src="[% c.uri_for('/static', 'i cons', 'user-group-delete.png') %]" width="24" height="24">28 <input type="image" src="[% c.uri_for('/static', 'images', 'group_del.png') %]" width="24" height="24"> 30 29 </form> 31 30 [% END %] … … 46 45 <hr> 47 46 </form> 47 <br> 48 48 [% c.prototype.observe_field('gfilter', { 49 49 url => c.uri_for('/ajax', 'user_to_group_form', username), … … 67 67 68 68 </div> 69 </div>70 69 [% END %] -
trunk/LATMOS-Accounts-Web/root/html/users/mail.tt
r1081 r1162 4 4 [% ELSE %] 5 5 6 <div id="objectform" class="objectform">7 6 [% INCLUDE 'users/object_header.tt' %] 8 7 9 <div id="o form">8 <div id="objectform" class="objectform"> 10 9 11 10 <form action="[% c.uri_for(user.id, 'mail') %]" method="POST"> … … 114 113 115 114 </div> 116 </div>117 115 [% END %] -
trunk/LATMOS-Accounts-Web/root/html/users/object_header.tt
r1148 r1162 5 5 <div id="oinfo_icons"> 6 6 [% IF NOT user.get_c_field('exported') %] 7 <img src="[% c.uri_for('/static', 'i cons', 'gtk-delete.png') %]"7 <img src="[% c.uri_for('/static', 'images', 'gtk-delete.png') %]" 8 8 alt="[% "User " _ username %]" title="le compte est désactivé"> 9 [% IF c.model('Accounts').db.check_acl(user, 'exported', 'w') %]10 <script LANGUAGE="JavaScript">11 <!--12 function confirmSubmit()13 {14 var agree=confirm("Activer l'utilisateur [% username %] ?");15 if (agree)16 return true ;17 else18 return false ;19 }20 // -->21 </script>22 <form method="POST" action="[% c.uri_for('/users', username, subform) %]" onsubmit="return confirmSubmit()">23 <input type="submit" value="activer" name="make_active">24 </form>25 [% END %]26 9 [% ELSE %] 27 <img src="[% c.uri_for('/static', 'i cons', 'user-properties.png') %]"10 <img src="[% c.uri_for('/static', 'images', 'user_conf.png') %]" 28 11 alt="[% "User " _ username %]"> 29 12 [% END %] 30 13 31 14 [% IF user.get_c_field('locked') %] 32 <img src="[% c.uri_for('/static', 'i cons', 'locked.png') %]"15 <img src="[% c.uri_for('/static', 'images', 'locked.png') %]" 33 16 alt="le compte est vérrouillé" title="le compte est vérrouillé"> 34 17 [% END %] … … 41 24 </div> 42 25 </div> 43 <div id="oinfo_close"></div> 26 27 <div id="oaction"> 28 [% IF c.model('Accounts').db.check_acl(user, 'exported', 'w') %] 29 [% IF NOT user.get_c_field('exported') %] 30 <form method="POST" action="[% c.uri_for('/users', username, subform) %]" 31 onSubmit="return confirm('Activer l\'utilisateur [% username %] ?') ? true : false"> 32 <input type="image" name="delete" value="Supprimer" title="Supprimer" 33 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-enable.png') %]"> 34 <input type="hidden" value="activer" name="make_active"> 35 </form> 36 [% ELSE %] 37 <form method="POST" action="[% c.uri_for('/users', username, subform) %]" 38 onSubmit="return confirm('Désactiver l\'utilisateur [% username %] ?') ? true : false"> 39 <input type="image" name="delete" value="Supprimer" title="Supprimer" 40 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-disable.png') %]"> 41 <input type="hidden" value="désactiver" name="make_inactive"> 42 </form> 43 [% END %] 44 [% END %] 45 [% IF c.model('Accounts').db.check_acl(user, 'DELETE', 'w') %] 46 <form method="POST" action="[% c.uri_for('/users', username, subform) %]" 47 onSubmit="return confirm('Détruire l\'utilisateur [% username %] ?') ? true : false"> 48 <input type="image" name="delete" value="Supprimer" title="Supprimer" 49 alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-delete.png') %]"> 50 <input type="hidden" value="DETRUIRE" name="delete"> 51 </form> 52 [% END %] 53 </div> 44 54 45 55 <div id="omenu"> … … 59 69 <a href="[% c.uri_for(username, 'passwd') %]"><span [% 'id="oactive"' IF subform == 'passwd' %]>Mot de passe</span></a> 60 70 [% END %] 61 <div id="omenuclose"></div>62 71 </div> 63 72 -
trunk/LATMOS-Accounts-Web/root/static/struct.css
r977 r1162 9 9 width: 20%; 10 10 padding: 0.2em; 11 float: left; 11 12 } 12 13 … … 14 15 width: 78%; 15 16 padding: 0.2em; 17 float: left; 18 } 19 20 #oinfo { 21 } 22 23 #oaction { 24 clear: both; 25 } 26 #oaction form { 27 display: inline-block; 28 } 29 30 #omenu { 31 clear: both; 32 } 33 34 #objectform { 35 clear: both; 36 } 37 38 #objectform div { 39 display: inline-block; 40 vertical-align: text-top; 41 } 42 #objectform form { 43 display: inline-block; 44 vertical-align: text-top; 45 } 46 #objectform table { 47 display: inline-block; 48 vertical-align: text-top; 16 49 } 17 50 … … 21 54 } 22 55 23 #login_name { 24 font-size: 0.8em; 25 56 #navigate { 57 float: right; 26 58 } 27 28 #objectform {29 }30 31 .objectformleft #oform {32 float: left;33 }34 35 #oform {36 margin-left:auto;37 margin-right:auto;38 } -
trunk/LATMOS-Accounts-Web/root/static/style.css
r1127 r1162 1 /* global dcl: */ 2 1 3 img { 2 4 border: none; … … 5 7 } 6 8 9 input[type=image] { 10 border: outset; 11 border-color: black; 12 vertical-align: middle; 13 background-color: #DDDDD9; 14 } 15 img.editobject { 16 width: 1.5em; 17 height:1.5em; 18 vertical-align: middle; 19 } 20 img.notice { 21 width: 1em; 22 height:1em; 23 vertical-align: middle; 24 } 25 img.attr { 26 width: 1.5em; 27 height:1.5em; 28 vertical-align: middle; 29 } 30 input.attr { 31 width: 1.5em; 32 height:1.5em; 33 vertical-align: middle; 34 } 35 /* Button like */ 36 img.button { 37 border: outset; 38 border-color: black; 39 } 40 input.button { 41 border: outset; 42 border-color: black; 43 } 44 img.attrbutton { 45 border: outset; 46 border-color: black; 47 width: 1.5em; 48 height:1.5em; 49 vertical-align: middle; 50 } 51 input.attrbutton { 52 border: outset; 53 border-color: black; 54 width: 1.5em; 55 height:1.5em; 56 vertical-align: middle; 57 } 58 59 .unexported { 60 text-decoration: line-through; 61 color: grey; 62 } 63 64 65 #header { 66 padding: 1px; 67 } 68 #header h1 { 69 text-align: center; 70 font-size: 1.2em; 71 margin: 0px; 72 padding: 0em; 73 background-color: #7DB4D8; 74 } 75 76 #sidebar { 77 border: solid; 78 border-color: #437ba1; 79 } 80 #sidebar ul { 81 list-style-type: none; 82 padding-top: 0.2em; 83 padding-left: 0em; 84 } 85 #sidebar li { 86 font-size: 0.8em; 87 } 88 #sidebar a:hover { 89 background-color: #7DB4D8; 90 } 91 7 92 #oinfo p { 8 93 padding: 0em; … … 10 95 margin-left: 1em; 11 96 } 12 13 97 #oinfo p#oname { 14 98 text-transform: capitalize; 15 99 font-size: 1.2em; 16 100 } 17 18 101 #oinfo_icons { 19 102 float: left; 20 103 } 21 104 #oname img { 105 width: 1.5em; 106 height:1.5em; 107 vertical-align: middle; 108 } 22 109 #oinfo_label { 23 110 float: left; 24 111 } 25 26 #oinfo_close { 27 clear: both 28 } 29 112 #navigate { 113 margin: 0em; 114 padding: 0em; 115 } 116 #navigate p { 117 margin: 0em; 118 text-align: center; 119 } 30 120 31 121 /* Object menu: */ … … 35 125 color: black; 36 126 } 37 38 127 #omenu div { 39 128 padding-top: 0.5em; … … 42 131 margin: 0em; 43 132 } 44 45 133 #omenu span { 46 134 padding-left: 0.5em; … … 53 141 color: black; 54 142 } 55 56 143 #omenu span#oactive { 57 144 padding-left: 0.5em; … … 64 151 color: black; 65 152 } 66 67 153 #omenu a:hover { 68 154 text-color blue; 69 155 } 70 156 71 #omenuclose { 72 clear: both; 73 } 74 75 #navigate { 76 } 77 78 #navigate p { 79 margin: 0em; 80 text-align: center; 81 } 82 83 #navigate input { 84 width: 3em; 85 height:3em; 86 vertical-align: middle; 87 } 88 89 #navigate img { 90 width: 2em; 91 height:2em; 92 vertical-align: middle; 93 } 94 95 img.notice { 96 width: 1em; 97 height:1em; 98 vertical-align: middle; 99 } 100 101 img.attr { 102 width: 1.5em; 103 height:1.5em; 104 vertical-align: middle; 105 } 106 input.attr { 107 width: 1.5em; 108 height:1.5em; 109 vertical-align: middle; 110 } 157 158 #user_group_form { 159 max-height: 15em; 160 width: 15em; 161 overflow: auto; 162 border: inset; 163 } 164 #user_group_form ul { 165 list-style-type: none; 166 padding: 0.2em; 167 font-size: 0.9em; 168 } 169 170 /* 111 171 112 172 span.hint { … … 123 183 } 124 184 125 #mainmenu a {126 font-size: 50px;127 overflow: hidden;128 text-decoration: none;129 }130 131 #mainmenu span {132 padding-left: 1em;133 padding-right: 1em;134 text-decoration: none;135 }136 137 .pmenu span {138 padding-left: 1em;139 padding-right: 1em;140 text-decoration: none;141 }142 143 #mainmenu span#actif {144 border-style: outset;145 padding-left: 1em;146 padding-right: 1em;147 text-decoration: none;148 height: 32px;149 }150 151 #mainmenu a:hover {152 background-color: #7DB4D8;153 }154 155 185 #oinfo div { 156 186 float: left; … … 162 192 margin: 0em; 163 193 } 194 */ 195 /* 164 196 165 197 div.objectform { 166 198 } 167 199 168 .oform {169 margin: 0.5em;170 }171 172 .oform table {173 margin: 0.5em;174 }175 176 .oform td {177 vertical-align: top;178 }179 180 .oform p {181 margin: 0.5em;182 font-weight: bold;183 }184 200 185 201 .oform ul { … … 192 208 } 193 209 210 */ 211 /* 194 212 .inputvalidate img { 195 213 width: 1em; … … 213 231 } 214 232 215 .unexported { 216 text-decoration: line-through; 217 color: grey; 218 } 219 220 #sidebar { 221 /* background-color: #4e8fbb; */ 222 border: solid; 223 border-color: #437ba1; 224 } 225 226 #sidebar ul { 227 list-style-type: none; 228 padding-top: 0.2em; 229 padding-left: 0em; 230 } 231 232 #sidebar li { 233 font-size: 0.8em; 234 } 235 236 #sidebar a:hover { 237 background-color: #7DB4D8; 238 } 239 240 #header { 241 padding: 1px; 242 } 243 244 245 #header h1 { 246 text-align: center; 247 font-size: 1.2em; 248 margin: 0px; 249 padding: 0em; 250 background-color: #7DB4D8; 251 } 233 234 235 */
Note: See TracChangeset
for help on using the changeset viewer.