--- a/cms/app-client/app/templates/application.hbs Thu Jan 21 00:11:10 2016 +0100
+++ b/cms/app-client/app/templates/application.hbs Thu Jan 21 21:07:02 2016 +0100
@@ -11,17 +11,20 @@
{{partial "results"}}
</div>
-{{#if isShowingModal}}
+{{#if detail}}
{{#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>
+ <div class="dialog-header">
+ <h2>Document details</h2>
+ </div>
+ <h3>{{modalItem.title}}</h3>
+ <p><b>Description: </b>{{modalItem.description}}</p>
+ <p><b>Interviewer: </b>{{modalItem.interviewer}}</p>
+ <p><b>Type de Discours: </b>{{modalItem.type}}</p>
+ <p><b>Localisation: </b>{{modalItem.spatial}}</p>
+ <p><b>Langue: </b>{{modalItem.language}}</p>
+ <p><b>Date de Creation: </b>{{modalItem.created}}</p>
<button class="pull-right" {{action 'toggleModal'}}>Close</button>
</div>
{{/ember-wormhole}}