The result of the 'remember-me' popup was undefined this the return value of the...
[platal.git] / templates / survey / edit_radio.tpl
index 4558c39..3282556 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2008 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
     {include file='survey/edit_question.tpl'}
     <tr>
       <td class="titre">Choix</td>
-      <td><input type="text" name="survey_question[options]" size="50" maxlength="200" value="{$survey_current.options}"/></td>
+      <td>
+        {foreach from=$survey_current.choices key=value item=choice}
+        <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="choices_last">
+          <a href="javascript:newField('choices', 'last')">{icon name=add}</a>
+        </div>
+      </td>
     </tr>
 
-{* vim:set et sw=2 sts=2 sws=2: *}
-
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}