Last change
on this file since 1334 was
1334,
checked in by nanardon, 9 years ago
|
Add jquery ui menu instead flat list
|
File size:
1.5 KB
|
Line | |
---|
1 | <form action="[% c.uri_for('/search') %]"> |
---|
2 | <input name="q" value="[% c.req.param('q') | html %]"> |
---|
3 | <input type="image" name="" src="[% c.uri_for('/static', 'images', 'gtk-find.png') %]" height="16" width="16"> |
---|
4 | </form> |
---|
5 | [% IF c.user.username %] |
---|
6 | <ul id="menu"> |
---|
7 | |
---|
8 | <li>Mon compte: |
---|
9 | <ul> |
---|
10 | |
---|
11 | <li> <a href="[% c.uri_for('/users', c.user.username) %]">Ma page</a></li> |
---|
12 | |
---|
13 | [% IF c.model('Accounts').db.check_acl('user', 'userPassword', 'w') %] |
---|
14 | <li><a href="[% c.uri_for('/users', c.user.username, 'passwd') %]">Changer mon mot de passe</a></li> |
---|
15 | [% END %] |
---|
16 | |
---|
17 | <li><a href="[% c.uri_for('/logout') %]">Se déconnecter</a></li> |
---|
18 | </ul> |
---|
19 | </li> |
---|
20 | [% END %] |
---|
21 | |
---|
22 | <li><a href="[% c.uri_for('/search', 'adv') %]">Recherche avancée</a></li> |
---|
23 | |
---|
24 | <li>Outils: |
---|
25 | <ul> |
---|
26 | [% IF c.config.features.offices_list %] |
---|
27 | <li><a href="[% c.uri_for('/summary', 'offices') %]">Annuaire par bureaux</a></li> |
---|
28 | [% END %] |
---|
29 | |
---|
30 | <li><a href="[% c.uri_for('/summary', 'departments') %]">Liste des départements</a></li> |
---|
31 | </ul> |
---|
32 | </li> |
---|
33 | |
---|
34 | [% FOREACH obj = c.model('Accounts').db.list_supported_objects.sort %] |
---|
35 | [% label = c.model('Accounts').obj_to_label(obj) %] |
---|
36 | [% NEXT IF NOT label %] |
---|
37 | <li>[% label | html %] |
---|
38 | <ul> |
---|
39 | <li><a href="[% c.model('Accounts').obj_to_uri(obj) %]">Listes</a></li> |
---|
40 | <li><a href="[% c.uri_for('/create', obj) %]">Créer...</a></li> |
---|
41 | <li><a href="[% c.uri_for('/search/adv', { 'otype' => obj }) %]">Rechercher...</a></li> |
---|
42 | </ul> |
---|
43 | </li> |
---|
44 | [% END %] |
---|
45 | |
---|
46 | <ul> |
---|
47 | <li><a href="[% c.uri_for('/admin') |
---|
48 | %]">Gestion...</a></li> |
---|
49 | </ul> |
---|
50 | |
---|
51 | <script> |
---|
52 | $(function() { |
---|
53 | $('#menu').menu(); |
---|
54 | }); |
---|
55 | </script> |
---|
Note: See
TracBrowser
for help on using the repository browser.