index.tmpl.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {{ define "index" }}
  2. <!DOCTYPE html>
  3. <html lang="ru">
  4. <head>
  5. <title>WarTank</title>
  6. <meta charset="utf-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <link href="/static/bootstrap5/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
  9. <script src="/static/bootstrap5/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
  10. <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/brython@3.11.0/brython.min.js">
  11. </script>
  12. <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/brython@3.11.0/brython_stdlib.js">
  13. </script>
  14. </head>
  15. <body onload="brython({debug:1})">
  16. <h1>WarTank</h1>
  17. <div class="container">
  18. <h2>Список танков</h2>
  19. <div class="btn-group" role="group" aria-label="Управление списком">
  20. <button type="button" id="bot_list_update" class="btn btn-primary">Обновить</button>
  21. <button type="button" id="bot_list_add" class="btn btn-primary">Добавить</button>
  22. </div>
  23. <div class="container" id="bot_list">
  24. </div>
  25. <div class="container" id="bot_list_new">
  26. <!-- Форма для добавления нового бота -->
  27. </div>
  28. </div>
  29. <script type="text/python" src="/static/bry/index.py"></script>
  30. </body>
  31. </html>
  32. {{ end }}