/**
  * RENDER
  */
 public function renderQuestion()
 {
     $respondent = null;
     if ($this->sessionSection->id_respondent !== null) {
         $respondent = $this->respondent_service->get($this->sessionSection->id_respondent);
     }
     $new_question = $this->question_service->generateNewQuestion($respondent);
     if ($new_question === null) {
         $this->sessionSection->cannot_continue = true;
         $this->redirect("Survey:final");
     }
     $this->sessionSection->cannot_final = false;
     $this->new_question_holder = $new_question;
     switch ($new_question->getQuestionType()) {
         case \App\Model\Subquestion::QUESTION_TYPE_WIREFRAME:
             $this->template->id_wireframe = $this->new_question_holder->getPageHolder()->getCurrentWireframe()->id_wireframe;
             $this->template->id_wireframe = $this->new_question_holder->getPageHolder()->getCurrentWireframe()->id_wireframe;
             $this->template->answer_btn = "#frm-wireframeForm-answer";
             break;
         case \App\Model\Subquestion::QUESTION_TYPE_WIREFRAME_SELECT:
             $this->template->id_wireframe = $this->new_question_holder->getPageHolder()->getCurrentWireframe()->id_wireframe;
             $this->template->id_wireframe = $this->new_question_holder->getPageHolder()->getCurrentWireframe()->id_wireframe;
             $this->template->answer_btn = true;
             break;
         case \App\Model\Subquestion::QUESTION_TYPE_WIREFRAME_REVERSE:
             $this->template->page = $this->new_question_holder->getPageHolder();
             $this->template->pages_holders = $this->new_question_holder->getPageRelated()->getPagesRelatedAsArray();
             $this->template->answer_btn = true;
             break;
         case \App\Model\Subquestion::QUESTION_TYPE_COLOR:
             $this->template->color = $this->new_question_holder->getPageHolder()->getPage()->dominant_color;
             $this->template->help_lorem = true;
             $this->template->answer_btn = "#frm-colorForm-answer";
             break;
         case \App\Model\Subquestion::QUESTION_TYPE_COLOR_SELECT:
             $this->template->color = $this->new_question_holder->getPageHolder()->getPage()->dominant_color;
             $this->template->help_lorem = true;
             $this->template->answer_btn = true;
             break;
     }
     if ($this->new_question_holder->getPageHolder()->getCurrentWireframe()->text_mode === \App\Model\Wireframe::TEXT_BOX) {
         $this->template->help_box = true;
     }
     if ($this->new_question_holder->getPageHolder()->getCurrentWireframe()->text_mode === \App\Model\Wireframe::TEXT_LOREM) {
         $this->template->help_lorem = true;
     }
     if ($this->new_question_holder->getPageHolder()->getCurrentWireframe()->image_mode === \App\Model\Wireframe::IMAGE_BLUR) {
         $this->template->help_blur = true;
     }
     if ($this->new_question_holder->getPageHolder()->getCurrentWireframe()->image_mode === \App\Model\Wireframe::IMAGE_BOX) {
         $this->template->help_box = true;
     }
     //        $this->setView($new_question->getQuestionType());
     //   echo $this->subquestion_service->questionTypeToString($new_question->getQuestionType());exit;
     //echo "tst";exit;
     $this->template->type = $this->subquestion_service->questionTypeToString($new_question->getQuestionType());
     $this->template->showAppeal = true;
     $this->template->showHelp = true;
     $this->template->respondent_subquestions_count = $new_question->getRespondentSubquestionsCount();
     $this->template->max_questions_for_respondent_reached = $new_question->getRespondentSubquestionsCount() >= $this->context->getParameters()["max_questions_for_respondent"];
 }