confirm.gohtml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {{define "confirm" -}}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8">
  6. <title>Confirmation needed</title>
  7. <link rel="stylesheet" href="/assets/styles.css"/>
  8. <link rel="stylesheet" href="/assets/bootstrap.min.css">
  9. </head>
  10. <body>
  11. <main class="container mt-5">
  12. <h1 class="display-4 py-4">Confirmation needed</h1>
  13. {{ template "flashes" .flashes }}
  14. <div class="border border-{{ .level }} rounded p-3">
  15. {{ if .question }}
  16. <div>
  17. <h3 class="text-{{ .level }}">{{ .question }}</h3>
  18. </div>
  19. {{ end }}
  20. <div class="mt-3">
  21. <p class="fs-4 text">{{ .description }}</p>
  22. </div>
  23. {{ if .list }}
  24. <ul>
  25. {{range .list}}
  26. <li>{{ . }}</li>
  27. {{end}}
  28. </ul>
  29. {{end}}
  30. <form method="post">
  31. <a href="{{ .cancelURL }}" class="btn btn-outline-dark btn-lg px-4">{{ .cancel }}</a>
  32. {{ if .confirm -}}
  33. <button class="btn btn-{{ .level }} btn-lg px-5">{{ .confirm }}</button>{{- end }}
  34. <input type="hidden" value="{{ .csrf }}" name="_csrf"/>
  35. </form>
  36. </div>
  37. </main>
  38. </body>
  39. <script src="/assets/bootstrap.js"></script>
  40. </html>
  41. {{end}}