tools-sidebar.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * Partiel : Barre latérale des outils (extrait de header.php)
  4. */
  5. ?>
  6. <div class="sidebar">
  7. <nav class="nav flex-column">
  8. <!-- Outils de dessin -->
  9. <div class="tool-group">
  10. <h6><i class="bi bi-brush me-1"></i>Historique</h6>
  11. <a class="nav-link" href="#" id="header-undoBtn">
  12. <i class="bi bi-arrow-counterclockwise me-2"></i>Annuler
  13. </a>
  14. <a class="nav-link" href="#" id="header-redoBtn">
  15. <i class="bi bi-arrow-clockwise me-2"></i>Rétablir
  16. </a>
  17. <hr>
  18. <a class="nav-link" href="#" id="selectTool">
  19. <i class="bi bi-cursor me-2"></i>Sélection
  20. </a>
  21. </div>
  22. <!-- Options de type de tuile (visible quand une tuile est sélectionnée) -->
  23. <div class="tool-group" id="tile-type-tool" style="display:none;">
  24. <h6><i class="bi bi-grid-1x2-fill me-1"></i>Type de tuile</h6>
  25. <div id="tileTypeOptions" class="d-flex flex-column gap-2">
  26. <!-- Boutons de types, chaque bouton contient une SVG représentative -->
  27. <button type="button" class="btn btn-light tile-type-option d-flex align-items-center gap-2" data-type="neutral" title="Neutre" aria-label="Neutre">
  28. <!-- SVG simple pour neutre -->
  29. <svg width="36" height="24" viewBox="0 0 36 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
  30. <rect x="1" y="1" width="34" height="22" rx="3" fill="#f8f9fa" stroke="#adb5bd"/>
  31. <circle cx="18" cy="12" r="6" fill="#6c757d" />
  32. </svg>
  33. <span>Neutre</span>
  34. </button>
  35. <button type="button" class="btn btn-light tile-type-option d-flex align-items-center gap-2" data-type="rural" title="Rural" aria-label="Rural">
  36. <!-- SVG simple pour rural -->
  37. <svg width="36" height="24" viewBox="0 0 36 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
  38. <rect x="1" y="1" width="34" height="22" rx="3" fill="#fff7e6" stroke="#f0ad4e"/>
  39. <path d="M6 18 L12 10 L18 18 Z" fill="#5cb85c" />
  40. </svg>
  41. <span>Rural</span>
  42. </button>
  43. <button type="button" class="btn btn-light tile-type-option d-flex align-items-center gap-2" data-type="urban" title="Urbain" aria-label="Urbain">
  44. <!-- SVG simple pour urbain -->
  45. <svg width="36" height="24" viewBox="0 0 36 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
  46. <rect x="1" y="1" width="34" height="22" rx="3" fill="#e9ecef" stroke="#6c757d"/>
  47. <rect x="6" y="6" width="6" height="12" fill="#495057" />
  48. <rect x="14" y="8" width="6" height="10" fill="#6c757d" />
  49. <rect x="22" y="5" width="6" height="13" fill="#343a40" />
  50. </svg>
  51. <span>Urbain</span>
  52. </button>
  53. </div>
  54. </div>
  55. </nav>
  56. </div>