confirm.gohtml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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-danger rounded p-3">
  15. <div>
  16. <h3 class="text-danger">{{ .question }}</h3>
  17. </div>
  18. <div class="mt-3">
  19. <p class="fs-4 text">{{ .description }}</p>
  20. </div>
  21. {{ if .list }}
  22. <ul>
  23. {{range .list}}
  24. <li>{{ . }}</li>
  25. {{end}}
  26. </ul>
  27. {{end}}
  28. <form method="post">
  29. <a href="{{ .redirect }}" class="btn btn-outline-dark btn-lg px-4">{{ .cancel }}</a>
  30. <button class="btn btn-warning btn-lg px-5">{{ .confirm }}</button>
  31. <input type="hidden" value="{{ .csrf }}" name="_csrf" />
  32. </form>
  33. </div>
  34. </main>
  35. </body>
  36. <script src="/assets/bootstrap.js"></script>
  37. </html>
  38. {{end}}