templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <title>{% block title %}Welcome{% endblock %}</title>
  7. {% block stylesheets %}
  8. {{ encore_entry_link_tags('app') }}
  9. <link rel="stylesheet" href="https://use.typekit.net/fdo2ytl.css">
  10. {% endblock %}
  11. {% block javascripts %}
  12. {{ encore_entry_script_tags('app') }}
  13. {% endblock %}
  14. </head>
  15. <body id="{% block pageId %}none{% endblock %}" data-bs-spy="scroll" data-bs-target="#main_navbar" data-bs-offset="240" tabindex="0">
  16. <section class="content-wrapper">
  17. <header id="main_header" class="sticky-top">
  18. <div id="hdr_bkgrnd">
  19. <!-- User Menu Wrapper -->
  20. <div class="user-menu-wrapper my-auto w-1200">
  21. <!-- User Menu -->
  22. <ul class="nav nav-pills me-auto mb-0 justify-content-end">
  23. {% if logged_in is defined and logged_in %}
  24. <li class="nav-item">
  25. <a class="nav-link" href="{{ path('reference_library') }}">
  26. Reference Library
  27. </a>
  28. </li>
  29. <li class="navbar-text logged-in dropdown-toggle" id="dropdownMenuLink"
  30. data-bs-toggle="dropdown" aria-expanded="false">Welcome, {{ user.username|split(' ')[0] }}</li>
  31. <ul class="dropdown-menu" aria-labelledby="dropdownMenuLink">
  32. <li><a class="dropdown-item" href="{{ path('api_logout') }}">Logout</a></li>
  33. </ul>
  34. {% else %}
  35. <li class="nav-item login">
  36. <a class="nav-link" data-bs-toggle="modal" data-bs-target="#modalLogin">Login</a>
  37. </li>
  38. {% endif %}
  39. </ul>
  40. <!-- User Menu -->
  41. </div>
  42. <!-- User Menu Wrapper -->
  43. <!-- Jumbotron -->
  44. <div class="header-wrapper text-center">
  45. <a class="logo-link w-auto" href="{{ path('home') }}">
  46. <img alt="logo" height="125" src="{{ asset('build/images/Dairy-Office-Logo-1500px.png') }}">
  47. </a>
  48. <!-- Navbar -->
  49. <nav id="main_navbar" class="navbar navbar-default navbar-fixed-top">
  50. <ul class="nav nav-pills mx-auto nav-fill">
  51. {% block main_navbar %}
  52. <li class="nav-item">
  53. <a class="nav-link" aria-current="page" href="{{ path('home') }}#home">Home</a>
  54. </li>
  55. <li class="nav-item">
  56. <a class="nav-link" href="{{ path('home') }}#platform">Platform</a>
  57. </li>
  58. <li class="nav-item">
  59. <a class="nav-link" href="{{ path('home') }}#features">Features</a>
  60. </li>
  61. <li class="nav-item">
  62. <a class="nav-link" href="{{ path('home') }}#getting_started">Getting Started</a>
  63. </li>
  64. <li class="nav-item">
  65. <a class="nav-link" href="{{ path('home') }}#contact">Contact</a>
  66. </li>
  67. {% endblock %}
  68. </ul>
  69. </nav>
  70. <!-- Navbar -->
  71. </div>
  72. <!-- Jumbotron -->
  73. </div>
  74. </header>
  75. {% for label, messages in app.flashes %}
  76. {% for message in messages %}
  77. <div class="alert alert-{{ label }} w-50 mx-auto mt-2 text-center">
  78. {% if message is iterable %}
  79. {{ message|last }}
  80. {% else %}
  81. {{ message }}
  82. {% endif %}
  83. </div>
  84. {% endfor %}
  85. {% endfor %}
  86. <div id="main_content" class="main-content w-100">
  87. {% block body %}{% endblock %}
  88. </div>
  89. <!-- Modal -->
  90. <div class="modal fade" id="modalLogin" tabindex="-1" aria-labelledby="loginModalLabel" aria-hidden="true">
  91. <div class="modal-dialog">
  92. <div class="modal-content">
  93. <div class="modal-header">
  94. <h5 class="modal-title" id="loginModalLabel">Login</h5>
  95. <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  96. </div>
  97. <div class="modal-body">
  98. <form method="POST" action="{{ path('api_login') }}">
  99. <div class="mb-3">
  100. <label for="username" class="form-label">Email Address</label>
  101. <input type="text" class="form-control" id="username" name="username" placeholder="Username" />
  102. </div>
  103. <div class="mb-3">
  104. <label for="password" class="form-label">Password</label>
  105. <input type="password" class="form-control" id="password" name="password" placeholder="Password" />
  106. </div>
  107. <div class="mb-3 form-check">
  108. <input type="checkbox" class="form-check-input" id="rememberMe" />
  109. <label class="form-check-label" for="rememberMe">Remember me</label>
  110. </div>
  111. <div class="modal-footer d-block">
  112. <button type="submit" class="btn btn-warning float-end">Submit</button>
  113. </div>
  114. </form>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. {% if token is defined %}
  120. <input type="hidden" id="token" value="{{ token }}" />
  121. {% endif %}
  122. </section>
  123. <footer id="main_footer">
  124. <section class="container">
  125. <div class="row">
  126. <div class="col-md-4 text-center fw-bold fst-italic my-auto text-uppercase poweredby-wrapper">
  127. Powered by <img class="dairy-api-logo" alt="dairy-api-logo" src="{{ asset('build/images/Dairy-API-Logo-110x1115.png') }}">
  128. </div>
  129. <div class="col-md-4 text-center my-auto">
  130. <a class="email-link" href="mailto:info@dairyoffice.com">info@DairyOffice.com</a>
  131. </div>
  132. <div class="col-md-4 text-center my-auto">
  133. <img class="facticity-logo" alt="facticity-logo" src="{{ asset('build/images/facticity-logo.png') }}">
  134. </div>
  135. </div>
  136. </section>
  137. </footer>
  138. </body>
  139. </html>