Merge branch 'xorg/maint' into xorg/master
[platal.git] / templates / fusionax / names.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2011 Polytechnique.org                             *}
4 {*  http://opensource.polytechnique.org/                                  *}
5 {*                                                                        *}
6 {*  This program is free software; you can redistribute it and/or modify  *}
7 {*  it under the terms of the GNU General Public License as published by  *}
8 {*  the Free Software Foundation; either version 2 of the License, or     *}
9 {*  (at your option) any later version.                                   *}
10 {*                                                                        *}
11 {*  This program is distributed in the hope that it will be useful,       *}
12 {*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}
13 {*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}
14 {*  GNU General Public License for more details.                          *}
15 {*                                                                        *}
16 {*  You should have received a copy of the GNU General Public License     *}
17 {*  along with this program; if not, write to the Free Software           *}
18 {*  Foundation, Inc.,                                                     *}
19 {*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}
20 {*                                                                        *}
21 {**************************************************************************}
22
23 <h2><a href="fusionax">Fusion des annuaires X.org - AX</a> / noms</h2>
24
25 <p></p>
26
27 {if $action eq "first"}
28 {if $firstnameIssues|@count eq 0}
29 <p>Aucun problème avec les prénoms.</p>
30 {else}
31 <p><a href="fusionax/names/first/true">Obtenir le csv des conflits.</a></p>
32 <table class="bicol">
33   <tr>
34     <th>pid</th>
35     <th>ax id</th>
36     <th>hrpid</th>
37     <th colspan="4">Prénoms</th>
38   </tr>
39   <tr>
40     <th></th>
41     <th></th>
42     <th></th>
43     <th>AX</th>
44     <th>initial</th>
45     <th>principal</th>
46     <th>ordinaire</th>
47   </tr>
48 {foreach from=$firstnameIssues item=profile}
49   <tr>
50     <td>{$profile.pid}</td>
51     <td>{$profile.ax_id}</td>
52     <td>{$profile.hrpid}</td>
53     <td>{$profile.prenom}</td>
54     <td>{$profile.firstname_initial}</td>
55     <td>{$profile.firstname_main}</td>
56     <td>{$profile.firstname_ordinary}</td>
57   </tr>
58 {/foreach}
59 </table>
60 {/if}
61 {elseif $action eq "last"}
62 {if $lastnameIssues|@count eq 0}
63 <p>Aucun problème avec les noms.</p>
64 {else}
65 <p><a href="fusionax/names/last/true">Obtenir le csv des conflits.</a></p>
66 <table class="bicol">
67   <tr>
68     <th>pid</th>
69     <th>ax id</th>
70     <th>hrpid</th>
71     <th colspan="7">Noms</th>
72   </tr>
73   <tr>
74     <th></th>
75     <th></th>
76     <th></th>
77     <th>AX patro</th>
78     <th>AX usuel</th>
79     <th>AX complet</th>
80     <th>initial</th>
81     <th>principal</th>
82     <th>marital</th>
83     <th>ordinaire</th>
84   </tr>
85 {foreach from=$lastnameIssues item=profile}
86   <tr>
87     <td>{$profile.pid}</td>
88     <td>{$profile.ax_id}</td>
89     <td>{$profile.hrpid}</td>
90     <td>{$profile.Nom_patronymique}</td>
91     <td>{$profile.Nom_usuel}</td>
92     <td>{$profile.Nom_complet}</td>
93     <td>{$profile.lastname_initial}</td>
94     <td>{$profile.lastname_main}</td>
95     <td>{$profile.lastname_marital}</td>
96     <td>{$profile.lastname_ordinary}</td>
97   </tr>
98 {/foreach}
99 </table>
100 {/if}
101
102 {else}
103 <p>
104   Il y a {$total} camarades dans l'intersection de nos bases.
105 </p>
106 <ul>
107   <li><a href="fusionax/names/last">{$lastnameIssues} des noms de l'AX ne sont pas dans les notres.</a></li>
108   <li><a href="fusionax/names/first">{$firstnameIssues} des prénoms de l'AX ne sont pas dans les notres.</a></li>
109 </ul>
110 {/if}
111
112 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}