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
18
web/templates/form_inner.html
Normal file
18
web/templates/form_inner.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{{define "form_inner.html"}}
|
||||
{{/* This block can be swapped by HTMX (target #eli-nps-modal-body) */}}
|
||||
{{if eq .Reg.Status "respondido"}}
|
||||
<div class="eli-nps-ok">
|
||||
<p class="eli-nps-title">Obrigado!</p>
|
||||
<p class="eli-nps-sub">Sua resposta foi registrada. Você pode editar se quiser.</p>
|
||||
{{template "edit_block.html" .}}
|
||||
</div>
|
||||
{{else}}
|
||||
<p class="eli-nps-title">De 1 a 10, quanto você recomenda {{if .Reg.ProdutoNome}}{{.Reg.ProdutoNome}}{{else}}{{produtoLabel .Produto}}{{end}} para um amigo?</p>
|
||||
{{template "nota_block.html" .}}
|
||||
{{if .Reg.Nota}}
|
||||
{{template "justificativa_block.html" .}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
<p class="eli-nps-foot">e-li.nps • produto: {{if .Reg.ProdutoNome}}{{.Reg.ProdutoNome}}{{else}}{{.Produto}}{{end}} • id: {{.ID}}</p>
|
||||
{{end}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue