|
@@ -11,23 +11,19 @@
|
|
|
<f:comment><!-- Central column --></f:comment>
|
|
<f:comment><!-- Central column --></f:comment>
|
|
|
<div class="content">
|
|
<div class="content">
|
|
|
<f:comment><!-- All members --></f:comment>
|
|
<f:comment><!-- All members --></f:comment>
|
|
|
- <div class="ot-structures map-view">
|
|
|
|
|
|
|
|
|
|
- <ot:organizations.getFederationStructures as="structuresCollection"
|
|
|
|
|
- parentId="{settings.organizationId}">
|
|
|
|
|
|
|
+ <ot:organizations.getFederationStructures as="structuresCollection"
|
|
|
|
|
+ parentId="{settings.organizationId}"
|
|
|
|
|
+ itemsPerPage="all">
|
|
|
|
|
+
|
|
|
|
|
+ <f:comment><!-- The data is stored as an attribute, then templated with JS for performance reasons --></f:comment>
|
|
|
|
|
+ <div class="ot-structures map-view" data-structures="{v:format.json.encode(value:structuresCollection.members)}">
|
|
|
|
|
|
|
|
<div class="structure-col structure-col-map">
|
|
<div class="structure-col structure-col-map">
|
|
|
- <ot:organizations.getFederationStructures as="allStructuresCollection"
|
|
|
|
|
- parentId="{settings.organizationId}"
|
|
|
|
|
- itemsPerPage="all">
|
|
|
|
|
- <div id="structure-map-wrapper">
|
|
|
|
|
- <div id="structure-map"
|
|
|
|
|
- data-all-structures="{ot:organizations.asGeoMarkersArray(structures:allStructuresCollection.members)}"
|
|
|
|
|
- data-selected-structures="{ot:organizations.asGeoMarkersArray(structures:structuresCollection.members)}"
|
|
|
|
|
- >
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div id="structure-map-wrapper">
|
|
|
|
|
+ <div id="structure-map">
|
|
|
</div>
|
|
</div>
|
|
|
- </ot:organizations.getFederationStructures>
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
<div id="structure-map-bar">
|
|
<div id="structure-map-bar">
|
|
|
<div class="btn">{f:translate(key: 'click-on-land-to-go-there')}</div>
|
|
<div class="btn">{f:translate(key: 'click-on-land-to-go-there')}</div>
|
|
@@ -96,67 +92,98 @@
|
|
|
<span><f:translate key="no-result"/></span>
|
|
<span><f:translate key="no-result"/></span>
|
|
|
</f:if>
|
|
</f:if>
|
|
|
|
|
|
|
|
- <f:for each="{structuresCollection.members}" as="structure" iteration="it">
|
|
|
|
|
-
|
|
|
|
|
- <div class="structure-card" data-id="{structure.id}">
|
|
|
|
|
-
|
|
|
|
|
- <div class="structure-poster">
|
|
|
|
|
- <f:if condition="{structure.logoId}">
|
|
|
|
|
- <f:then>
|
|
|
|
|
- <img src='{structure.logoId}' alt="poster" />
|
|
|
|
|
- </f:then>
|
|
|
|
|
- <f:else>
|
|
|
|
|
- <f:image src="EXT:ot_templating/Resources/Public/media/event-default.jpg" alt="poster" />
|
|
|
|
|
- </f:else>
|
|
|
|
|
- </f:if>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="structure-details">
|
|
|
|
|
- <f:comment>
|
|
|
|
|
- <!-- <div class="structure-categories">-->
|
|
|
|
|
-<!-- <f:for each="{structure.categories}" as="category">-->
|
|
|
|
|
-<!-- <span class="structure-category">-->
|
|
|
|
|
-<!-- <f:translate key="{category}"/>-->
|
|
|
|
|
-<!-- </span>-->
|
|
|
|
|
-<!-- </f:for>-->
|
|
|
|
|
-<!-- </div>--></f:comment>
|
|
|
|
|
-
|
|
|
|
|
- <div class="structure-name">
|
|
|
|
|
- {structure.name}
|
|
|
|
|
|
|
+ <v:variable.set name="pagedStructures" value="{ot:utilities.paginateArray(array:structuresCollection.members)}" />
|
|
|
|
|
+
|
|
|
|
|
+ <f:for each="{pagedStructures}" as="page_items" iteration="it">
|
|
|
|
|
+
|
|
|
|
|
+ <div class="structures-page"
|
|
|
|
|
+ style="{f:if(condition: '{it.cycle}!=1', then: 'display:none;')}"
|
|
|
|
|
+ data-page="{it.cycle}"
|
|
|
|
|
+ >
|
|
|
|
|
+ <f:for each="{page_items}" as="structure">
|
|
|
|
|
+ <div class="structure-card" data-id="{structure.id}">
|
|
|
|
|
+
|
|
|
|
|
+ <div class="structure-poster">
|
|
|
|
|
+ <f:if condition="{structure.logoId}">
|
|
|
|
|
+ <f:then>
|
|
|
|
|
+ <img src='{structure.logoId}' alt="poster" />
|
|
|
|
|
+ </f:then>
|
|
|
|
|
+ <f:else>
|
|
|
|
|
+ <f:image src="EXT:ot_templating/Resources/Public/media/event-default.jpg" alt="poster" />
|
|
|
|
|
+ </f:else>
|
|
|
|
|
+ </f:if>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="structure-details">
|
|
|
|
|
+ <f:comment>
|
|
|
|
|
+ <!-- <div class="structure-categories">-->
|
|
|
|
|
+ <!-- <f:for each="{structure.categories}" as="category">-->
|
|
|
|
|
+ <!-- <span class="structure-category">-->
|
|
|
|
|
+ <!-- <f:translate key="{category}"/>-->
|
|
|
|
|
+ <!-- </span>-->
|
|
|
|
|
+ <!-- </f:for>-->
|
|
|
|
|
+ <!-- </div>--></f:comment>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="structure-name">
|
|
|
|
|
+ {structure.name}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <table class="structure-details-table">
|
|
|
|
|
+ <tr class="structure-details-entry structure-address">
|
|
|
|
|
+ <td><i class="fas fa-map-marker-alt"></i></td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <f:if condition="{structure.streetAddress}">
|
|
|
|
|
+ {structure.streetAddress} -
|
|
|
|
|
+ </f:if>
|
|
|
|
|
+ {structure.postalCode} {structure.addressCity}
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr class="structure-details-entry structure-federation">
|
|
|
|
|
+ <td><i class="fas fa-project-diagram"></i></td>
|
|
|
|
|
+ <td>{structure.parentName}</td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="spacer"></div>
|
|
|
|
|
+
|
|
|
|
|
+ <a target="_blank" class="btn structure-see" href="https://{structure.subdomain}.opentalent.fr">
|
|
|
|
|
+ <span><f:translate key="see-more"/></span>
|
|
|
|
|
+ <i class="fa fa-caret-right" style="margin-left: 5px;"></i>
|
|
|
|
|
+ </a>
|
|
|
</div>
|
|
</div>
|
|
|
- <table class="structure-details-table">
|
|
|
|
|
- <tr class="structure-details-entry structure-address">
|
|
|
|
|
- <td><i class="fas fa-map-marker-alt"></i></td>
|
|
|
|
|
- <td>
|
|
|
|
|
- <f:if condition="{structure.streetAddress}">
|
|
|
|
|
- {structure.streetAddress} -
|
|
|
|
|
- </f:if>
|
|
|
|
|
- {structure.postalCode} {structure.addressCity}
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr class="structure-details-entry structure-federation">
|
|
|
|
|
- <td><i class="fas fa-project-diagram"></i></td>
|
|
|
|
|
- <td>{structure.parentName}</td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- </table>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="spacer"></div>
|
|
|
|
|
-
|
|
|
|
|
- <a target="_blank" class="btn structure-see" href="https://{structure.subdomain}.opentalent.fr">
|
|
|
|
|
- <span><f:translate key="see-more"/></span>
|
|
|
|
|
- <i class="fa fa-caret-right" style="margin-left: 5px;"></i>
|
|
|
|
|
- </a>
|
|
|
|
|
|
|
+ </f:for>
|
|
|
</div>
|
|
</div>
|
|
|
</f:for>
|
|
</f:for>
|
|
|
|
|
|
|
|
- {ot:pagination(collection: structuresCollection)}
|
|
|
|
|
|
|
+ <div class="pagination-bar">
|
|
|
|
|
+ <v:variable.set name="lastPage" value="{ot:utilities.count(array:pagedStructures)}" />
|
|
|
|
|
+
|
|
|
|
|
+ <a class="goto-page" data-page="1" href="#page-1" title="{f:translate(key:'go-to-first-page')}">
|
|
|
|
|
+ <i class="fa fa-angle-double-left"></i>
|
|
|
|
|
+ </a>
|
|
|
|
|
+
|
|
|
|
|
+ <ul>
|
|
|
|
|
+ <f:for each="{pagedStructures}" as="_" iteration="it">
|
|
|
|
|
+ <li class="{f:if(condition:'{it.cycle}==1',then:'current',else:'')}"
|
|
|
|
|
+ style="{f:if(condition:'{it.cycle}>10',then:'display:none;',else:'')}"
|
|
|
|
|
+ data-page="{it.cycle}"
|
|
|
|
|
+ >
|
|
|
|
|
+ <a class="goto-page" data-page="{it.cycle}" href="#page-{it.cycle}" title="{f:translate(key:'go-to-page')}{it.cycle}">
|
|
|
|
|
+ {it.cycle}
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ </f:for>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+
|
|
|
|
|
+ <a class="goto-page" data-page="{lastPage}" href="#page-{lastPage}" title="{f:translate(key:'go-to-last-page')}">
|
|
|
|
|
+ <i class="fa fa-angle-double-right"></i>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- </ot:organizations.getFederationStructures>
|
|
|
|
|
-
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </ot:organizations.getFederationStructures>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|