Structures.html 4.4 KB

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