Structures.html 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. <h2>Sociétés adhérentes</h2>
  12. <div class="ot-structures">
  13. <ot:organizations.getChildren as="structuresCollection"
  14. organizationId="{settings.organizationId}">
  15. <f:debug>{_all}</f:debug>
  16. <div class="ot-structures">
  17. <div class="structure-controls">
  18. <div class="structure-search">
  19. <form>
  20. <input type="text"
  21. name="search-loc"
  22. placeholder="Où?"
  23. value="{ot:request.getArgument(argument: 'search-loc')}"/>
  24. <button name="search-submit">Trouver</button>
  25. </form>
  26. </div>
  27. <div id="structure-map">
  28. <f:for each="{structuresCollection.members}" as="structure" iteration="it">
  29. <f:if condition="{structure.longitude}">
  30. <i class="item-geodata" style="display: none;"
  31. data-id="{structure.id}"
  32. data-long="{structure.longitude}"
  33. data-lat="{structure.latitude}"
  34. data-label="<b>{structure.name}</b><br/>{structure.streetAdress}<br/>{structure.postalCode} {structure.addressCity}">
  35. </i>
  36. </f:if>
  37. </f:for>
  38. </div>
  39. </div>
  40. <div class="structure-results">
  41. <f:if condition="{structuresCollection.totalItems} == 0">
  42. <span>Aucun résultat</span>
  43. </f:if>
  44. <f:for each="{structuresCollection.members}" as="structure">
  45. <div class="structure" data-id="{structure.id}">
  46. <div class="structure-preview">
  47. <div class="structure-poster">
  48. <f:if condition="{structure.logo}">
  49. <f:then>
  50. <img src='{structure.logo}' alt="poster" />
  51. </f:then>
  52. <f:else>
  53. <f:image src="EXT:ot_templating/Resources/Public/media/event-default.jpg" alt="poster" />
  54. </f:else>
  55. </f:if>
  56. </div>
  57. <div class="structure-summary">
  58. <span class="structure-name">
  59. {structure.name}
  60. </span>
  61. <span class="structure-adress">
  62. {structure.streetAdress}<br/>
  63. {structure.postalCode} {structure.addressCity}
  64. </span>
  65. </div>
  66. </div>
  67. <a href="https://{structure.subdomain}.opentalent.fr" class="structure-see">
  68. <i class="fa fa-plus" style="margin-right: 5px;"></i>
  69. <span>Voir</span>
  70. </a>
  71. </div>
  72. </f:for>
  73. </div>
  74. </div>
  75. </ot:organizations.getChildren>
  76. </div>
  77. </div>
  78. </div>
  79. <f:comment><!-- Render the footer defined in partial/footer.html--></f:comment>
  80. <f:render partial="Classic/Footer" />