You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bootstrapbase.html 2.6KB

1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport">
  6. <title>{% block title %} Platzhalter {% endblock %}</title>
  7. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
  8. </head>
  9. <body>
  10. <nav class="navbar navbar-expand-lg bg-body-tertiary">
  11. <div class="container-fluid">
  12. <a class="navbar-brand" href="#">Navbar</a>
  13. <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  14. <span class="navbar-toggler-icon"></span>
  15. </button>
  16. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  17. <ul class="navbar-nav me-auto mb-2 mb-lg-0">
  18. <li class="nav-item">
  19. <a class="nav-link active" aria-current="page" href="#">Home</a>
  20. </li>
  21. <li class="nav-item">
  22. <a class="nav-link" href="#">Link</a>
  23. </li>
  24. <li class="nav-item dropdown">
  25. <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
  26. Dropdown
  27. </a>
  28. <ul class="dropdown-menu">
  29. <li><a class="dropdown-item" href="#">Action</a></li>
  30. <li><a class="dropdown-item" href="#">Another action</a></li>
  31. <li><hr class="dropdown-divider"></li>
  32. <li><a class="dropdown-item" href="#">Something else here</a></li>
  33. </ul>
  34. </li>
  35. <li class="nav-item">
  36. <a class="nav-link disabled" aria-disabled="true">Disabled</a>
  37. </li>
  38. </ul>
  39. <form class="d-flex" role="search">
  40. <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
  41. <button class="btn btn-outline-success" type="submit">Search</button>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. {% for message in messages %}
  47. <div class="alert {{ message.tags }}" role="alert">
  48. {{ message }}
  49. </div>
  50. {% endfor %}
  51. <div class="container">
  52. {% block content %} Platzhalter {% endblock %}
  53. {% if user.is_authenticated %}
  54. <a href="{% url 'logout' %}" class="btn btn-primary">Abmelden</a>
  55. {% endif %}
  56. {% block login %} {% endblock %}
  57. </div>
  58. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
  59. </body>
  60. </html>