Displays all similar entreprises only on demand (Closes #1399).
authorStéphane Jacob <sj@m4x.org>
Sun, 27 Feb 2011 21:42:20 +0000 (22:42 +0100)
committerStéphane Jacob <sj@m4x.org>
Sun, 27 Feb 2011 22:19:00 +0000 (23:19 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
ChangeLog
templates/include/form.valid.entreprises.tpl

index 92a8d9e..31bce03 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@ VERSION 1.0.2                                                         31 01 2011
 Bug/Wish:
 
     * Admin:
+        - #1399: Displays all similar entreprises only on demand           -JAC
         - #1362: List last profile modifications for secretary             -JAC
 
     * Core:
index 2273a71..76a37e5 100644 (file)
 </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').toggle();
+                   $('#{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_full').toggle()">
+      {$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"
+          onclick="$('#{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_truncated').toggle();
+                   $('#{$valid->type}_{$valid->profile->id()}_{$valid->stamp}_full').toggle()">
+      {$valid->suggestions}
+    </span>
+  </td>
 </tr>
 <tr class="pair">
   <td class="titre">Acronyme&nbsp;:</td>