Structures.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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" style="display: none;"
  20. data-id="{structure.id}"
  21. data-long="{structure.longitude}"
  22. data-lat="{structure.latitude}"
  23. data-label="<b>{structure.name}</b><br/>{structure.streetAdress}<br/>{structure.postalCode} {structure.addressCity}">
  24. </i>
  25. </f:if>
  26. </f:for>
  27. </div>
  28. </div>
  29. <div id="structure-map-bar">
  30. <div class="btn">{f:translate(key: 'click-on-land-to-go-there')}</div>
  31. <ul id="overseas-provinces-list">
  32. <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>
  33. <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>
  34. <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>
  35. <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>
  36. <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>
  37. <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>
  38. </ul>
  39. </div>
  40. </div>
  41. <div class="structure-col">
  42. <h2><f:translate key="member-companies"/></h2>
  43. <div class="structure-search">
  44. <form>
  45. <input type="text"
  46. name="search-loc"
  47. placeholder="{f:translate(key: 'where')}?"
  48. value="{ot:request.getArgument(argument: 'search-loc')}"/>
  49. <f:comment><!--
  50. Important: if the cache is not disabled,
  51. then the results won't be updated even after submitting this form
  52. --></f:comment>
  53. <input type="hidden"
  54. name="no_cache"
  55. value="1">
  56. <button name="search-submit"><f:translate key="find"/></button>
  57. </form>
  58. </div>
  59. <div class="structure-results">
  60. <f:if condition="{structuresCollection.totalItems} == 0">
  61. <span><f:translate key="no-result"/></span>
  62. </f:if>
  63. <f:for each="{structuresCollection.members}" as="structure">
  64. <div class="structure" data-id="{structure.id}">
  65. <div class="structure-preview">
  66. <div class="structure-poster">
  67. <f:if condition="{structure.logo}">
  68. <f:then>
  69. <img src='{structure.logo}' alt="poster" />
  70. </f:then>
  71. <f:else>
  72. <f:image src="EXT:ot_templating/Resources/Public/media/event-default.jpg" alt="poster" />
  73. </f:else>
  74. </f:if>
  75. </div>
  76. <div class="structure-summary">
  77. <span class="structure-name">
  78. {structure.name}
  79. </span>
  80. <span class="structure-adress">
  81. {structure.streetAdress}<br/>
  82. {structure.postalCode} {structure.addressCity}
  83. </span>
  84. </div>
  85. </div>
  86. <a href="https://{structure.subdomain}.opentalent.fr" class="structure-see">
  87. <i class="fa fa-plus" style="margin-right: 5px;"></i>
  88. <span><f:translate key="see"/></span>
  89. </a>
  90. </div>
  91. </f:for>
  92. <f:render partial="Classic/Pagination" arguments="{collection: structuresCollection}"/>
  93. </div>
  94. </div>
  95. </ot:organizations.getChildren>
  96. </div>
  97. </div>
  98. </div>
  99. <f:comment><!-- Render the footer defined in partial/footer.html--></f:comment>
  100. <f:render partial="Classic/Footer" />