StructuresFrame.html 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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>
  45. <div class="search-loc-wrapper">
  46. <input type="text"
  47. name="search-loc"
  48. value="{ot:request.getArgument(argument: 'search-loc')}"/>
  49. <button type="submit" class="search-submit">
  50. <i class="fas fa-search"></i>
  51. </button>
  52. </div>
  53. <div class="filters">
  54. <select class="search-type">
  55. <option value="-1">Type</option>
  56. <option value="0">Harmonie</option>
  57. <option value="0">Orchestre</option>
  58. <option value="0">Chorale</option>
  59. <option value="0">Ecole de musique</option>
  60. </select>
  61. <select class="search-province">
  62. <option value="-1">Région</option>
  63. <option value="0">Alsace</option>
  64. </select>
  65. <select class="search-federation">
  66. <option value="-1">Fédération</option>
  67. <option value="0">CMF</option>
  68. </select>
  69. <select class="search-distance-max">
  70. <option value="-1">Distance</option>
  71. <option value="0">100</option>
  72. </select>
  73. <button class="reset-search">Réinitialiser</button>
  74. </div>
  75. <f:comment><!--
  76. Important: if the cache is not disabled,
  77. then the results won't be updated even after submitting this form
  78. --></f:comment>
  79. <input type="hidden" name="no_cache" value="1">
  80. </form>
  81. </div>
  82. <div class="structure-results">
  83. <span class="please-wait"><f:translate key="please-wait"/></span>
  84. <span class="no-result" style="display: none"><f:translate key="no-result"/></span>
  85. <div class="structures-page">
  86. <div class="structure-card-model" data-id="" style="display: none">
  87. <div class="structure-poster">
  88. <f:image src="EXT:ot_templating/Resources/Public/media/event-default.jpg" alt="poster" />
  89. </div>
  90. <div class="structure-details">
  91. <div class="structure-categories">
  92. <span class="structure-category-model" style="display: none">{category}</span>
  93. </div>
  94. <div class="structure-name">
  95. {structure.name}
  96. </div>
  97. <table class="structure-details-table">
  98. <tr class="structure-details-entry structure-address">
  99. <td><i class="fas fa-map-marker-alt"></i></td>
  100. <td class="structure-details-address">
  101. {structure.streetAddress}
  102. {structure.postalCode} {structure.addressCity}
  103. </td>
  104. </tr>
  105. <tr class="structure-details-entry structure-federation">
  106. <td><i class="fas fa-project-diagram"></i></td>
  107. <td class="structure-details-federation">{structure.parentName}</td>
  108. </tr>
  109. </table>
  110. </div>
  111. <div class="spacer"></div>
  112. <a target="_blank" class="btn structure-see" href="{structure.otherWebsite}">
  113. <span><f:translate key="see-more"/></span>
  114. <i class="fa fa-caret-right" style="margin-left: 5px;"></i>
  115. </a>
  116. </div>
  117. </div>
  118. <div class="pagination-bar">
  119. <a class="goto-page goto-first-page" data-page="1" href="#" title="{f:translate(key:'go-to-first-page')}">
  120. <i class="fa fa-angle-double-left"></i>
  121. </a>
  122. <ul class="pagination-list">
  123. <li class="goto-page-li-model" style="display: none;">
  124. <a class="goto-page" data-page="1" href="#" title="{f:translate(key:'go-to-page')}">
  125. 1
  126. </a>
  127. </li>
  128. </ul>
  129. <a class="goto-page goto-last-page" data-page="-1" href="#" title="{f:translate(key:'go-to-last-page')}">
  130. <i class="fa fa-angle-double-right"></i>
  131. </a>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </ot:organizations.getFederationStructures>
  137. </div>
  138. </div>