</script>
<script id="q_edit_section" type="text/x-jquery-tmpl">
+ <div>
+ Type de section :
+ <select name="q_edit[${qid}][subtype]">
+ <option value="group" {{if subtype}}{{if subtype == 'group'}}selected="selected"{{/if}}{{/if}}>
+ Groupe de questions
+ </option>
+ <option value="page" {{if subtype}}{{if subtype == 'page'}}selected="selected"{{/if}}{{/if}}>
+ Nouvelle page
+ </option>
+ </select>
+ </div>
<div id="q_edit[${qid}][section]">
<div class="add_question">
<a onclick="$(this).addQuestion()" style="text-decoration: none">
<div>
Permettre la sélection de plusieurs réponses ?
<select name="q_edit[${qid}][subtype]">
- <option value="checkbox">Oui</option>
- <option value="radio" selected="selected">Non</option>
+ <option value="checkbox" {{if subtype}}{{if subtype == 'checkbox'}}selected="selected"{{/if}}{{/if}}>
+ Oui
+ </option>
+ <option value="radio" {{if subtype}}{{if subtype == 'radio'}}selected="selected"{{/if}}{{/if}}>
+ Non
+ </option>
</select>
</div>
<div class="add_answer">
<div>
Ajouter une case Autre ?
<select name="q_edit[${qid}][allow_other]">
- <option value="1">Oui</option>
- <option value="" selected="selected">Non</option>
+ <option value="1" {{if $item.allow_other}}selected="selected"{{/if}}>Oui</option>
+ <option value="" {{if !$item.allow_other}}selected="selected"{{/if}}>Non</option>
</select>
</div>
</div>
<a onclick="$(this).multiple_removeAnswer()">{/literal}{icon name="delete"}{literal}</a>
</div>
</script>
-
{/literal}
{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}