cms/app-client/app/templates/application.hbs
changeset 91 acfeddc7821d
parent 84 36f84e8f1ad5
child 94 62984937a062
--- a/cms/app-client/app/templates/application.hbs	Wed Jan 20 15:53:27 2016 +0100
+++ b/cms/app-client/app/templates/application.hbs	Wed Jan 20 23:05:52 2016 +0100
@@ -10,3 +10,19 @@
   </div>
   {{partial "results"}}
 </div>
+
+{{#if isShowingModal}}
+  {{#ember-wormhole to='info-modal'}}
+    <div class="overlay" {{action 'toggleModal'}}></div>
+    <div class="dialog">
+      <h1>{{currentDetails.title}}</h1>
+      <p><b>Description: </b>{{currentDetails.description}}</p>
+      <p><b>Interviewer: </b>{{currentDetails.interviewer}}</p>
+      <p><b>Type de Discours: </b>{{currentDetails.type}}</p>
+      <p><b>Localisation: </b>{{currentDetails.spatial}}</p>
+      <p><b>Langue: </b>{{currentDetails.language}}</p>
+      <p><b>Date de Creation: </b>{{currentDetails.created}}</p>
+      <button class="pull-right" {{action 'toggleModal'}}>Close</button>
+    </div>
+  {{/ember-wormhole}}
+{{/if}}