{**************************************************************************}
{* *}
-{* 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 ts=8 enc=utf-8: *}