templates/navbar.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <body>
  4.         <div class="navigation-cat-main-menu navbar" >
  5.                    
  6.             {% for category in categories  %}
  7.                         <form method="post">
  8.                             <input type="hidden" name="category"  value={{category.id}}/>
  9.                             <input type="hidden" name="_csrf_token"
  10.                             value="{{ csrf_token('authenticate') }}">
  11.                             <button type="submit" class="btn btn-light main-button  " formaction="/home">{{category.nom}}</button>
  12.                           </form>
  13.             {% endfor %}
  14.             </div>
  15.     
  16.     </body>
  17. </html>
  18.