1 {**************************************************************************}
3 {* Copyright (C) 2003-2011 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
6 {* This program is free software; you can redistribute it and/or modify *}
7 {* it under the terms of the GNU General Public License as published by *}
8 {* the Free Software Foundation; either version 2 of the License, or *}
9 {* (at your option) any later version. *}
11 {* This program is distributed in the hope that it will be useful, *}
12 {* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13 {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14 {* GNU General Public License for more details. *}
16 {* You should have received a copy of the GNU General Public License *}
17 {* along with this program; if not, write to the Free Software *}
18 {* Foundation, Inc., *}
19 {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
21 {**************************************************************************}
24 <script id="q_edit_new" type="text/x-jquery-tmpl">
25 <div style="clear: both; padding-top: 1em" class="q_edit" id="q_edit[${qid}]">
27 <span class="q_edit_label" style="font-weight: bold">Question ${qid + 1}</span>
28 (<a onclick="$(this).removeQuestion()" style="text-decoration: none">
29 {/literal}{icon name="delete"}{literal} Supprimer
32 Titre : <input type="text" name="q_edit[${qid}][label]"
33 value="{{if label}}${label}{{/if}}" /><br />
34 Type de question : <select name="q_edit[${qid}][type]">
35 <option value=""></option>
36 <option value="text" {{if type}}{{if type == 'text'}}selected="selected"{{/if}}{{/if}}>Texte</option>
37 <option value="section"{{if type}}{{if type == 'section'}}selected="selected"{{/if}}{{/if}}>Section</option>
39 <div class="q_edit_form">
40 {{tmpl "#q_edit_base"}}
45 <script id="q_edit_base" type="text/x-jquery-tmpl">
47 {{tmpl "#q_edit_" + type}}
51 <script id="q_edit_text" type="text/x-jquery-tmpl">
54 <script id="q_edit_section" type="text/x-jquery-tmpl">
55 <div id="section_${qid}" style="padding-left: 4ex; border-left: 1px solid white">
57 {{tmpl(children) "#q_edit_new"}}
59 <div class="add_question">
60 <a onclick="$(this).addQuestion()" style="text-decoration: none">
61 {/literal}{icon name="add"}{literal} Ajouter une question
68 {* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}