Structures.html 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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 map-view">
  12. <ot:organizations.getChildren as="structuresCollection"
  13. organizationId="{settings.organizationId}">
  14. <div class="structure-col structure-col-map">
  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 structure-col-results">
  43. <header>
  44. <h2><f:translate key="member-companies"/></h2>
  45. <a href="#" class="activate-map-view"><f:translate key="map"/></a>
  46. <a href="#" class="activate-list-view"><f:translate key="list"/></a>
  47. </header>
  48. <div class="structure-search">
  49. <form>
  50. <div class="search-loc-wrapper">
  51. <input type="text"
  52. name="search-loc"
  53. value="{ot:request.getArgument(argument: 'search-loc')}"/>
  54. <button type="submit" class="search-submit">
  55. <i class="fas fa-search"></i>
  56. </button>
  57. </div>
  58. <div class="filters">
  59. <select class="search-type">
  60. <option value="-1">Type</option>
  61. <option value="0">Harmonie</option>
  62. <option value="0">Orchestre</option>
  63. <option value="0">Chorale</option>
  64. <option value="0">Ecole de musique</option>
  65. </select>
  66. <select class="search-province">
  67. <option value="-1">Région</option>
  68. <option value="0">Alsace</option>
  69. </select>
  70. <select class="search-federation">
  71. <option value="-1">Fédération</option>
  72. <option value="0">CMF</option>
  73. </select>
  74. <select class="search-distance-max">
  75. <option value="-1">Distance</option>
  76. <option value="0">100</option>
  77. </select>
  78. <button class="reset-search">Réinitialiser</button>
  79. </div>
  80. <f:comment><!--
  81. Important: if the cache is not disabled,
  82. then the results won't be updated even after submitting this form
  83. --></f:comment>
  84. <input type="hidden" name="no_cache" value="1">
  85. </form>
  86. </div>
  87. <div class="structure-results">
  88. <f:if condition="{structuresCollection.totalItems} == 0">
  89. <span><f:translate key="no-result"/></span>
  90. </f:if>
  91. <f:for each="{structuresCollection.members}" as="structure">
  92. <div class="structure-card" data-id="{structure.id}">
  93. <div class="structure-poster">
  94. <f:if condition="{structure.logo}">
  95. <f:then>
  96. <img src='{structure.logo}' alt="poster" />
  97. </f:then>
  98. <f:else>
  99. <f:image src="EXT:ot_templating/Resources/Public/media/event-default.jpg" alt="poster" />
  100. </f:else>
  101. </f:if>
  102. </div>
  103. <div class="structure-details">
  104. <div class="structure-categories">
  105. <f:for each="{structure.categories}" as="category">
  106. <span class="structure-category">
  107. <f:translate key="{category}"/>
  108. </span>
  109. </f:for>
  110. </div>
  111. <div class="structure-name">
  112. {structure.name}
  113. </div>
  114. <table class="structure-details-table">
  115. <tr class="structure-details-entry structure-address">
  116. <td><i class="fas fa-map-marker-alt"></i></td>
  117. <td>
  118. <f:if condition="{structure.streetAddress}">
  119. {structure.streetAddress} -
  120. </f:if>
  121. {structure.postalCode} {structure.addressCity}
  122. </td>
  123. </tr>
  124. <tr class="structure-details-entry structure-federation">
  125. <td><i class="fas fa-project-diagram"></i></td>
  126. <td>{structure.parentName}</td>
  127. </tr>
  128. </table>
  129. </div>
  130. <div class="spacer"></div>
  131. <a target="_blank" class="btn structure-see" href="https://{structure.subdomain}.opentalent.fr">
  132. <span><f:translate key="see-more"/></span>
  133. <i class="fa fa-caret-right" style="margin-left: 5px;"></i>
  134. </a>
  135. </div>
  136. </f:for>
  137. {ot:pagination(collection: structuresCollection)}
  138. </div>
  139. </div>
  140. </ot:organizations.getChildren>
  141. </div>
  142. </div>
  143. </div>
  144. <f:comment><!-- Render the footer defined in partial/footer.html--></f:comment>
  145. <f:render partial="Classic/Footer" />