primeira versão do e-li-nps construido com IA
This commit is contained in:
commit
06950d6e2c
34 changed files with 2524 additions and 0 deletions
14
web/templates/nota_block.html
Normal file
14
web/templates/nota_block.html
Normal 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}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue