backport link change
[platal.git] / templates / xnetgrp / announce-edit.tpl
index 1c66937..7af72fe 100644 (file)
@@ -26,9 +26,9 @@ function visibilityChange(box)
 {
     var state = (box.checked ? 'none' : '');
     document.getElementById('promo_titre').style.display = state;
-    document.getElementById('promo_min').style.display = state;
-    document.getElementById('promo_max').style.display = state;
-    document.getElementById('promo_desc').style.display = state;
+    document.getElementById('promo_min_tr').style.display = state;
+    document.getElementById('promo_max_tr').style.display = state;
+    document.getElementById('promo_range_tr').style.display = state;
 }
 {/literal}
 </script>
@@ -97,6 +97,13 @@ function visibilityChange(box)
         <textarea cols="60" rows="6" name='contacts'>{$art.contacts}</textarea>
       </td>
     </tr>
+    <tr style="border-top: 1px solid gray">
+      <td colspan="2" class="center">
+        <a href="wiki_help/notitle" class="popup3">
+          {icon name=information title="Syntaxe wiki"} Voir la liste des marqueurs de mise en forme autorisĂ©s
+        </a>
+      </td>
+    </tr>
   </table>
   <br />
 
@@ -104,9 +111,7 @@ function visibilityChange(box)
     <tr>
       <td class="titre">Date de pĂ©remption :</td>
       <td>
-        <select name="peremption">
-          {$select|smarty:nodefaults}
-        </select>
+        {valid_date name="peremption" value=$art.peremption}
       </td>
     </tr>
     {if $events}
@@ -135,25 +140,14 @@ function visibilityChange(box)
     <tr id="promo_titre" {if $art.public}style="display: none"{/if}>
       <th colspan="2">Promotions cibles</th>
     </tr>
-    <tr id="promo_min"  {if $art.public}style="display: none"{/if}>
-      <td class="titre">Promotion minimale :</td>
-      <td>
-        <input type="text" size="4" maxlength="4" name="promo_min" value="{$art.promo_min|default:0}" />
-        incluse*  (ex : 1980)
-      </td>
-    </tr>
-    <tr id="promo_max"  {if $art.public}style="display: none"{/if}>
-      <td class="titre">Promotion maximale :</td>
-      <td>
-        <input type="text" size="4" maxlength="4" name="promo_max" value="{$art.promo_max|default:0}" />
-        incluse*  (ex : 2000)
-      </td>
-    </tr>
-    <tr class="pair" id="promo_desc"  {if $art.public}style="display: none"{/if}>
-      <td colspan="2">
-        <small>* 0 signifie qu'il n'y a pas de limite</small>
-      </td>
-    </tr>
+    {include file="include/field.promo.tpl" promo_min=$art.promo_min promo_max=$art.promo_max}
+    {if $art.public}
+    <script type="text/javascript">//<![CDATA[
+      document.getElementById('promo_min_tr').style.display = 'none';
+      document.getElementById('promo_max_tr').style.display = 'none';
+      document.getElementById('promo_range_tr').style.display = 'none';
+    //]]></script>
+    {/if}
     {if $new}
     <tr>
       <th colspan="2">Demandes de publication</th>