72 lines
5.0 KiB
Plaintext
72 lines
5.0 KiB
Plaintext
extends layout.pug
|
|
|
|
block append scripts
|
|
script(src="/JS/polyfill.app.js" defer)
|
|
script(src="/JS/group.app.js" defer)
|
|
|
|
block content
|
|
|
|
div(id="content-side")
|
|
div(id="content-title")
|
|
h1(class="cardboard")
|
|
span #{group.title}
|
|
div(id="content-title-corner")
|
|
div(id="content" class="cardboard")
|
|
p(id="author-date") #{txtGroups.publishedBy} #{author}#{txtGroups.publishedAt} #{publishedAtTxt}. #{txtGroups.lastUpdated}#{updatedAtTxt}.
|
|
div#introduction
|
|
if(group.introduction)
|
|
div !{group.introduction}//- Important : ici, on garde volontairement le html, car cela est accepté pour l'introduction.
|
|
div txtGroups.commonIntroTxt
|
|
// - lien vers premier élément du groupe
|
|
div#links
|
|
a(href=="/"+configQuestionnaires.dirdirWebQuestionnaires+group.Questionnaires[0].slug+".html" class="button cardboard" title=txtGroups.linkFirstElementGroup) #{txtGroups.linkFirstElementGroup}
|
|
div#licence
|
|
p !{configTpl.groupLicenceTxt}
|
|
|
|
noscript
|
|
div
|
|
strong #{configTpl.noJSNotification}
|
|
|
|
form(id="group" method="POST" class="needJS")
|
|
h2 #{group.title}
|
|
div#response
|
|
div(class="subscribeBtns")
|
|
p
|
|
a(class="button cardboard" href=configTpl.subscribePage) #{txtGeneral.btnProposeSubscribe}
|
|
p
|
|
a(class="button cardboard" href=configTpl.connectionPage) #{txtGeneral.btnProposeConnection}
|
|
for questionnaire in group.Questionnaires
|
|
for question in questionnaire.Questions
|
|
p(id="question_"+question.Question.id) #{question.Question.text}
|
|
if(question.Question.explanation)
|
|
blockquote(class="help" id="help_"+question.Question.id cite=group.Links[0].url) #{txtexplanationBeforeTxt} #{question.Question.explanation}
|
|
ul(class="checkbox_li")
|
|
for response in question.Choices
|
|
li(class="checkbox_li")
|
|
label(class="check" for="response_"+response.id)
|
|
input(type="checkbox" name="response_"+response.id id="response_"+response.id)
|
|
div(class="checkbox_override")
|
|
span(class="wrongResponse")
|
|
img(src="/themes/wikilerni/img/wrong-min.png" title=txtGroups.wrongAnswerTxt)
|
|
span(class="rightResponse")
|
|
img(src="/themes/wikilerni/img/correct-min.png" title=txtGroups.correctAnswerTxt)
|
|
em #{response.text}
|
|
input(type="hidden" name="isCorrect_response_"+response.id id="isCorrect_response_"+response.id value=""+response.isCorrect)
|
|
input(type="hidden" name="question_id_response_"+response.id id="question_id_response_"+response.id value=question.Question.id)
|
|
input(name="groupId" id="groupId" value=group.id type="hidden")
|
|
p
|
|
span(class="input_wrapper")
|
|
input(id="checkResponses" type="submit" value=txtGroups.btnSendResponse class="cardboard" title=txtGroups.btnSendResponse)
|
|
|
|
div#zerozozio
|
|
a(href="http://sharetodiaspora.github.io/?url="+linkCanonical+"&title="+group.title rel="nofollow noopener" title=txtGroups.btnShareQuizTxt+" diaspora* ("+txtGeneral.alertNewWindow+")" target="_blank")
|
|
img(src="/themes/wikilerni/img/diaspora.png" alt=txtGroups.btnShareQuizTxt+" diaspora*")
|
|
a(href="https://www.facebook.com/sharer.php?u="+linkCanonical rel="nofollow noopener" title=txtGroups.btnShareQuizTxt+" facebook ("+txtGeneral.alertNewWindow+")" target="_blank")
|
|
img(src="/themes/wikilerni/img/facebook.png" alt=txtGroups.btnShareQuizTxt+" facebook")
|
|
a(href="https://twitter.com/intent/tweet?url="+linkCanonical+"&text="+group.title+" via @"+configTpl.twitterAccount rel="nofollow noopener" title=txtGroups.btnShareQuizTxt+" twitter ("+txtGeneral.alertNewWindow+")" target="_blank")
|
|
img(src="/themes/wikilerni/img/twitter.png" alt=txtGroups.btnShareQuizTxt+" twitter")
|
|
|
|
div#explanations(class="engraved framed")
|
|
h3#explanationsTitle #{configTpl.explanationTitle}
|
|
div#explanationsContent
|
|
p !{configTpl.explanationTxt} |