@@ 2965-2971 (lines=7) @@ | ||
2962 | // User |
|
2963 | if (api_is_allowed_to_session_edit()) { |
|
2964 | if ($this->type == ALL_ON_ONE_PAGE || $nbrQuestions == $questionNum) { |
|
2965 | if ($this->review_answers) { |
|
2966 | $label = get_lang('ReviewQuestions'); |
|
2967 | $class = 'btn btn-success'; |
|
2968 | } else { |
|
2969 | $label = get_lang('EndTest'); |
|
2970 | $class = 'btn btn-warning'; |
|
2971 | } |
|
2972 | } else { |
|
2973 | $label = get_lang('NextQuestion'); |
|
2974 | $class = 'btn btn-primary'; |
|
@@ 2994-3000 (lines=7) @@ | ||
2991 | ||
2992 | $html .= $all_button; |
|
2993 | } else { |
|
2994 | if ($this->review_answers) { |
|
2995 | $all_label = get_lang('ReviewQuestions'); |
|
2996 | $class = 'btn btn-success'; |
|
2997 | } else { |
|
2998 | $all_label = get_lang('EndTest'); |
|
2999 | $class = 'btn btn-warning'; |
|
3000 | } |
|
3001 | $class .= ' question-validate-btn'; // used to select it with jquery |
|
3002 | $all_button = ' <a href="javascript://" class="'.$class.'" onclick="validate_all(); ">'.$all_label.'</a>'; |
|
3003 | $all_button .= ' ' . Display::span(null, ['id' => 'save_all_reponse']); |