1 |
<!-- $Id$ --> |
2 |
|
3 |
[% tuserinfo = sa50.get_user_info(id) %] |
4 |
|
5 |
<h2>[% tuserinfo.name | html %] [% tuserinfo.fname | html %]</h2> |
6 |
|
7 |
<h3>Infos</h3> |
8 |
|
9 |
<p>Corriger le nom</p> |
10 |
[% CALL cgi.param('name', tuserinfo.name) %] |
11 |
[% CALL cgi.param('fname', tuserinfo.fname) %] |
12 |
<form action="[%- c.req.base _ '/id/' _ id -%]" method="POST"> |
13 |
<p>Nom: <input type="text" name="name" value="[% tuserinfo.name | html %]"></p> |
14 |
<p>Prenom: <input type="text" name="fname" value="[% tuserinfo.fname | html %]"></p> |
15 |
<input type="hidden" name="pupd" value="1"> |
16 |
<p><input type="submit"></p> |
17 |
</form> |
18 |
|
19 |
<h3>Addresse</h3> |
20 |
|
21 |
[% taddinfo = sa50.get_address_info(id) %] |
22 |
<form action="[%- c.req.base _ '/id/' _ id -%]" method="POST"> |
23 |
<input type="hidden" name="addadd" value="[% id %]"> |
24 |
<p>Tél: <input type="text" name="fixed_phone" value="[% taddinfo.fixed_phone | html %]"> |
25 |
Portable: <input type="text" name="mobile_phone" value="[% taddinfo.mobile_phone | html %]"></p> |
26 |
<p>E-mail: <input type="text" name="email" value="[% taddinfo.email | html %]"></p> |
27 |
<p>Rue: <textarea name="address">[%- taddinfo.address | html %]</textarea></p> |
28 |
<p>Code postal: <input type="text" name="postal" value="[% taddinfo.postal | html %]"> |
29 |
Ville: <input type="text" name="city" value="[% taddinfo.city | html %]"></p> |
30 |
<p>Pays: <input type="text" name="country" value="[% taddinfo.country | html %]"></p> |
31 |
<p>Commmentaire: <textarea name="comment">[%- taddinfo.comment | html %]</textarea></p> |
32 |
<p><input type="submit"></p> |
33 |
</form> |
34 |
|
35 |
<h3>Date de presence</h3> |
36 |
|
37 |
[% tjids = sa50.get_job_key(id) %] |
38 |
[% FOREACH tjid = tjids %] |
39 |
[% tjinfo = sa50.get_job_info(tjid) %] |
40 |
[% cgi.start_form('-action', cgi.url('-path_info', 1)) %] |
41 |
[% CALL cgi.param('jkey', tjid) %] |
42 |
[% cgi.hidden('jkey', tjid) %] |
43 |
[% CALL cgi.param('start', tjinfo.start) %] |
44 |
[% CALL cgi.param('end', tjinfo.end) %] |
45 |
[% CALL cgi.param('comment', tjinfo.comment) %] |
46 |
<p>[% cgi.textfield('start') %] au [% cgi.textfield('end') %] |
47 |
([% cgi.textfield('comment') %]) [% cgi.submit %]</p> |
48 |
[% cgi.end_form %] |
49 |
[% END %] |
50 |
|
51 |
<p>Ajouter une période:</p> |
52 |
[% cgi.start_form('-action', cgi.url('-path_info', 1)) %] |
53 |
[% CALL cgi.param('addjob', 1) %] |
54 |
[% cgi.hidden('addjob', 1) %] |
55 |
[% CALL cgi.param('start', '') %] |
56 |
[% CALL cgi.param('end', '') %] |
57 |
[% CALL cgi.param('comment', '') %] |
58 |
<p>[% cgi.textfield('start') %] au [% cgi.textfield('end') %] |
59 |
([% cgi.textfield('comment') %]) [% cgi.submit %]</p> |
60 |
[% cgi.end_form %] |
61 |
<h3>Personnes rencontrées</h3> |
62 |
|
63 |
[% FOREACH titem = sa50.get_meet_people(id) %] |
64 |
[% "<ul>\n" IF loop.first %] |
65 |
<li><a href="[% cgi.url %]/id/[% titem.id %]"> |
66 |
[% titem.name | html %] [% titem.fname | html %] |
67 |
</a></li> |
68 |
[% "</ul>\n" IF loop.last %] |
69 |
[% END %] |