Ajout mise à disposition des mots-clés pour enregistrement dans la base de données IndexedDB.

This commit is contained in:
Fabrice PENHOËT 2022-03-23 19:00:01 +01:00
parent b4c6a9d440
commit 85ed8e313a
2 changed files with 8 additions and 3 deletions

View File

@ -17,6 +17,11 @@ block content
} }
const publishedAtTxt=tool.dateFormat(group.Group.publishingAt, group.Group.language); const publishedAtTxt=tool.dateFormat(group.Group.publishingAt, group.Group.language);
const updatedAtTxt=tool.dateFormat(group.Group.updatedAt, group.Group.language); const updatedAtTxt=tool.dateFormat(group.Group.updatedAt, group.Group.language);
group.keywords="";
for(const questionnaire of group.Questionnaires)
{
group.keywords+=questionnaire.Questionnaire.keywords+",";
}
if(group.Questionnaires.length !==0 && group.Questionnaires[0].Illustrations!=undefined && group.Questionnaires[0].Illustrations.length!==0) if(group.Questionnaires.length !==0 && group.Questionnaires[0].Illustrations!=undefined && group.Questionnaires[0].Illustrations.length!==0)
div(id="content-picture" class="cardboard") div(id="content-picture" class="cardboard")
@ -41,7 +46,7 @@ block content
noscript noscript
div div
strong #{configTpl.noJSNotification} strong #{configTpl.noJSNotification}
form(id="quiz" method="POST" data-title=group.Group.title) form(id="quiz" method="POST" data-title=group.Group.title data-keywords=group.keywords)
h2 #{group.Group.title} h2 #{group.Group.title}
div#response div#response
div(id="propose2Save" class="needJS") div(id="propose2Save" class="needJS")

View File

@ -52,7 +52,7 @@ block content
noscript noscript
div div
strong #{configTpl.noJSNotification} strong #{configTpl.noJSNotification}
form(id="quiz" method="POST" class="needJS" data-title=questionnaire.Questionnaire.title) form(id="quiz" method="POST" class="needJS" data-title=questionnaire.Questionnaire.title data-keywords=questionnaire.Questionnaire.keywords)
h2 #{questionnaire.Questionnaire.title} h2 #{questionnaire.Questionnaire.title}
div#response div#response
div(id="propose2Save" class="needJS") div(id="propose2Save" class="needJS")