templates/bo/home/home.html.twig line 1

Open in your IDE?
  1. {% extends 'bo/base.html.twig' %}
  2. {% block title %}Bo - Home{% endblock %}
  3. {% set  pageTitle = 'Home' %}
  4. {% block stylesheets %}{% endblock %}
  5. {% block body %}
  6.     {% include "bo/layout/_page_header.html.twig" with {'pageTitle' : 'Home'} %}
  7.     <!-- Start::row-1 -->
  8.     <div>
  9.         <div class="row">
  10.             <p>Utilisateurs</p>
  11.             {% include 'bo/home/_widget_card.html.twig' with { 'widgetTitle' : "Utilisateurs", 'widgetRouteQuery' : '',  'widgetNumber' : statistics.usersCount, 'widgetRouteLink' : 'bo_user_index',  'widgetIncrease' : '',  'bootstrapIconName' : 'people-fill',  'bootstrapIconColor' : 'success'} %}
  12.         </div>
  13.         <div class="row">
  14.             <p>Entreprises</p>
  15.             {% include 'bo/home/_widget_card.html.twig' with { 'widgetTitle' : "Nouvelles entreprises", 'widgetRouteQuery' : constant('App\\Entity\\Company::STATUS_NEW'),  'widgetNumber' : statistics.newCompaniesCount, 'widgetRouteLink' : 'bo_company_index',  'widgetIncrease' : '',  'bootstrapIconName' : 'bookmark-fill',  'bootstrapIconColor' : 'info'} %}
  16.             {% include 'bo/home/_widget_card.html.twig' with { 'widgetTitle' : "Entreprises revendiquées", 'widgetRouteQuery' : constant('App\\Entity\\Company::STATUS_CLAIMED'), 'widgetNumber' : statistics.claimedCompaniesCount, 'widgetRouteLink' : 'bo_company_index',  'widgetIncrease' : '',  'bootstrapIconName' : 'bookmark-plus-fill',  'bootstrapIconColor' : 'primary'} %}
  17.             {% include 'bo/home/_widget_card.html.twig' with { 'widgetTitle' : "Entreprises validées", 'widgetRouteQuery' : constant('App\\Entity\\Company::STATUS_VALIDATED'), 'widgetNumber' : statistics.validatedCompaniesCount, 'widgetRouteLink' : 'bo_company_index',  'widgetIncrease' : '',  'bootstrapIconName' : 'bookmark-check-fill',  'bootstrapIconColor' : 'success'} %}
  18.         </div>
  19.         <div class="row">
  20.             <p>Alertes</p>
  21.             {% include 'bo/home/_widget_card.html.twig' with { 'widgetTitle' : "Alertes actives", 'widgetRouteQuery' : constant('App\\Entity\\Alert::ALERT_STATUS_VALIDATED'),  'widgetNumber' : statistics.activeAlertsCount, 'widgetRouteLink' : 'bo_alert_index', 'widgetIncrease' : '',  'bootstrapIconName' : 'chat-square-dots-fill',  'bootstrapIconColor' : 'success'} %}
  22.             {% include 'bo/home/_widget_card.html.twig' with { 'widgetTitle' : "Alertes à valider", 'widgetRouteQuery' : constant('App\\Entity\\Alert::ALERT_STATUS_NEW'),  'widgetNumber' : statistics.newAlertsCount, 'widgetRouteLink' : 'bo_alert_index', 'widgetIncrease' : '',  'bootstrapIconName' : 'chat-square-dots-fill',  'bootstrapIconColor' : 'info'} %}
  23.         </div>
  24.         <div class="row">
  25.             <p>Posts</p>
  26.             {% include 'bo/home/_widget_card.html.twig' with { 'widgetTitle' : "Articles en ligne", 'widgetRouteQuery' : constant('App\\Entity\\Post::TYPE_ARTICLE'),  'widgetNumber' : statistics.activeArticlesCount, 'widgetRouteLink' : 'bo_post_index',  'widgetIncrease' : '',  'bootstrapIconName' : 'file-text-fill',  'bootstrapIconColor' : 'success'} %}
  27.             {% include 'bo/home/_widget_card.html.twig' with { 'widgetTitle' : "Evènements en ligne", 'widgetRouteQuery' : constant('App\\Entity\\Post::TYPE_EVENT'),  'widgetNumber' : statistics.activeEventsCount, 'widgetRouteLink' : 'bo_post_index',  'widgetIncrease' : '',  'bootstrapIconName' : 'calendar-date-fill',  'bootstrapIconColor' : 'success'} %}
  28.         </div>
  29.     </div>
  30.     <!--End::row-1 -->
  31. {% endblock %}
  32. {% block javascripts %}
  33. {% endblock %}