Browse Source

Merge branch 'release/1.0.0b2'

Olivier Massot 4 năm trước cách đây
mục cha
commit
f053491d31
2 tập tin đã thay đổi với 26 bổ sung9 xóa
  1. 24 0
      doc/include_iframe_structures.md
  2. 2 9
      pages/structures/index.vue

+ 24 - 0
doc/include_iframe_structures.md

@@ -0,0 +1,24 @@
+# Inclure une iframe à un site web
+
+## Iframe 'Recherche des structures'
+
+Pour inclure cette iframe, ajoutez le code suivant à votre page:
+
+    <iframe
+            src="https://frames.opentalent.fr/structures/?parent=[id]&theme=[color]&view=map"
+            referrerpolicy="strict-origin"
+            style="border: none;width: 100%;max-width: 100%;height: 3600px;"
+            onload="iFrameResize()"
+    ></iframe>
+
+Remplacez `[id]` par l'id de votre organisation
+
+Remplacez `[color]` par le thème adapté à votre page (options: *blue*, *green*, *grey*, *light-blue*, 
+*light-red*, *orange*, *purple*, *red*)
+
+(optionnel) Vous pouvez changer l'affichage par défaut en modifiant l'option 'view' (options: *map*, *list*)
+
+Enfin, incluez à votre page le fichier suivant: 
+[iframeResizer.min.js](https://raw.githubusercontent.com/davidjbradshaw/iframe-resizer/master/js/iframeResizer.min.js)
+
+    <script type="text/javascript" src="https://raw.githubusercontent.com/davidjbradshaw/iframe-resizer/master/js/iframeResizer.min.js"></script>

+ 2 - 9
pages/structures/index.vue

@@ -208,14 +208,7 @@
                         :contain="true"
                         style="margin: 12px;"
                       />
-                      <v-skeleton-loader
-                        v-else
-                        type="card-avatar"
-                        boilerplate
-                        width="164px"
-                        height="84px"
-                        style="margin: 10px 50px;"
-                      />
+                      <div v-else style="height: 104px; width: 264px"></div>
                     </div>
 
                     <div :class="'d-flex flex-column' + (listview ? ' flex-grow-1' : '')">
@@ -278,7 +271,7 @@
 
                     <span v-if="mapview" class="flex-fill" />
 
-                    <v-card-actions :class="listview ? 'align-self-end' : ''">
+                    <v-card-actions :class="listview ? 'align-self-end' : 'justify-end'">
                       <v-btn
                         class="see"
                         :to="{path: '/structures/' + structure.id, query: { parent: parent, view: view, theme: theme }}"