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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 51 by nanardon, Wed Feb 6 13:41:24 2008 UTC revision 80 by nanardon, Mon Feb 25 03:31:14 2008 UTC
# Line 2  Line 2 
2    
3  [% IF id %][% tuserinfo = sa50.get_user_info(id) %][% END %]  [% IF id %][% tuserinfo = sa50.get_user_info(id) %][% END %]
4    
5  <h2>[% tuserinfo.name | html %] [% tuserinfo.fname | html %]</h2>  <h2><a href="[%- c.req.base _ '/id/' _ id -%]">[% tuserinfo.name | html %] [% tuserinfo.fname | html %]</a></h2>
6    
7  <h3>Infos</h3>  <h3>Infos</h3>
8    
9  <table border="1" width="100%">  <table border="1" width="100%">
10  <tr>  <tr>
11  <td>  <td>
12  <p>Corriger le nom</p>  <p>Corriger le nom:</p>
13  <form action="[%- c.req.base _ '/id/' _ id -%]" method="POST">  <form action="[%- c.req.base _ '/id/' _ id -%]" method="POST">
14  <p>Nom: <input type="text" name="name" value="[% tuserinfo.name | html %]"></p>  <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>  <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>  <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">  <input type="hidden" name="pupd" value="1">
19  <p><input type="submit"></p>  <p><input type="submit"></p>
20  </form>  </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>  </td>
31    
32  <td style="vertical-align: top;">  <td style="vertical-align: top;">
33    
34  <p><a href="[% c.req.base _ '/id/' _ id _ '/awards' %]">Récompenses:</a></p>  <p><a href="[% c.req.base _ '/id/' _ id _ '/awards' %]">Récompenses:</a></p>
35    
36  [% FOREACH tmpk = sa50.get_award_key(id) %]  [% FOREACH tmpk = sa50.get_award_keys(id) %]
37  [% "Prix: <ul>\n" IF loop.first %]  [% "Prix: <ul>\n" IF loop.first %]
38  [% tmp = sa50.get_award_info(tmpk) %]  [% tmp = sa50.get_award_info(tmpk) %]
39  <li>[% tmp.title | html %]</li>  <li>[% tmp.title | html %]</li>
40  [% "</ul>\n" IF loop.last %]  [% "</ul>\n" IF loop.last %]
41  [% END %]  [% END %]
42    
43  [% FOREACH tmpk = sa50.get_medal_key(id) %]  [% FOREACH tmpk = sa50.get_medal_keys(id) %]
44  [% "Médailles: <ul>\n" IF loop.first %]  [% "Médailles: <ul>\n" IF loop.first %]
45  [% tmp = sa50.get_medal_info(tmpk) %]  [% tmp = sa50.get_medal_info(tmpk) %]
46  <li>[% tmp.kind | html %]</li>  <li>[% tmp.kind | html %]</li>
47  [% "</ul>\n" IF loop.last %]  [% "</ul>\n" IF loop.last %]
48  [% END %]  [% 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>  <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) %]  [% FOREACH tmpk = sa50.get_thesis_key(id) %]
# Line 60  Line 76 
76  [% "</ul>\n" IF loop.last %]  [% "</ul>\n" IF loop.last %]
77  [% END %]  [% 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>  </td>
87  </tr>  </tr>
88  </table>  </table>
89    
90  <h3>Date de presence</h3>  <h3>Date de présence</h3>
91    
92  [% tjids = sa50.get_job_key(id) %]  [% tjids = sa50.get_job_key(id) %]
93  [% FOREACH tjid = tjids %]  [% FOREACH tjid = tjids %]
# Line 72  Line 95 
95  [% END %]  [% END %]
96  [% INCLUDE 'jobform.html' %]  [% INCLUDE 'jobform.html' %]
97    
98    <hr>
99  <h3>Addresse</h3>  <h3>Adresse</h3>
100    
101  [% taddinfo = sa50.get_address_info(id) %]  [% taddinfo = sa50.get_address_info(id) %]
102  <form action="[%- c.req.base _ '/id/' _ id -%]" method="POST">  <form action="[%- c.req.base _ '/id/' _ id -%]" method="POST">
# Line 84  Line 107 
107      <p>Rue: <textarea name="address">[%- taddinfo.address | html %]</textarea></p>      <p>Rue: <textarea name="address">[%- taddinfo.address | html %]</textarea></p>
108      <p>Code postal: <input type="text" name="postal" value="[% taddinfo.postal | html %]">      <p>Code postal: <input type="text" name="postal" value="[% taddinfo.postal | html %]">
109      Ville: <input type="text" name="city" value="[% taddinfo.city | html %]"></p>      Ville: <input type="text" name="city" value="[% taddinfo.city | html %]"></p>
110      <p>Pays: <input type="text" name="country" value="[% taddinfo.country | html %]"></p>      <p>Pays: <input type="text" name="country" value="[% taddinfo.country | html %]">
111      <p>Commmentaire: <textarea name="comment">[%- taddinfo.comment | html %]</textarea></p>      <input type="submit"></p>
 <p><input type="submit"></p>  
112  </form>  </form>
113    
114  <h3>Personnes rencontr&eacute;es</h3>  <hr>
115    [% tmeets = sa50.get_meet_people(id) %]
116  [% FOREACH titem = sa50.get_meet_people(id) %]  <h3>Personnes rencontr&eacute;es ([% tmeets.size %])</h3>
117  [% "<ul>\n" IF loop.first %]  
118      <li><a href="[% c.req.base %]/id/[% titem.id %]">  [% 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 %]          [% titem.name | html %] [% titem.fname | html %]
122      </a></li>      </a></td>
123  [% "</ul>\n" IF loop.last %]      <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 %]  [% END %]

Legend:
Removed from v.51  
changed lines
  Added in v.80

  ViewVC Help
Powered by ViewVC 1.1.21