primeira versão do e-li-nps construido com IA

This commit is contained in:
Luiz Silva 2025-12-31 11:18:20 -03:00
commit 06950d6e2c
34 changed files with 2524 additions and 0 deletions

View file

@ -0,0 +1,14 @@
{{define "nota_block.html"}}
<div class="eli-nps-scale">
{{range $i := seq 1 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}}"
hx-target="#eli-nps-modal-body"
hx-swap="innerHTML"
hx-ext="json-enc"
hx-vals='{"nota":{{$i}}}'
>{{$i}}</button>
{{end}}
</div>
{{end}}