Merge branch 'xorg/maint'
[platal.git] / templates / fusionax / ids.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> / Identifiants</h2>
24
25 <p>
26 Le préalable à toute fusion de renseignements pour une personne entre ce
27 que contient la base AX et ce que contient ce site est bien évidemment de
28 trouver une correspondance entre les personnes renseignés dans ces annuaires.<br /><br />
29
30 {if t($nbMissingInAX)}
31 <strong>Anciens manquants à l'AX&nbsp;:</strong>
32 <a href="fusionax/ids/missingInAX">{$nbMissingInAX} ancien{if $nbMissingInAX > 1}s{/if}</a>.<br />
33 {/if}
34
35 {if t($nbMissingInXorg)}
36 <strong>Anciens manquants à x.org&nbsp;:</strong>
37 <a href="fusionax/ids/missingInXorg">{$nbMissingInXorg} ancien{if $nbMissingInXorg > 1}s{/if}</a>.<br />
38 {/if}
39
40 {if t($wrongInXorg)}
41 <strong>Anciens ayant un ax_id sur Xorg ne correspondant à rien dans la base de l'AX&nbsp;:</strong>
42 <a href="fusionax/ids/wrongInXorg">{$wrongInXorg} ancien{if $wrongInXorg > 1}s{/if}</a>.
43 {/if}
44 </p>
45
46 <h3>Mettre en correspondance</h3>
47 <form action="fusionax/ids/lier" method="post">
48   <p>
49     Matricule AX : <input type="text" name="ax_id" /><br/>
50     User ID X.org : <input type="text" name="pid" /><br/>
51     <input type="submit" value="Lier" />
52   </p>
53 </form>
54
55 <p></p>
56 <div id="autolink">
57 <h3>Mise en correspondance automatique</h3>
58 {if t($easyToLink)}
59 <p>
60   Ces anciens sont probablement les mêmes (à peu près mêmes nom, prénom, promo)<br />
61   {$nbMatch} correspondances trouvées.
62 </p>
63
64 {include file="fusionax/listFusion.tpl" fusionList=$easyToLink fusionAction="fusionax/ids/link" name="lier" field1="display_name_ax" namefield1="Ancien AX"}
65 <p><a href="fusionax/ids/linknext">Lier toutes les fiches affichées</a> <span id="fusion-reload" style="display:none"> - <a href="fusionax/ids#autolink">Trouver d'autres correspondances</a></span></p>
66 <script type="text/javascript">
67 {literal}
68 //<!--
69 $(function() {
70     $('#autolink a.fusion-action').click(function(a){
71         $.get(a.currentTarget.href,{},function(){
72             $(a.currentTarget).hide();
73             $('#fusion-reload').show();
74             $('#fusion-reload a').click(function(a) {
75                 document.location = a.currentTarget.href;
76                 document.location.reload();
77             });
78         });
79         return false;
80     });
81 });
82 //-->
83 {/literal}
84 </script>
85 {else}
86 <p>Aucune correspondance automatique n'a été trouvée (mêmes nom, prénom, promo d'étude).</p>
87 {/if}
88 </div>