From 8602c852b5a9f47e54c811253bb9bbc8217af43b Mon Sep 17 00:00:00 2001 From: x2004laborde Date: Sat, 2 Jun 2007 09:31:30 +0000 Subject: [PATCH] survey module : more explicit button for new surveys git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1849 839d8a87-29fc-0310-9880-83ba4fa771e5 --- modules/survey.php | 6 +++--- modules/survey/survey.inc.php | 2 +- templates/survey/edit_newsurvey.tpl | 31 +++++++++++++++++++++++++++++++ templates/survey/edit_survey.tpl | 2 +- 4 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 templates/survey/edit_newsurvey.tpl diff --git a/modules/survey.php b/modules/survey.php index ad3b862..1c8f2ae 100644 --- a/modules/survey.php +++ b/modules/survey.php @@ -271,7 +271,7 @@ class SurveyModule extends PLModule $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 @@ -437,7 +437,7 @@ class SurveyModule extends PLModule $page->addJsLink('ajax.js'); $page->assign('survey_types', Survey::getTypes()); } - if ($type == 'root') { + if ($type == 'root' || $type == 'newsurvey') { $page->assign('survey_modes', Survey::getModes()); } } @@ -475,5 +475,5 @@ class SurveyModule extends PLModule // }}} } -// 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: ?> diff --git a/modules/survey/survey.inc.php b/modules/survey/survey.inc.php index c6df2bf..a42927d 100644 --- a/modules/survey/survey.inc.php +++ b/modules/survey/survey.inc.php @@ -819,5 +819,5 @@ class SurveyCheckboxTable extends SurveyTable // }}} // }}} -// 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: ?> diff --git a/templates/survey/edit_newsurvey.tpl b/templates/survey/edit_newsurvey.tpl new file mode 100644 index 0000000..e07fd90 --- /dev/null +++ b/templates/survey/edit_newsurvey.tpl @@ -0,0 +1,31 @@ +{**************************************************************************} +{* *} +{* 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 *} +{* *} +{**************************************************************************} + + + + Remplissez ici une description générale du sondage, puis cliquer sur "Continuer" + pour passer à l'édition des questions. + + +{include file='survey/edit_root.tpl'} + +{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *} diff --git a/templates/survey/edit_survey.tpl b/templates/survey/edit_survey.tpl index 0c434b6..786218d 100644 --- a/templates/survey/edit_survey.tpl +++ b/templates/survey/edit_survey.tpl @@ -28,7 +28,7 @@ {include file="survey/edit_$survey_type.tpl"}
- +
-- 2.1.4