Structures.html 5.0 KB

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