Browse Source

upgrade classic/structures layout

Olivier Massot 4 năm trước cách đây
mục cha
commit
3e5eac9cb0

+ 5 - 87
ot_templating/Resources/Private/Layouts/Classic/Structures.html

@@ -10,93 +10,11 @@
 <div class="main">
     <f:comment><!-- Central column --></f:comment>
     <div class="content">
-        <f:comment><!-- All members --></f:comment>
-        <h2><f:translate key="member-companies"/></h2>
-
-        <div class="ot-structures">
-
-            <ot:organizations.getChildren as="structuresCollection"
-                                          organizationId="{settings.organizationId}">
-
-                <div class="ot-structures">
-                    <div class="structure-controls">
-                        <div class="structure-search">
-                            <form>
-                                <input type="text"
-                                       name="search-loc"
-                                       placeholder="{f:translate(key: 'where')}?"
-                                       value="{ot:request.getArgument(argument: 'search-loc')}"/>
-
-                                <f:comment><!--
-                                Important: if the cache is not disabled,
-                                 then the results won't be updated even after submitting this form
-                                 --></f:comment>
-                                <input type="hidden"
-                                       name="no_cache"
-                                       value="1">
-
-                                <button name="search-submit"><f:translate key="find"/></button>
-                            </form>
-                        </div>
-
-                        <div id="structure-map">
-                            <f:for each="{structuresCollection.members}" as="structure" iteration="it">
-                                <f:if condition="{structure.longitude}">
-                                    <i class="item-geodata" style="display: none;"
-                                       data-id="{structure.id}"
-                                       data-long="{structure.longitude}"
-                                       data-lat="{structure.latitude}"
-                                       data-label="<b>{structure.name}</b><br/>{structure.streetAdress}<br/>{structure.postalCode} {structure.addressCity}">
-                                    </i>
-                                </f:if>
-                            </f:for>
-                        </div>
-                    </div>
-
-                    <div class="structure-results">
-                        <f:if condition="{structuresCollection.totalItems} == 0">
-                            <span><f:translate key="no-result"/></span>
-                        </f:if>
-
-                        <f:for each="{structuresCollection.members}" as="structure">
-                            <div class="structure" data-id="{structure.id}">
-                                <div class="structure-preview">
-
-                                    <div class="structure-poster">
-                                        <f:if condition="{structure.logo}">
-                                            <f:then>
-                                                <img src='{structure.logo}' 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-summary">
-                                        <span class="structure-name">
-                                            {structure.name}
-                                        </span>
-                                        <span class="structure-adress">
-                                            {structure.streetAdress}<br/>
-                                            {structure.postalCode} {structure.addressCity}
-                                        </span>
-                                    </div>
-                                </div>
-
-                                <a href="https://{structure.subdomain}.opentalent.fr" class="structure-see">
-                                    <i class="fa fa-plus" style="margin-right: 5px;"></i>
-                                    <span><f:translate key="see"/></span>
-                                </a>
-                            </div>
-                        </f:for>
-
-                        {ot:pagination(collection: structuresCollection)}
-                    </div>
-                </div>
-            </ot:organizations.getChildren>
-
-        </div>
+        <iframe title="structures"
+                width="100%"
+                height="2600px"
+                src="https://frames.opentalent.fr/structures?parent={settings.organizationId}&theme={ot:template.getPreference(key: 'themeColor')}"
+                style="border: none !important; max-width: 100% !important; height: 2600px !important; width: 100% !important;"/>
     </div>
 </div>