Structures.html 5.8 KB

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