Structures.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. {namespace v=FluidTYPO3\Vhs\ViewHelpers}
  2. {namespace ot=Opentalent\OtTemplating\ViewHelpers}
  3. <f:comment><!-- Special layout for the Members page --></f:comment>
  4. <f:layout name="Structures" />
  5. <f:comment><!-- Render the header defined in partial/header.html--></f:comment>
  6. <f:render partial="Classic/Header" arguments="{_all}" />
  7. <div class="main">
  8. <f:comment><!-- Central column --></f:comment>
  9. <div class="content">
  10. <f:comment><!-- All members --></f:comment>
  11. <div class="ot-structures">
  12. <ot:organizations.getChildren as="structuresCollection"
  13. organizationId="{settings.organizationId}">
  14. <div class="structure-col">
  15. <div id="structure-map-wrapper">
  16. <div id="structure-map">
  17. <f:for each="{structuresCollection.members}" as="structure" iteration="it">
  18. <f:if condition="{structure.longitude}">
  19. <i class="item-geodata"
  20. style="display: none;"
  21. data-id="{structure.id}"
  22. data-long="{structure.longitude}"
  23. data-lat="{structure.latitude}"
  24. data-label="<b>{structure.name}</b><br/>{structure.streetAdress}<br/>{structure.postalCode} {structure.addressCity}">
  25. </i>
  26. </f:if>
  27. </f:for>
  28. </div>
  29. </div>
  30. <div id="structure-map-bar">
  31. <div class="btn">{f:translate(key: 'click-on-land-to-go-there')}</div>
  32. <ul id="overseas-provinces-list">
  33. <li><f:image src="EXT:ot_templating/Resources/Public/media/metropole.png" alt="Metropole" data="{map-fit: '51.03,-5.78;41.2,9.70'}"/></li>
  34. <li><f:image src="EXT:ot_templating/Resources/Public/media/guadeloupe.png" alt="Guadeloupe" data="{map-fit: '16.62,-62.03;15.74,-60.97'}"/></li>
  35. <li><f:image src="EXT:ot_templating/Resources/Public/media/martinique.png" alt="Martinique" data="{map-fit: '14.95,-61.43;14.28,-60.60'}"/></li>
  36. <li><f:image src="EXT:ot_templating/Resources/Public/media/mayotte.png" alt="Mayotte" data="{map-fit: '-12.51,44.86;-13.19,45.45'}"/></li>
  37. <li><f:image src="EXT:ot_templating/Resources/Public/media/la_reunion.png" alt="La Réunion" data="{map-fit: '-20.65,54.92;-21.65,56.15'}"/></li>
  38. <li><f:image src="EXT:ot_templating/Resources/Public/media/guyane.png" alt="Guyane" data="{map-fit: '6.24,-54.62;1.87,-50.59'}"/></li>
  39. </ul>
  40. </div>
  41. </div>
  42. <div class="structure-col">
  43. <h2><f:translate key="member-companies"/></h2>
  44. <div class="structure-search">
  45. <form>
  46. <div class="search-loc-wrapper">
  47. <input type="text"
  48. name="search-loc"
  49. value="{ot:request.getArgument(argument: 'search-loc')}"/>
  50. <button type="submit" class="search-submit">
  51. <i class="fas fa-search"></i>
  52. </button>
  53. </div>
  54. <div class="filters">
  55. <select class="search-type">
  56. <option value="-1">Type</option>
  57. <option value="0">Harmonie</option>
  58. <option value="0">Orchestre</option>
  59. <option value="0">Chorale</option>
  60. <option value="0">Ecole de musique</option>
  61. </select>
  62. <select class="search-province">
  63. <option value="-1">Région</option>
  64. </select>
  65. <select class="search-federation">
  66. <option value="-1">Fédération</option>
  67. </select>
  68. <select class="search-distance-max">
  69. <option value="-1">Distance</option>
  70. </select>
  71. <button class="reset-search">Réinitialiser</button>
  72. </div>
  73. <f:comment><!--
  74. Important: if the cache is not disabled,
  75. then the results won't be updated even after submitting this form
  76. --></f:comment>
  77. <input type="hidden" name="no_cache" value="1">
  78. </form>
  79. </div>
  80. <div class="structure-results">
  81. <f:if condition="{structuresCollection.totalItems} == 0">
  82. <span><f:translate key="no-result"/></span>
  83. </f:if>
  84. <f:for each="{structuresCollection.members}" as="structure">
  85. <div class="structure-card" data-id="{structure.id}">
  86. <div class="structure-preview">
  87. <div class="structure-poster">
  88. <f:if condition="{structure.logo}">
  89. <f:then>
  90. <img src='{structure.logo}' alt="poster" />
  91. </f:then>
  92. <f:else>
  93. <f:image src="EXT:ot_templating/Resources/Public/media/event-default.jpg" alt="poster" />
  94. </f:else>
  95. </f:if>
  96. </div>
  97. <div class="structure-summary">
  98. <span class="structure-name">
  99. {structure.name}
  100. </span>
  101. <span class="structure-adress">
  102. {structure.streetAdress}<br/>
  103. {structure.postalCode} {structure.addressCity}
  104. </span>
  105. </div>
  106. </div>
  107. <a href="https://{structure.subdomain}.opentalent.fr" class="btn structure-see">
  108. <span><f:translate key="see-more"/></span>
  109. <i class="fa fa-caret-right" style="margin-left: 5px;"></i>
  110. </a>
  111. </div>
  112. </f:for>
  113. <f:render partial="Classic/Pagination" arguments="{collection: structuresCollection}"/>
  114. </div>
  115. </div>
  116. </ot:organizations.getChildren>
  117. </div>
  118. </div>
  119. </div>
  120. <f:comment><!-- Render the footer defined in partial/footer.html--></f:comment>
  121. <f:render partial="Classic/Footer" />