templates/layoutachat.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block stylesheets %}
  3. <link rel="stylesheet" href="{{ asset('bootstrap/dist/css/bootstrap.min.css') }}">
  4. <link rel="stylesheet" href="{{ asset('fontawesome/css/all.min.css') }}" type="text/css" />
  5. <link rel="stylesheet" href="{{ asset('css/fonts.css') }}" type="text/css">
  6. <link rel="stylesheet" href="{{ asset('css/style.css') }}">
  7. <style>
  8. @font-face {
  9. font-family: 'DM Sans';
  10. src: url('{{ asset('fonts/dm-sans-v17-latin-300.woff2') }}') format('woff2');
  11. font-weight: 300; font-style: normal; font-display: swap;
  12. }
  13. @font-face {
  14. font-family: 'DM Sans';
  15. src: url('{{ asset('fonts/dm-sans-v17-latin-regular.woff2') }}') format('woff2');
  16. font-weight: 400; font-style: normal; font-display: swap;
  17. }
  18. @font-face {
  19. font-family: 'DM Sans';
  20. src: url('{{ asset('fonts/dm-sans-v17-latin-500.woff2') }}') format('woff2');
  21. font-weight: 500; font-style: normal; font-display: swap;
  22. }
  23. @font-face {
  24. font-family: 'DM Sans';
  25. src: url('{{ asset('fonts/dm-sans-v17-latin-600.woff2') }}') format('woff2');
  26. font-weight: 600; font-style: normal; font-display: swap;
  27. }
  28. @font-face {
  29. font-family: 'DM Sans';
  30. src: url('{{ asset('fonts/dm-sans-v17-latin-700.woff2') }}') format('woff2');
  31. font-weight: 700; font-style: normal; font-display: swap;
  32. }
  33. @font-face {
  34. font-family: 'DM Mono';
  35. src: url('{{ asset('fonts/dm-mono-v16-latin-300.woff2') }}') format('woff2');
  36. font-weight: 300; font-style: normal; font-display: swap;
  37. }
  38. @font-face {
  39. font-family: 'DM Mono';
  40. src: url('{{ asset('fonts/dm-mono-v16-latin-regular.woff2') }}') format('woff2');
  41. font-weight: 400; font-style: normal; font-display: swap;
  42. }
  43. @font-face {
  44. font-family: 'DM Mono';
  45. src: url('{{ asset('fonts/dm-mono-v16-latin-500.woff2') }}') format('woff2');
  46. font-weight: 500; font-style: normal; font-display: swap;
  47. }
  48. body, .da-wrap { font-family: 'DM Sans', sans-serif !important; }
  49. .topbar-user {
  50. display: flex; align-items: center; gap: .5rem;
  51. background: rgba(255,255,255,.15); border-radius: 8px;
  52. padding: .4rem .85rem; font-size: .78rem; color: #fff; font-weight: 600;
  53. }
  54. .card{ background: url(../img/bg.gif) repeat; }
  55. .color{color:#ffffff;
  56. font-size: 12px;
  57. font-weight: 600;
  58. letter-spacing: 0.3px;
  59. }
  60. /* NAVBAR ERP */
  61. .nav-erp {
  62. background: #343a40;
  63. padding: 10px;
  64. }
  65. .nav-erp a {
  66. color: #fff;
  67. text-decoration: none;
  68. font-size: 13px;
  69. }
  70. .nav-erp a:hover {
  71. color: #ffc107;
  72. }
  73. .erp-icon {
  74. padding: 8px;
  75. border-radius: 8px;
  76. transition: .2s;
  77. }
  78. .erp-icon:hover {
  79. background: rgba(255,255,255,0.1);
  80. transform: translateY(-2px);
  81. }
  82. /* HEADER */
  83. .erp-header {
  84. background: #f8f9fa;
  85. padding: 10px 15px;
  86. border-bottom: 1px solid #ddd;
  87. }
  88. /* CONTENT */
  89. .erp-content {
  90. padding: 15px;
  91. }
  92. /* RESPONSIVE */
  93. @media (max-width: 768px) {
  94. .nav-erp img {
  95. width: 40px;
  96. }
  97. }
  98. </style>
  99. {% block stylesheets2 %}{% endblock %}
  100. {% endblock %}
  101. {% block body %}
  102. <!-- HEADER -->
  103. <div class=" d-flex justify-content-between align-items-center">
  104. <div>
  105. </div>
  106. <div>
  107. <span class="mr-2 topbar-user">
  108. <i class="fas fa-user-circle"></i> Connecté : <strong>{{ app.user.username }}</strong>
  109. <a href="{{ path('app_logout') }}" class="btn btn-danger btn-sm">{{ 'menu.logout'|trans }}</a>
  110. </span>
  111. </div>
  112. </div>
  113. <!-- NAVBAR ERP -->
  114. <div class="container-fluid">
  115. <div class="d-flex flex-wrap justify-content-center">
  116. <a href="{{ path('mstope_intranet_index') }}" class="mx-3 text-center erp-icon">
  117. <img src="{{ asset('img/home.jpg') }}" width="50">
  118. <div class="color">Home</div>
  119. </a>
  120. {% if is_granted('ROLE_VU_DA') %}
  121. <a href="{{ path('mstopes_gestion_demande_achat') }}" class="mx-3 text-center erp-icon">
  122. <img src="{{ asset('img/demachat.jpg') }}" width="50">
  123. <div class="color">Achat</div>
  124. </a>
  125. {% endif %}
  126. {% if is_granted('ROLE_RACHAT') or is_granted('ROLE_VU_BC') %}
  127. <a href="{{ path('cotation_index') }}" class="mx-3 text-center erp-icon">
  128. <img src="{{ asset('img/cotations.jpg') }}" width="50">
  129. <div class="color">Cotations</div>
  130. </a>
  131. <a href="{{ path('analyse_index') }}" class="mx-3 text-center erp-icon">
  132. <img src="{{ asset('img/grille.jpeg') }}" width="50">
  133. <div class="color">Grille</div>
  134. </a>
  135. <a href="{{ path('mstopes_gestion_bc') }}" class="mx-3 text-center erp-icon">
  136. <img src="{{ asset('img/bc.png') }}" width="50">
  137. <div class="color">BC</div>
  138. </a>
  139. <a href="{{ path('reception_dashboard') }}" class="mx-3 text-center erp-icon">
  140. <img src="{{ asset('img/reception.png') }}" width="50">
  141. <div class="color">Reception</div>
  142. </a>
  143. {% endif %}
  144. {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_LOGIS') or is_granted('ROLE_RACHAT') %}
  145. <a href="{{ path('mstopes_gestion_catalog') }}" class="mx-3 text-center erp-icon">
  146. <img src="{{ asset('img/catalog.jpg') }}" width="50">
  147. <div class="color">Catalogue</div>
  148. </a>
  149. <a href="{{ path('fournisseur_index') }}" class="mx-3 text-center erp-icon">
  150. <img src="{{ asset('img/fournisseur.png') }}" width="50">
  151. <div class="color">Fournisseur</div>
  152. </a>
  153. <a href="{{ path('contrat_cadre_index') }}" class="mx-3 text-center erp-icon">
  154. <img src="{{ asset('img/contratCadre.png') }}" width="50">
  155. <div class="color">Contrat cadre</div>
  156. </a>
  157. <a href="{{ path('plan_achat_index') }}" class="mx-3 text-center erp-icon">
  158. <img src="{{ asset('img/planAchat.png') }}" width="50">
  159. <div class="color">Plans d'achats</div>
  160. </a>
  161. {% endif %}
  162. <a href="{{ path('mstopes_rapportDA') }}" class="mx-3 text-center erp-icon">
  163. <img src="{{ asset('img/rapportda.jpeg') }}" width="50">
  164. <div class="color">Rapport</div>
  165. </a>
  166. </div>
  167. </div>
  168. <!-- CONTENU -->
  169. <div class="erp-content container-fluid" id="principal">
  170. {% block section %}
  171. {% endblock %}
  172. </div>
  173. {% endblock %}
  174. {% block javascripts %}
  175. <script src="{{ asset('js/jquery.js')}}"></script>
  176. <script src="{{ asset('bootstrap/dist/js/bootstrap.bundle.min.js')}}"></script>
  177. {% block js %}
  178. {% endblock %}
  179. {% endblock %}