@for (int i = 0; i < Model.Questions.Count; i++)
{
var question = Model.Questions[i];
@for (int j = 0; j < question.Answers.Count; j++)
{
var answer = question.Answers[j];
@(i + 1). @question.Text
@switch (question.Type)
{
case QuestionType.Text:
@foreach (var answer in question.Answers)
{
}
break;
case QuestionType.CheckBox:
case QuestionType.Multiple_choice:
case QuestionType.Demographic:
break;
case QuestionType.TrueFalse:
break;
case QuestionType.Open_ended:
@foreach (var answer in question.Answers)
{
}
break;
case QuestionType.Slider:
@foreach (var answer in question.Answers)
{
}
break;
case QuestionType.Rating:
@foreach (var answer in question.Answers)
{
}
break;
case QuestionType.Ranking:
drag and drop to move the answers
@{
int index = 1;
}
@foreach (var answer in question.Answers)
{
-
@index. @answer.Text
index++;
}
break;
case QuestionType.Likert:
break;
case QuestionType.Matrix:
break;
case QuestionType.Image:
@foreach (var answer in question.Answers)
{
}
break;
default:
Unsupported question type.
break;
}
@if (i > 0)
{
}
@if (i < Model.Questions.Count - 1)
{
}