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.

base.html 2.6KB

11 months ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. <div class="container">
  47. {% block content %} Platzhalter {% endblock %}
  48. {% if user.is_authenticated %}
  49. <a href="{% url 'logout' %}" class="btn btn-primary">Abmelden</a>
  50. {% endif %}
  51. {% if not user.is_authenticated %}
  52. <a href="{% url 'login' %}" class="btn btn-primary">Anmelden</a>
  53. {% endif %}
  54. </div>
  55. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
  56. </body>
  57. </html>