1 | [% IF c.user.username %] |
---|
2 | <form action="[% c.uri_for('/search') %]"> |
---|
3 | <input name="q" value="[% c.req.param('q') | html %]"> |
---|
4 | <input type="image" name="" src="[% c.uri_for('/static', 'images', 'gtk-find.png') %]" height="16" width="16"> |
---|
5 | </form> |
---|
6 | <span> |
---|
7 | <a href="[% c.uri_for('/users', c.user.username) %]"> |
---|
8 | [% l('Connected as') %] |
---|
9 | [% c.model('Accounts').db.get_object('user', c.user.username ) %] |
---|
10 | </a> |
---|
11 | </span>, |
---|
12 | [% IF c.model('Accounts').db.check_acl('user', 'userPassword', 'w') %] |
---|
13 | <span> |
---|
14 | <a href="[% c.uri_for('/users', c.user.username, 'passwd') %]"> |
---|
15 | [% l('Change my password') %] |
---|
16 | </a> |
---|
17 | </span>, |
---|
18 | [% END %] |
---|
19 | <span> |
---|
20 | <a href="[% c.uri_for('/logout') %]">[% l('Logout') %]</a> |
---|
21 | </span> |
---|
22 | |
---|
23 | <ul id="menu"> |
---|
24 | |
---|
25 | <li><a href="[% c.uri_for('/search', 'adv') %]">Recherche avancée</a></li> |
---|
26 | |
---|
27 | <li>[% l('View') %] |
---|
28 | <ul> |
---|
29 | [% FOREACH obj = c.model('Accounts').db.list_supported_objects.sort %] |
---|
30 | [% label = c.model('Accounts').obj_to_label(obj) %] |
---|
31 | [% NEXT IF NOT label %] |
---|
32 | <li><a href="[% c.model('Accounts').obj_to_uri(obj) %]">[% label | html %]</a></li> |
---|
33 | [% END %] |
---|
34 | <li><a href="[% c.uri_for('/oaliases') %]">Alias d'objet</a></li> |
---|
35 | </ul> |
---|
36 | </li> |
---|
37 | |
---|
38 | [% IF c.model('Accounts').CanCreateObjects %] |
---|
39 | <li>[% l('Create') %] |
---|
40 | <ul> |
---|
41 | [% FOREACH obj = c.model('Accounts').db.list_supported_objects.sort %] |
---|
42 | [% label = c.model('Accounts').obj_to_label(obj) %] |
---|
43 | [% NEXT IF NOT label %] |
---|
44 | <li><a href="[% c.uri_for('/create', obj) %]"> |
---|
45 | [% label | html %] |
---|
46 | </a></li> |
---|
47 | [% END %] |
---|
48 | <li><a href="[% c.uri_for('/oaliases', 'create') %]"> |
---|
49 | Alias d'objet |
---|
50 | </a></li> |
---|
51 | <li><a href="[% c.uri_for('/tools/loadnew') %]"> |
---|
52 | [% l('Using formated file') %] |
---|
53 | </a></li> |
---|
54 | <li><a href="[% c.uri_for('/tools/csv') %]"> |
---|
55 | [% l('Mass from CSV...') %] |
---|
56 | </a></li> |
---|
57 | </ul> |
---|
58 | </li> |
---|
59 | [% END # IF CanCreateObjects %] |
---|
60 | |
---|
61 | <li>[% l('Statistics') %] |
---|
62 | <ul> |
---|
63 | [% IF c.config.features.offices_list %] |
---|
64 | <li><a href="[% c.uri_for('/summary', 'offices') %]">Annuaire par bureaux</a></li> |
---|
65 | [% END %] |
---|
66 | |
---|
67 | <li><a href="[% c.uri_for('/summary', 'departments') %]">Liste des départements</a></li> |
---|
68 | <li><a href="[% c.uri_for('/summary/expire') %]">Expiration des comptes</a></li> |
---|
69 | <li><a href="[% c.uri_for('/summary/employment') %]">[% l('Status evolution') %]</a></li> |
---|
70 | <li><a href="[% c.uri_for('/summary/accage') %]">Comptes par année</a></li> |
---|
71 | <li><a href="[% c.uri_for('/summary/employmentbyperiod') %]">Nombre de personnes par statut</a></li> |
---|
72 | <li><a href="[% c.uri_for('/summary/listemployments') %]">[% l('Search by employment') %]</a></li> |
---|
73 | |
---|
74 | [% FOREACH stat = c.model('Accounts').db.search_objects('stat', 'exported=true', 'display=*').sort %] |
---|
75 | [% ostat = c.model('Accounts').db.get_object('stat', stat) %] |
---|
76 | [% IF loop.first %] |
---|
77 | <li class="ui-widget-header"><a href="[% c.uri_for('/stat') %]">[% l('Statistics') %]</a>: |
---|
78 | [% END %] |
---|
79 | <li><a href="[% c.uri_for('/stat', stat) %]">[% ostat.get_attributes('description') || stat | html %]</a> |
---|
80 | </li> |
---|
81 | |
---|
82 | [% IF loop.last %] |
---|
83 | </li> |
---|
84 | [% END %] |
---|
85 | [% END %] |
---|
86 | |
---|
87 | [% IF c.model('Accounts').db.search_objects('stat', 'exported=true', 'display=*').sort %] |
---|
88 | <li><a href="[% c.uri_for('/stat') %]">[% l('Others Statistics') %]</a> |
---|
89 | </li> |
---|
90 | [% END %] |
---|
91 | </ul> |
---|
92 | </li> |
---|
93 | |
---|
94 | <li>[% l('Tools') %] |
---|
95 | <ul> |
---|
96 | [% IF c.model('Accounts').db.check_acl('user', 'userPasswd', 'w') %] |
---|
97 | <li><a href="[% c.uri_for('/tools', 'loadpasswd') %]"> |
---|
98 | [% l('Load Password') %] |
---|
99 | </a></li> |
---|
100 | [% END %] |
---|
101 | </ul> |
---|
102 | </li> |
---|
103 | |
---|
104 | <li><a href="[% c.uri_for('/about') %]"> |
---|
105 | [% l('About') %]</a></li> |
---|
106 | </ul> |
---|
107 | |
---|
108 | <script> |
---|
109 | $(function() { |
---|
110 | $( "#menu" ).menu({ |
---|
111 | position: { my: "left top", at: "left-1 top+35" }, |
---|
112 | items: "> :not(.ui-widget-header)", |
---|
113 | }); |
---|
114 | }); |
---|
115 | </script> |
---|
116 | [% END %] |
---|