Happy New Year !
[platal.git] / templates / include / form.valid.entreprises.tpl
index 78d2c60..c62e821 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2013 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 </tr>
 <tr class="pair">
   <td class="titre">Noms similaires existants&nbsp;:</td>
-  <td>{$valid->suggestions}</td>
+  <td>
+    <span id="{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_truncated"
+          onclick="$('#{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_truncated').hide();
+                   $('#{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_full').show()">
+      {$valid->suggestions|truncate:200:"&hellip; <strong><small>(cliquez pour tout afficher)</small></strong>"}
+    </span>
+    <span id="{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_full" style="display: none" >
+      <span onclick="$('#{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_truncated').show();
+                     $('#{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_full').hide();">
+        {icon name=delete title="Cacher les suggestions"}
+      </span>
+      {$valid->suggestions}
+      <span onclick="$('#{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_truncated').show();
+                     $('#{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_full').hide();">
+        {icon name=delete title="Cacher les suggestions"}
+      </span>
+    </span>
+  </td>
 </tr>
 <tr class="pair">
   <td class="titre">Acronyme&nbsp;:</td>