cms/app-client/app/templates/results.hbs
changeset 84 36f84e8f1ad5
parent 82 d489885d116d
child 87 24fef043ea0b
--- a/cms/app-client/app/templates/results.hbs	Fri Jan 15 15:48:42 2016 +0100
+++ b/cms/app-client/app/templates/results.hbs	Fri Jan 15 15:49:42 2016 +0100
@@ -29,6 +29,22 @@
       <div class="description">
         {{item.description}}
       </div>
+      <button class="pull-right" {{action 'toggleModal' item}}>Details</button>
     </div>
   {{/each}}
+  {{#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}}
 </div>