Browse Source

add include docs, minor ui improvement

Olivier Massot 4 years ago
parent
commit
8ebffc98f9
2 changed files with 25 additions and 1 deletions
  1. 24 0
      doc/include_iframe_structures.md
  2. 1 1
      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>

+ 1 - 1
pages/structures/index.vue

@@ -271,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 }}"