/[saadmin]/sa50/root/templates/people.html
ViewVC logotype

Contents of /sa50/root/templates/people.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 87 - (show annotations)
Thu Feb 28 13:32:52 2008 UTC (16 years, 4 months ago) by nanardon
File MIME type: text/html
File size: 4433 byte(s)
- add link to thesis
1 <!-- $Id$ -->
2
3 [% IF id %][% tuserinfo = sa50.get_user_info(id) %][% END %]
4
5 <h2><a href="[%- c.req.base _ '/id/' _ id -%]">[% tuserinfo.name | html %] [% tuserinfo.fname | html %]</a></h2>
6
7 <h3>Infos</h3>
8
9 <table border="1" width="100%">
10 <tr>
11 <td>
12 <p>Corriger le nom:</p>
13 <form action="[%- c.req.base _ '/id/' _ id -%]" method="POST">
14 <p>Nom: <input type="text" name="name" value="[% tuserinfo.name | html %]"></p>
15 <p>Prenom: <input type="text" name="fname" value="[% tuserinfo.fname | html %]"></p>
16 <p>Fonction: <input type="text" name="work" value="[% tuserinfo.work | html %]"></p>
17 <p>Corps/Grade: <input type="text" name="grade" value="[% tuserinfo.grade | html %]"></p>
18 <input type="hidden" name="pupd" value="1">
19 <p><input type="submit"></p>
20 </form>
21
22 <hr>
23 <p><a href="[%- c.req.base _ '/id/' _ id _ '/death' -%]">
24 [% IF tuserinfo.death %]
25 Décédé[% ' le ' _ tuserinfo.death_date IF tuserinfo.death_date %].
26 [% ELSE %]
27 Cette personne est décédée ?
28 [% END %]
29 </a></p>
30 </td>
31
32 <td style="vertical-align: top;">
33
34 <p><a href="[% c.req.base _ '/id/' _ id _ '/awards' %]">Récompenses:</a></p>
35
36 [% FOREACH tmpk = sa50.get_award_keys(id) %]
37 [% "Prix: <ul>\n" IF loop.first %]
38 [% tmp = sa50.get_award_info(tmpk) %]
39 <li>[% tmp.title | html %]</li>
40 [% "</ul>\n" IF loop.last %]
41 [% END %]
42
43 [% FOREACH tmpk = sa50.get_medal_keys(id) %]
44 [% "Médailles: <ul>\n" IF loop.first %]
45 [% tmp = sa50.get_medal_info(tmpk) %]
46 <li>[% tmp.kind | html %]</li>
47 [% "</ul>\n" IF loop.last %]
48 [% END %]
49
50 [% FOREACH tmpk = sa50.get_distintions_keys(id) %]
51 [% "Distinctions: <ul>\n" IF loop.first %]
52 [% tmp = sa50.get_distintions_info(tmpk) %]
53 <li>[% tmp.name | html %]</li>
54 [% "</ul>\n" IF loop.last %]
55 [% END %]
56 <p><a href="[% c.req.base _ '/id/' _ id _ '/extra' %]">Thèses, autres activités:</a></p>
57
58 [% FOREACH tmpk = sa50.get_thesis_key(id) %]
59 [% "Thèses: <ul>\n" IF loop.first %]
60 [% tmp = sa50.get_thesis_info(tmpk) %]
61 <li><a href="[% c.req.base _ '/id/' _ id _ '/extra#thesis' _ tmp.id %]">[% tmp.title | html %]</a></li>
62 [% "</ul>\n" IF loop.last %]
63 [% END %]
64
65 [% FOREACH tmpk = sa50.get_university_teacher_key(id) %]
66 [% "Professeurs d'université: <ul>\n" IF loop.first %]
67 [% tmp = sa50.get_university_teacher_info(tmpk) %]
68 <li>[% tmp.teachtype | html %] - [% tmp.university | html %]</li>
69 [% "</ul>\n" IF loop.last %]
70 [% END %]
71
72 [% FOREACH tmpk = sa50.get_organisation_key(id) %]
73 [% "Autres participations: <ul>\n" IF loop.first %]
74 [% tmp = sa50.get_organisation_info(tmpk) %]
75 <li>[% tmp.orgname | html %] - [% tmp.type | html %]</li>
76 [% "</ul>\n" IF loop.last %]
77 [% END %]
78
79 [% FOREACH tmpk = sa50.get_academy_keys(id) %]
80 [% "Académies: <ul>\n" IF loop.first %]
81 [% tmp = sa50.get_academy_info(tmpk) %]
82 <li>[% tmp.name | html %]</li>
83 [% "</ul>\n" IF loop.last %]
84 [% END %]
85
86 </td>
87 </tr>
88 </table>
89
90 <h3>Date de présence</h3>
91
92 [% tjids = sa50.get_job_key(id) %]
93 [% FOREACH tjid = tjids %]
94 [% INCLUDE 'jobform.html' jobid = tjid %]
95 [% END %]
96 [% INCLUDE 'jobform.html' %]
97
98 <hr>
99 <h3>Adresse</h3>
100
101 [% taddinfo = sa50.get_address_info(id) %]
102 <form action="[%- c.req.base _ '/id/' _ id -%]" method="POST">
103 <input type="hidden" name="addadd" value="[% id %]">
104 <p>Tél: <input type="text" name="fixed_phone" value="[% taddinfo.fixed_phone | html %]">
105 Portable: <input type="text" name="mobile_phone" value="[% taddinfo.mobile_phone | html %]"></p>
106 <p>E-mail: <input type="text" name="email" value="[% taddinfo.email | html %]"></p>
107 <p>Rue: <textarea name="address">[%- taddinfo.address | html %]</textarea></p>
108 <p>Code postal: <input type="text" name="postal" value="[% taddinfo.postal | html %]">
109 Ville: <input type="text" name="city" value="[% taddinfo.city | html %]"></p>
110 <p>Pays: <input type="text" name="country" value="[% taddinfo.country | html %]">
111 <input type="submit"></p>
112 </form>
113
114 <hr>
115 [% tmeets = sa50.get_meet_people(id) %]
116 <h3>Personnes rencontr&eacute;es ([% tmeets.size %])</h3>
117
118 [% FOREACH titem = tmeets %]
119 [% '<table border="0">' IF loop.first %]
120 <tr><td><a href="[% c.req.base %]/id/[% titem.people %]">
121 [% titem.name | html %] [% titem.fname | html %]
122 </a></td>
123 <td>
124 [% IF titem.start OR titem.end %]
125 [% titem.start | html %]
126 </td><td><td>-</td><td>
127 [% titem.end | html %]
128 [% ELSE %]
129 </td><td></td><td>
130 [% END %]
131 </td>
132 </tr>
133 [% "</table>\n" IF loop.last %]
134 [% END %]

Properties

Name Value
svn:keywords Id

  ViewVC Help
Powered by ViewVC 1.1.21