Minimum hacking to have a working site.
[platal.git] / templates / survey / edit_radio.tpl
index d748420..8b4e1b2 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
       <td class="titre">Choix</td>
       <td>
         {foreach from=$survey_current.choices key=value item=choice}
-        <div id="choice_t{$value}">
-          <input type="text" name="survey_question[options][t{$value}]" size="50" maxlength="200" value="{$choice}" />
-          <a href="javascript:removeChoice('t{$value}')">{icon name=delete title="Supprimer"}</a>
+        <div id="choices_t{$value}">
+          <input type="text" name="survey_question[choices][t{$value}]" size="50" maxlength="200" value="{$choice}" />
+          <a href="javascript:removeField('choices','t{$value}')">{icon name=delete title="Supprimer"}</a>
         </div>
         {/foreach}
-        <div id="choice_last">
-          <a href="javascript:newChoice('last')">{icon name=add}</a>
+        <div id="choices_last">
+          <a href="javascript:newField('choices','last')">{icon name=add}</a>
         </div>
       </td>
     </tr>