2022-02-18 18:17:03 +01:00
|
|
|
{{ $formId := .Params.id }}
|
|
|
|
<div class="forms">
|
2022-03-15 00:50:28 +01:00
|
|
|
<form class="form" id="fullpage" data-id="{{ $formId }}">
|
|
|
|
{{ range $index, $question := .Params.questions }}
|
|
|
|
{{ with $question }}
|
|
|
|
<div class="section section{{ $index }}">
|
2022-02-18 18:17:03 +01:00
|
|
|
<legend>{{ .title }}</legend>
|
|
|
|
{{ $questionId := .id }}
|
|
|
|
{{ range .answers }}
|
2022-03-15 00:50:28 +01:00
|
|
|
<div class="choice">
|
2022-02-18 18:17:03 +01:00
|
|
|
<label>
|
2022-03-15 00:50:28 +01:00
|
|
|
<input type="radio" name="form_{{ $formId }}-question_{{ $questionId }}" value="{{ .weight }}" onclick="setTimeout(function(){fullpage_api.moveSectionDown()}, 300)"> {{ .title }}
|
2022-02-18 18:17:03 +01:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2022-03-15 00:50:28 +01:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2022-02-18 18:17:03 +01:00
|
|
|
{{ end }}
|
|
|
|
|
2022-03-15 00:50:28 +01:00
|
|
|
<div class="scores section section{{ len .Params.questions }}">
|
2022-02-18 18:17:03 +01:00
|
|
|
{{ range .Params.results }}
|
|
|
|
<div class="score" data-min="{{ .min }}" data-max="{{ .max }}">
|
|
|
|
Score : <span class="score_{{ $formId }}"></span><br>
|
|
|
|
Facteur de sécurité : {{ .facteur }}<br>
|
|
|
|
Effets sur la capacité de charge : {{ .effets }}<br>
|
|
|
|
Probabilité d'échec (PdE) : {{ .pde }}<br>
|
|
|
|
PdE QTRA : {{ .pde_qtra }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2022-03-15 00:50:28 +01:00
|
|
|
</div>
|
2022-02-18 18:17:03 +01:00
|
|
|
</form>
|
|
|
|
</div>
|