$this->store_session($survey);
} else {
$this->clear_session();
- $this->show_form($page, $action, 'root', 'root');
+ $this->show_form($page, $action, 'root', 'newsurvey');
} // }}}
} elseif ($action == 'add') { // {{{ adds a new question
if (Post::has('survey_submit')) { // if the form has been submitted, adds the question
$page->addJsLink('ajax.js');
$page->assign('survey_types', Survey::getTypes());
}
- if ($type == 'root') {
+ if ($type == 'root' || $type == 'newsurvey') {
$page->assign('survey_modes', Survey::getModes());
}
}
// }}}
}
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 ts=4 foldmethod=marker enc=utf-8:
?>
--- /dev/null
+{**************************************************************************}
+{* *}
+{* Copyright (C) 2003-2007 Polytechnique.org *}
+{* http://opensource.polytechnique.org/ *}
+{* *}
+{* This program is free software; you can redistribute it and/or modify *}
+{* it under the terms of the GNU General Public License as published by *}
+{* the Free Software Foundation; either version 2 of the License, or *}
+{* (at your option) any later version. *}
+{* *}
+{* This program is distributed in the hope that it will be useful, *}
+{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
+{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
+{* GNU General Public License for more details. *}
+{* *}
+{* You should have received a copy of the GNU General Public License *}
+{* along with this program; if not, write to the Free Software *}
+{* Foundation, Inc., *}
+{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
+{* *}
+{**************************************************************************}
+
+ <tr>
+ <td colspan='2'>
+ Remplissez ici une description générale du sondage, puis cliquer sur "Continuer"
+ pour passer à l'édition des questions.
+ </td>
+ </tr>
+{include file='survey/edit_root.tpl'}
+
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
{include file="survey/edit_$survey_type.tpl"}
</table>
<div class="center">
- <input type="submit" name="survey_submit" value="Valider"/>
+ <input type="submit" name="survey_submit" value="{if $survey_type == 'newsurvey'}Continuer{else}Valider{/if}"/>
<input type="reset" name="survey_reset" value="Réinitialiser"/>
<input type="submit" name="survey_cancel" value="Annuler"/>
</div>