<html>
|
<head>
|
<title>Questionnaire</title>
|
</head>
|
<body>
|
<h1>Questionnaire</h1>
|
|
<form action="/smartor/svytitle/getFormDate" method="post">
|
<#list questions as question>
|
<h2>${question.title}</h2>
|
|
<#if question.type == "singleChoice">
|
<#list question.options as option>
|
<input type="radio" name="${question.name}" value="${option}" id="${option}">
|
<label for="${option}">${option}</label><br>
|
</#list>
|
</#if>
|
|
<#if question.type == "multipleChoice">
|
<#list question.options as option>
|
<input type="checkbox" name="${question.name}" value="${option}" id="${option}">
|
<label for="${option}">${option}</label><br>
|
</#list>
|
</#if>
|
|
<#if question.type == "openEnded">
|
<textarea name="${question.name}" rows="4" cols="50"></textarea>
|
</#if>
|
|
<br>
|
</#list>
|
|
|
<input type="submit" value="Submit">
|
</form>
|
</body>
|
</html>
|