feat: design
This commit is contained in:
@ -1,21 +1,23 @@
|
||||
{{ $formId := .Params.id }}
|
||||
<div class="forms">
|
||||
<h2>{{ .Title }}</h2>
|
||||
<form class="form" data-id="{{ $formId }}">
|
||||
{{ range .Params.questions }}
|
||||
<fieldset>
|
||||
<form class="form" id="fullpage" data-id="{{ $formId }}">
|
||||
{{ range $index, $question := .Params.questions }}
|
||||
{{ with $question }}
|
||||
<div class="section section{{ $index }}">
|
||||
<legend>{{ .title }}</legend>
|
||||
{{ $questionId := .id }}
|
||||
{{ range .answers }}
|
||||
<div>
|
||||
<div class="choice">
|
||||
<label>
|
||||
<input type="radio" name="form_{{ $formId }}-question_{{ $questionId }}" value="{{ .weight }}"> {{ .title }}
|
||||
<input type="radio" name="form_{{ $formId }}-question_{{ $questionId }}" value="{{ .weight }}" onclick="setTimeout(function(){fullpage_api.moveSectionDown()}, 300)"> {{ .title }}
|
||||
</label>
|
||||
</div>
|
||||
{{ end }}
|
||||
</fieldset>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<div class="scores section section{{ len .Params.questions }}">
|
||||
{{ range .Params.results }}
|
||||
<div class="score" data-min="{{ .min }}" data-max="{{ .max }}">
|
||||
Score : <span class="score_{{ $formId }}"></span><br>
|
||||
@ -25,5 +27,6 @@
|
||||
PdE QTRA : {{ .pde_qtra }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user