Displays all similar entreprises only on demand (Closes #1399).
[platal.git] / templates / include / form.valid.entreprises.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
24 <tr class="pair">
25   <td class="titre">Nom&nbsp;:</td>
26   <td>{$valid->name}</td>
27 </tr>
28 <tr class="pair">
29   <td class="titre">Noms similaires existants&nbsp;:</td>
30   <td>
31     <span id="{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_truncated"
32           onclick="$('#{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_truncated').toggle();
33                    $('#{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_full').toggle()">
34       {$valid->suggestions|truncate:200:"&hellip; <strong><small>(cliquez pour tout afficher)</small></strong>"}
35     </span>
36     <span id="{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_full" style="display: none"
37           onclick="$('#{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_truncated').toggle();
38                    $('#{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_full').toggle()">
39       {$valid->suggestions}
40     </span>
41   </td>
42 </tr>
43 <tr class="pair">
44   <td class="titre">Acronyme&nbsp;:</td>
45   <td>{$valid->acronym}</td>
46 </tr>
47 <tr class="pair">
48   <td class="titre">Site web&nbsp;:</td>
49   <td>{$valid->url}</td>
50 </tr>
51 <tr class="pair">
52   <td class="titre">Email&nbsp;:</td>
53   <td>{$valid->email}</td>
54 </tr>
55 <tr class="pair">
56   <td class="titre">Holding&nbsp;:</td>
57   <td>{$valid->holdingid}</td>
58 </tr>
59 <tr class="pair">
60   <td class="titre">Code NAF&nbsp;:</td>
61   <td>{$valid->NAF_code}</td>
62 </tr>
63 <tr class="pair">
64   <td class="titre">Code AX&nbsp;:</td>
65   <td>{$valid->AX_code}</td>
66 </tr>
67 <tr class="pair">
68   <td class="titre">Adresse&nbsp;:</td>
69   <td>{$valid->address}</td>
70 </tr>
71 <tr class="pair">
72   <td class="titre">Téléphone&nbsp;:</td>
73   <td>{$valid->tel}</td>
74 </tr>
75 <tr class="pair">
76   <td class="titre">Fax&nbsp;:</td>
77   <td>{$valid->fax}</td>
78 </tr>
79 <tr class="pair">
80   <td colspan="2" class="center">
81     <small>Bien remplir tous les champs, en particulier les <a href="http://societe.com/">codes NAF</a> et AX !</small>
82   </td>
83 </tr>
84
85 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}