From 85b0b37dccda2852503417434cb3a3a9f87d7a9b Mon Sep 17 00:00:00 2001 From: David Beguin Date: Tue, 12 Mar 2019 16:04:40 +0000 Subject: [PATCH] [IMP] survey : add retry survey button if no scoring or nbr of attempts left > 0 In order to allow the user to ealisy retake the survey he just either passed or failed (in case of scoring activated), a retry button is added not only in case of failed scoring survey (like it was already the case) but also for non scoring survey. This button is also added in the review survey page, to get direct access to retry the survey. The rule is the following and apply to all survey types : If not quizz passed (this will be always true for non scoring survey): if is_attempts_limited if attempts left Add retry button else Add retry button Task ID : 1950429 PR #31802 Signed-off-by: Thibault Delavallee (tde) --- addons/survey/views/survey_templates.xml | 44 +++++++++++++----------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/addons/survey/views/survey_templates.xml b/addons/survey/views/survey_templates.xml index daa8e446718..82c62e9ae8b 100644 --- a/addons/survey/views/survey_templates.xml +++ b/addons/survey/views/survey_templates.xml @@ -41,34 +41,37 @@
Unfortunately, you have failed the test.
- - - -

Number of attemps left:

-

- - Retry - -

-
-
- -
-

- - Retry - -

-
-
If you wish, you can review your answers.
+ +
+ If you wish, you can review your answers +
+ +