2321aabaaa14f4bee8a3c8f0c82099bc2dd57afd
[platal.git] / templates / fusionax / names.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2014 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" || $action eq "last1" || $action eq "last2" || $action eq "last3"}
62 <h3>{$issuesTypes.$action}&nbsp;: {$total}</h3>
63 <ul>
64   <li><a href="fusionax/names/last">{$issuesTypes.last}.</a></li>
65   <li><a href="fusionax/names/last1">{$issuesTypes.last1}.</a></li>
66   <li><a href="fusionax/names/last2">{$issuesTypes.last2}.</a></li>
67   <li><a href="fusionax/names/last3">{$issuesTypes.last3}.</a></li>
68 </ul>
69 {if $lastnameIssues|@count eq 0}
70 <p>Aucun problème de ce type avec les noms.</p>
71 {else}
72 <p><a href="fusionax/names/last/true">Obtenir le csv des conflits.</a></p>
73 <table class="bicol">
74   <tr>
75     <th>pid</th>
76     <th>ax id</th>
77     <th>hrpid</th>
78     <th colspan="7">Noms</th>
79   </tr>
80   <tr>
81     <th></th>
82     <th></th>
83     <th></th>
84     <th>AX patro</th>
85     <th>AX usuel</th>
86     <th>AX complet</th>
87     <th>initial</th>
88     <th>principal</th>
89     <th>marital</th>
90     <th>ordinaire</th>
91   </tr>
92 {foreach from=$lastnameIssues item=profile}
93   <tr>
94     <td>{$profile.pid}</td>
95     <td>{$profile.ax_id}</td>
96     <td>{$profile.hrpid}</td>
97     <td>{$profile.Nom_patronymique}</td>
98     <td>{$profile.Nom_usuel}</td>
99     <td>{$profile.Nom_complet}</td>
100     <td>{$profile.lastname_initial}</td>
101     <td>{$profile.lastname_main}</td>
102     <td>{$profile.lastname_marital}</td>
103     <td>{$profile.lastname_ordinary}</td>
104   </tr>
105 {/foreach}
106 </table>
107 {/if}
108
109 {else}
110 <p>
111   Il y a {$total} camarades dans l'intersection de nos bases.
112 </p>
113 <ul>
114   <li><a href="fusionax/names/last">{$lastnameIssues} des noms de l'AX ne sont pas dans les notres.</a></li>
115   <li><a href="fusionax/names/first">{$firstnameIssues} des prénoms de l'AX ne sont pas dans les notres.</a></li>
116 </ul>
117 {/if}
118
119 {* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}