StructuresFrame.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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="StructuresFrame" />
  5. <f:render partial="Classic/Assets" />
  6. <v:asset.script name="classic-structures"
  7. path="EXT:ot_templating/Resources/Public/assets/Classic/script/structures.js"
  8. dependencies="classic-jquery,classic-datepicker,classic-slick,classic-leaflet,classic-main"
  9. standalone="1"
  10. defer="1"/>
  11. <div class="main">
  12. <f:comment><!-- Central column --></f:comment>
  13. <div class="content">
  14. <f:comment><!-- All members --></f:comment>
  15. <ot:organizations.getFederationStructures as="structuresCollection"
  16. parentId="{settings.organizationId}"
  17. itemsPerPage="all">
  18. <f:comment><!-- The data is stored as an attribute, then templated with JS for performance reasons --></f:comment>
  19. <div class="ot-structures-frame map-view" data-structures="{v:format.json.encode(value:structuresCollection.members)}">
  20. <div class="structure-col structure-col-map">
  21. <div id="structure-map-wrapper">
  22. <div id="structure-map">
  23. </div>
  24. </div>
  25. <div id="structure-map-bar">
  26. <div class="btn">{f:translate(key: 'click-on-land-to-go-there')}</div>
  27. <ul id="overseas-provinces-list">
  28. <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>
  29. <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>
  30. <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>
  31. <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>
  32. <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>
  33. <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>
  34. </ul>
  35. </div>
  36. </div>
  37. <div class="structure-col structure-col-results">
  38. <header>
  39. <h2><f:translate key="member-companies"/></h2>
  40. <a href="#" class="activate-map-view"><f:translate key="map"/></a>
  41. <a href="#" class="activate-list-view"><f:translate key="list"/></a>
  42. </header>
  43. <div class="structure-search">
  44. <form method="get" id="structure-search-form">
  45. <div class="search-bar-wrapper">
  46. <input type="text"
  47. name="search-query"
  48. class="search-bar"
  49. value="{ot:request.getArgument(argument: 'search-loc')}"/>
  50. <button class="search-submit"
  51. name="search-submit"
  52. >
  53. <i class="fas fa-search"></i>
  54. </button>
  55. </div>
  56. <div class="filters">
  57. <f:form.select name="search-category"
  58. value="{ot:request.getArgument(argument: 'search-category')}">
  59. <f:form.select.option value="">Type</f:form.select.option>
  60. <f:form.select.option value="1MC">{f:translate(key: '1MC')}</f:form.select.option>
  61. <f:form.select.option value="2TH">{f:translate(key: '2TH')}</f:form.select.option>
  62. <f:form.select.option value="3DA">{f:translate(key: '3DA')}</f:form.select.option>
  63. <f:form.select.option value="5FA">{f:translate(key: '5FA')}</f:form.select.option>
  64. <f:form.select.option value="OTAR">{f:translate(key: 'OTAR')}</f:form.select.option>
  65. <f:form.select.option value="OTCI">{f:translate(key: 'OTCI')}</f:form.select.option>
  66. <f:form.select.option value="6AR">{f:translate(key: '6AR')}</f:form.select.option>
  67. <f:form.select.option value="8CI">{f:translate(key: '8CI')}</f:form.select.option>
  68. <f:form.select.option value="OTAU">{f:translate(key: 'OTAU')}</f:form.select.option>
  69. </f:form.select>
  70. <f:form.select class="search-province">
  71. <f:form.select.option value="">Région</f:form.select.option>
  72. <f:form.select.option value="0">Alsace</f:form.select.option>
  73. </f:form.select>
  74. <f:form.select class="search-federation">
  75. <f:form.select.option value="">Fédération</f:form.select.option>
  76. <f:form.select.option value="0">CMF</f:form.select.option>
  77. </f:form.select>
  78. <select class="search-distance-max">
  79. <option value="">Distance</option>
  80. <option value="0">100</option>
  81. </select>
  82. <button class="reset-search">Réinitialiser</button>
  83. </div>
  84. <f:comment><!--
  85. Important: if the cache is not disabled,
  86. then the results won't be updated even after submitting this form
  87. --></f:comment>
  88. <input type="hidden" name="no_cache" value="1">
  89. </form>
  90. </div>
  91. <div class="structure-results">
  92. <span class="please-wait"><f:translate key="please-wait"/></span>
  93. <span class="no-result" style="display: none"><f:translate key="no-result"/></span>
  94. <div class="structures-page">
  95. <div class="structure-card-model" data-id="" style="display: none">
  96. <div class="structure-poster">
  97. <f:image src="EXT:ot_templating/Resources/Public/media/event-default.jpg" alt="poster" />
  98. </div>
  99. <div class="structure-details">
  100. <div class="structure-categories">
  101. <span class="structure-category-model" style="display: none">{category}</span>
  102. </div>
  103. <div class="structure-name">
  104. {structure.name}
  105. </div>
  106. <table class="structure-details-table">
  107. <tr class="structure-details-entry structure-address">
  108. <td><i class="fas fa-map-marker-alt"></i></td>
  109. <td class="structure-details-address">
  110. {structure.streetAddress}
  111. {structure.postalCode} {structure.addressCity}
  112. </td>
  113. </tr>
  114. <tr class="structure-details-entry structure-federation">
  115. <td><i class="fas fa-project-diagram"></i></td>
  116. <td class="structure-details-federation">{structure.parentName}</td>
  117. </tr>
  118. </table>
  119. </div>
  120. <div class="spacer"></div>
  121. <a target="_blank" class="btn structure-see" href="{structure.otherWebsite}">
  122. <span><f:translate key="see-more"/></span>
  123. <i class="fa fa-caret-right" style="margin-left: 5px;"></i>
  124. </a>
  125. </div>
  126. </div>
  127. <div class="pagination-bar">
  128. <a class="goto-page goto-first-page" data-page="1" href="#" title="{f:translate(key:'go-to-first-page')}">
  129. <i class="fa fa-angle-double-left"></i>
  130. </a>
  131. <ul class="pagination-list">
  132. <li class="goto-page-li-model" style="display: none;">
  133. <a class="goto-page" data-page="1" href="#" title="{f:translate(key:'go-to-page')}">
  134. 1
  135. </a>
  136. </li>
  137. </ul>
  138. <a class="goto-page goto-last-page" data-page="-1" href="#" title="{f:translate(key:'go-to-last-page')}">
  139. <i class="fa fa-angle-double-right"></i>
  140. </a>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. </ot:organizations.getFederationStructures>
  146. </div>
  147. </div>