templates/base.html.twig line 1

  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"/>
  6.         <title>{% block title %}HitZone Admin{% endblock %}</title>
  7.         {% block stylesheets %}
  8.             {{ encore_entry_link_tags('app') }}
  9.         {% endblock %}
  10.         {% block javascripts %}
  11.             {{ encore_entry_script_tags('app') }}
  12.         {% endblock %}
  13.     </head>
  14.     <body id="{% block body_id %}{% endblock %}">
  15.         {% block header %}
  16.             {% set _route = app.request.get('_route') %}
  17.             <header>
  18.                 <nav class="navbar navbar-expand-lg fixed-top navbar-dark bg-primary">
  19.                     <div class="container">
  20.                         <a class="navbar-brand" href="{{ path('homepage') }}">
  21.                             HitZone Admin
  22.                         </a>
  23.                         <button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#appNavbar" aria-controls="appNavbar" aria-expanded="false" aria-label="Toggle navigation">
  24.                         <span class="navbar-toggler-icon"></span>
  25.                         </button>
  26.                         {% if app.user %}
  27.                             <div class="navbar-collapse collapse" id="appNavbar">
  28.                                 <ul class="navbar-nav ml-auto">
  29.                                         <li class="nav-item dropdown">
  30.                                             <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" id="user">
  31.                                                 <i class="fa fa-user" aria-hidden="true"></i>
  32.                                                 <span class="caret"></span>
  33.                                                 <span class="sr-only">{{ app.user.fullname }}</span>
  34.                                             </a>
  35.                                             <div class="dropdown-menu user" role="menu" aria-labelledby="user">
  36.                                                 <a class="dropdown-item" href="{{ path('user_edit') }}">
  37.                                                     <i class="fa fa-edit" aria-hidden="true"></i> User
  38.                                                 </a>
  39.                                                 <div class="dropdown-divider"></div>
  40.                                                 <a class="dropdown-item" href="{{ logout_path() }}">
  41.                                                     <i class="fa fa-sign-out" aria-hidden="true"></i> Logout
  42.                                                 </a>
  43.                                             </div>
  44.                                         </li>
  45.                                 </ul>
  46.                             </div>
  47.                         {% endif %}
  48.                     </div>
  49.                 </nav>
  50.             </header>
  51.         {% endblock %}
  52.         <div class="container body-container">
  53.             {% block body %}
  54.                 <div class="row justify-content-center mt-5">
  55.                     <div id="main" class="col-sm-10">
  56.                         {{ include('default/_flash_messages.html.twig') }}
  57.                         {% block main %}{% endblock %}
  58.                     </div>
  59.                 </div>
  60.             {% endblock %}
  61.         </div>
  62.         {% block footer %}
  63.             <footer>
  64.                 <div class="container">
  65.                     <div class="row">
  66.                         <div id="footer-copyright" class="col-md-6">
  67.                             <p>&copy; {{ 'now'|date('Y') }} - HitZone Game</p>
  68.                             <p>Created by KodKodKod Studio</p>
  69.                         </div>
  70.                     </div>
  71.                 </div>
  72.             </footer>
  73.         {% endblock %}
  74.     </body>
  75. </html>