Add editor option to display/hide the retry button for set

pull/39/head
otacke 2019-04-06 10:30:05 +02:00
parent 841b43d725
commit 9dc2d7028c
34 changed files with 115 additions and 8 deletions

View File

@ -59,7 +59,8 @@ H5P.QuestionSet = function (options, contentId, contentData) {
retryButtonText: 'Retry',
showAnimations: false,
skipButtonText: 'Skip video',
showSolutionButton: true
showSolutionButton: true,
showRetryButton: true
},
override: {},
disableBackwardsNavigation: false
@ -111,6 +112,10 @@ H5P.QuestionSet = function (options, contentId, contentData) {
' <button type="button" class="h5p-joubelui-button h5p-button qs-solutionbutton"><%= solutionButtonText %></button>':
'';
const retryButtonTemplate = params.endGame.showRetryButton ?
' <button type="button" class="h5p-joubelui-button h5p-button qs-retrybutton"><%= retryButtonText %></button>':
'';
var resulttemplate =
'<div class="questionset-results">' +
' <div class="greeting"><%= message %></div>' +
@ -126,7 +131,7 @@ H5P.QuestionSet = function (options, contentId, contentData) {
' <% } %>' +
' <div class="buttons">' +
solutionButtonTemplate +
' <button type="button" class="h5p-joubelui-button h5p-button qs-retrybutton"><%= retryButtonText %></button>' +
retryButtonTemplate +
' </div>' +
'</div>';

View File

@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
{
"label": "Display retry button"
},
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",

View File

@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
{
"label": "Display retry button"
},
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",

View File

@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
{
"label": "Display retry button"
},
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",

View File

@ -129,6 +129,9 @@
{
"label": "Napomena ako nema rezultata"
},
{
"label": "Display retry button"
},
{
"label": "Oznaka za povratne informacije",
"description": "Ovaj tekst će biti prikazan na kraju kviza kada korisnik odgovori na pitanja.",

View File

@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
{
"label": "Display retry button"
},
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",

View File

@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
{
"label": "Display retry button"
},
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",

View File

@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
{
"label": "Display retry button"
},
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",

View File

@ -129,6 +129,9 @@
{
"label": "Den \"Lösung zeigen\"-Button anzeigen"
},
{
"label": "Display retry button"
},
{
"label": "Nachricht bei keinen Ergebnissen",
"description": "Text, der auf der Endseite angezeigt wird, wenn \"Lösung zeigen\" deaktiviert ist",

View File

@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
{
"label": "Display retry button"
},
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",

View File

@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
{
"label": "Display retry button"
},
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",

View File

@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
{
"label": "Display retry button"
},
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",

View File

@ -129,6 +129,9 @@
{
"label": "Bistaratu soluzioaren botoia"
},
{
"label": "Display retry button"
},
{
"label": "Emaitzarik ez mezua",
"description": "Orriaren bukaeran bistaratzen den testua \"Bistaratu emaitzak\" desgaituta dagoenean",

View File

@ -129,6 +129,9 @@
{
"label": "Salli painike \"Katso vastaus\""
},
{
"label": "Display retry button"
},
{
"label": "Teksti kun ei tuloksia",
"description": "Teksti näytetään, kun \"Näytä tulokset\" ei ole valittuna",

View File

@ -129,6 +129,9 @@
{
"label": "Afficher le bouton \"Solution\"."
},
{
"label": "Display retry button"
},
{
"label": "Message si pas de résultats",
"description": "Texte affiché sur la page finale si l'option \"Afficher les résultats\" est désactivée.",

View File

@ -129,6 +129,9 @@
{
"label": "כפתור הצגת הפתרון"
},
{
"label": "Display retry button"
},
{
"label": "אין הודעת תוצאות",
"description": "תוכן מוצג בסוף העמוד כאשר מוצג \"הציגו תוצאות\"",

View File

@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
{
"label": "Display retry button"
},
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",

View File

@ -129,6 +129,9 @@
{
"label": "Pulsante visualizza soluzione"
},
{
"label": "Display retry button"
},
{
"label": "Messaggio di nessun risultato",
"description": "Testo visualizzato nella pagina finale quando \"Visualizza risultati\" è disattivato",

View File

@ -129,6 +129,9 @@
{
"label": "解ボタンを表示"
},
{
"label": "Display retry button"
},
{
"label": "結果のメッセージはありません",
"description": "「結果を表示」が無効のとき最後のページにに表示されるテキスト",

View File

@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
{
"label": "Display retry button"
},
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",

View File

@ -129,6 +129,9 @@
{
"label": "Vis resultatknapp"
},
{
"label": "Display retry button"
},
{
"label": "Melding når resultater ikke vises",
"description": "Teksten vises på avslutnings-siden når resultater ikke vises",

View File

@ -129,6 +129,9 @@
{
"label": "Toon de oplossings-knop"
},
{
"label": "Display retry button"
},
{
"label": "Geen resultaten bericht",
"description": "De getoonde tekst op de eindpagina wanneer \"Toon resultaten\" is uitgeschakeld",

View File

@ -129,6 +129,9 @@
{
"label": "Vis resultatknapp"
},
{
"label": "Display retry button"
},
{
"label": "Melding når resultater ikke vises",
"description": "Teksten vises på avslutnings-siden når resultater ikke vises",

View File

@ -129,6 +129,9 @@
{
"label": "Przycisk wyświetlania wyników"
},
{
"label": "Display retry button"
},
{
"label": "Informacja dla braku wyników",
"description": "Tekst wyświetlany na ekranie końcowym, gdy wyłączona jest opcja \"Pokaż wyniki\"",

View File

@ -129,6 +129,9 @@
{
"label": "Mostrar botão de solução"
},
{
"label": "Display retry button"
},
{
"label": "Mensagem quando não existem resultados",
"description": "Textos a exibir no final da página quando \"Mostrar resultados\" está desabilitado",

View File

@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
{
"label": "Display retry button"
},
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",

View File

@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
{
"label": "Display retry button"
},
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",

View File

@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
{
"label": "Display retry button"
},
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",

View File

@ -129,6 +129,9 @@
{
"label": "Visa rätt svar-knapp"
},
{
"label": "Display retry button"
},
{
"label": "Meddelande vid inget resultat",
"description": "Text som visas på slutsida när \"Visa resultat\" är inaktiverat",

View File

@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
{
"label": "Display retry button"
},
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",

View File

@ -129,6 +129,9 @@
{
"label": "Display solution button"
},
{
"label": "Display retry button"
},
{
"label": "No results message",
"description": "Text displayed on end page when \"Display results\" is disabled",

View File

@ -129,6 +129,9 @@
{
"label": "顯示查看解法功能鈕"
},
{
"label": "Display retry button"
},
{
"label": "沒有結果顯示資訊",
"description": "當未啟用顯示結果時,結束頁面所顯示的文字",

View File

@ -129,6 +129,9 @@
{
"label": "顯示正解按鈕"
},
{
"label": "Display retry button"
},
{
"label": "不顯示測驗結果時的訊息",
"description": "若沒有勾選「顯示測驗結果」,在結束頁面上會顯示的文字。",

View File

@ -261,6 +261,12 @@
"label": "Display solution button",
"default": true
},
{
"name": "showRetryButton",
"type": "boolean",
"label": "Display retry button",
"default": true
},
{
"name": "noResultMessage",
"type": "text",