templates/intranet/index.html.twig line 1

Open in your IDE?
  1. {% extends "layout.html.twig" %}
  2. {% block stylesheets2 %}
  3. <link rel="stylesheet" href="{{ asset('css/index.css') }}">
  4. <style>
  5. .topbar-user {
  6. display: flex; align-items: center; gap: .5rem;
  7. background: rgba(255,255,255,.15); border-radius: 8px;
  8. padding: .4rem .85rem; font-size: .78rem; color: #fff; font-weight: 600;
  9. }
  10. </style>
  11. {% endblock %}
  12. {% block section2 %}
  13. <div class="container-fluid mt-3">
  14. <!-- TOPBAR -->
  15. <div class="d-flex justify-content-between align-items-center mb-4">
  16. <div class="d-flex align-items-center" class="mr-2">
  17. <!-- <img src="{{ asset('img/log.ico') }}" style="max-width:40px;" class="mr-2">-->
  18. </div>
  19. <div class="d-flex align-items-center">
  20. <span class="mr-2 topbar-user">
  21. <i class="fas fa-key"></i> {{ 'menu.change_password'|trans }}
  22. <a href="{{ path('change_password') }}" class="btn btn-sm ">
  23. </a>
  24. </span>
  25. <span class="mr-2 topbar-user">
  26. <i class="fas fa-user-circle"></i> Connecté : <strong>{{ app.user.username }}</strong>
  27. <a href="{{ path('app_logout') }}" class="btn btn-danger btn-sm">{{ 'menu.logout'|trans }}</a>
  28. </span>
  29. <div class="d-flex align-items-center ml-2">
  30. <div class="dropdown">
  31. <button
  32. class="btn btn-light btn-sm dropdown-toggle"
  33. type="button"
  34. id="langDropdown"
  35. data-toggle="dropdown"
  36. aria-haspopup="true"
  37. aria-expanded="false"
  38. >
  39. 🌐 {{ 'menu.language'|trans }}
  40. </button>
  41. <div class="dropdown-menu">
  42. <a class="dropdown-item" href="{{ path('change_locale', {'locale': 'fr'}) }}">
  43. 🇫🇷 {{ 'menu.french'|trans }}
  44. </a>
  45. <a class="dropdown-item" href="{{ path('change_locale', {'locale': 'en'}) }}">
  46. 🇬🇧 {{ 'menu.english'|trans }}
  47. </a>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <!-- MODULES --><br/>
  54. <div class="row text-center ">
  55. {% if is_granted('ROLE_VU_DA') %}
  56. <div class="col-6 col-md-4 col-lg-3 mb-4">
  57. <a href="{{ path('module_achat') }}" class="text-decoration-none module-item">
  58. <img src="{{ asset('img/moduleachat.jpg') }}" class="img-fluid mb-2" style="max-width:90px;max-height:80px;">
  59. <div>{{ 'modules.achat'|trans }}</div>
  60. </a>
  61. </div>
  62. {% endif %}
  63. {% if is_granted('ROLE_VU_STOK') or is_granted('ROLE_VU_STOCK_CANO') %}
  64. <div class="col-6 col-md-4 col-lg-3 mb-4">
  65. <a href="#" class="text-decoration-none module-item">
  66. <img src="{{ asset('img/modulestock.png') }}" class="img-fluid mb-2" style="max-width:90px;max-height:80px;">
  67. <div>{{ 'modules.stock'|trans }}</div>
  68. </a>
  69. </div>
  70. {% endif %}
  71. {% if is_granted('ROLE_VU_DA') %}
  72. <div class="col-6 col-md-4 col-lg-3 mb-4">
  73. <a href=" {{ path('module_flotte') }}" class="text-decoration-none module-item">
  74. <img src="{{ asset('img/mission.jpg') }}" class="img-fluid mb-2" style="max-width:90px;max-height:80px;">
  75. <div>{{ 'modules.flotte'|trans }}</div>
  76. </a>
  77. </div>
  78. {% endif %}
  79. <div class="col-6 col-md-4 col-lg-3 mb-4">
  80. <a href="#" class="text-decoration-none module-item">
  81. <img src="{{ asset('img/rh.png') }}" class="img-fluid mb-2" style="max-width:90px;max-height:80px;">
  82. <div>{{ 'modules.rh'|trans }}</div>
  83. </a>
  84. </div>
  85. {% if is_granted('ROLE_DIRECT_APPROV') or is_granted('ROLE_STAGE_INFO') or is_granted('ROLE_VU_ASSET') %}
  86. <div class="col-6 col-md-4 col-lg-3 mb-4">
  87. <a href="{{ path('module_immo') }}" class="text-decoration-none module-item">
  88. <img src="{{ asset('img/immo.png') }}" class="img-fluid mb-2" style="max-width:90px;max-height:80px;">
  89. <div>{{ 'modules.immo'|trans }}</div>
  90. </a>
  91. </div>
  92. {% endif %}
  93. {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_VALID_TECH_INFO') %}
  94. <div class="col-6 col-md-4 col-lg-3 mb-4">
  95. <a href="{{ path('module_admin') }}" class="text-decoration-none module-item">
  96. <img src="{{ asset('img/admin.png') }}" class="img-fluid mb-2" style="max-width:90px;max-height:80px;">
  97. <div>admin</div>
  98. </a>
  99. </div>
  100. {% endif %}
  101. </div>
  102. </div>
  103. {% endblock %}
  104. {% block js %}
  105. {% endblock %}