adicionado 0 na escal de nota

This commit is contained in:
Luiz Silva 2026-01-05 08:57:14 -03:00
parent 0bbd04ee45
commit e8ca410b94
8 changed files with 72 additions and 15 deletions

View file

@ -1,6 +1,6 @@
{{define "nota_block.html"}}
<div class="eli-nps-scale">
{{range $i := seq 1 10}}
{{range $i := seq 0 10}}
<button
class="eli-nps-btn eli-nps-btn-{{$i}} {{if noteEq $.Reg.Nota $i}}eli-nps-btn-selected{{end}}"
hx-patch="/api/e-li.nps/{{$.Produto}}/{{$.ID}}"