Structures.html 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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.getFederationStructures as="structuresCollection"
  13. parentId="{settings.organizationId}">
  14. <div class="structure-col structure-col-map">
  15. <ot:organizations.getFederationStructures as="allStructuresCollection"
  16. parentId="{settings.organizationId}"
  17. itemsPerPage="all">
  18. <div id="structure-map-wrapper">
  19. <div id="structure-map"
  20. data-all-structures="{ot:organizations.asGeoMarkersArray(structures:allStructuresCollection.members)}"
  21. data-selected-structures="{ot:organizations.asGeoMarkersArray(structures:structuresCollection.members)}"
  22. >
  23. </div>
  24. </div>
  25. </ot:organizations.getFederationStructures>
  26. <div id="structure-map-bar">
  27. <div class="btn">{f:translate(key: 'click-on-land-to-go-there')}</div>
  28. <ul id="overseas-provinces-list">
  29. <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>
  30. <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>
  31. <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>
  32. <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>
  33. <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>
  34. <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>
  35. </ul>
  36. </div>
  37. </div>
  38. <div class="structure-col structure-col-results">
  39. <header>
  40. <h2><f:translate key="member-companies"/></h2>
  41. <a href="#" class="activate-map-view"><f:translate key="map"/></a>
  42. <a href="#" class="activate-list-view"><f:translate key="list"/></a>
  43. </header>
  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. <option value="0">Alsace</option>
  65. </select>
  66. <select class="search-federation">
  67. <option value="-1">Fédération</option>
  68. <option value="0">CMF</option>
  69. </select>
  70. <select class="search-distance-max">
  71. <option value="-1">Distance</option>
  72. <option value="0">100</option>
  73. </select>
  74. <button class="reset-search">Réinitialiser</button>
  75. </div>
  76. <f:comment><!--
  77. Important: if the cache is not disabled,
  78. then the results won't be updated even after submitting this form
  79. --></f:comment>
  80. <input type="hidden" name="no_cache" value="1">
  81. </form>
  82. </div>
  83. <div class="structure-results">
  84. <f:if condition="{structuresCollection.totalItems} == 0">
  85. <span><f:translate key="no-result"/></span>
  86. </f:if>
  87. <f:for each="{structuresCollection.members}" as="structure" iteration="it">
  88. <div class="structure-card" data-id="{structure.id}">
  89. <div class="structure-poster">
  90. <f:if condition="{structure.logoId}">
  91. <f:then>
  92. <img src='{structure.logoId}' alt="poster" />
  93. </f:then>
  94. <f:else>
  95. <f:image src="EXT:ot_templating/Resources/Public/media/event-default.jpg" alt="poster" />
  96. </f:else>
  97. </f:if>
  98. </div>
  99. <div class="structure-details">
  100. <f:comment>
  101. <!-- <div class="structure-categories">-->
  102. <!-- <f:for each="{structure.categories}" as="category">-->
  103. <!-- <span class="structure-category">-->
  104. <!-- <f:translate key="{category}"/>-->
  105. <!-- </span>-->
  106. <!-- </f:for>-->
  107. <!-- </div>--></f:comment>
  108. <div class="structure-name">
  109. {structure.name}
  110. </div>
  111. <table class="structure-details-table">
  112. <tr class="structure-details-entry structure-address">
  113. <td><i class="fas fa-map-marker-alt"></i></td>
  114. <td>
  115. <f:if condition="{structure.streetAddress}">
  116. {structure.streetAddress} -
  117. </f:if>
  118. {structure.postalCode} {structure.addressCity}
  119. </td>
  120. </tr>
  121. <tr class="structure-details-entry structure-federation">
  122. <td><i class="fas fa-project-diagram"></i></td>
  123. <td>{structure.parentName}</td>
  124. </tr>
  125. </table>
  126. </div>
  127. <div class="spacer"></div>
  128. <a target="_blank" class="btn structure-see" href="https://{structure.subdomain}.opentalent.fr">
  129. <span><f:translate key="see-more"/></span>
  130. <i class="fa fa-caret-right" style="margin-left: 5px;"></i>
  131. </a>
  132. </div>
  133. </f:for>
  134. {ot:pagination(collection: structuresCollection)}
  135. </div>
  136. </div>
  137. </ot:organizations.getFederationStructures>
  138. </div>
  139. </div>
  140. </div>
  141. <f:comment><!-- Render the footer defined in partial/footer.html--></f:comment>
  142. <f:render partial="Classic/Footer" />