cms/app-client/app/templates/results.hbs
changeset 56 c4a022ba3fc3
parent 52 87b6a104de8e
child 66 b7e750ed3ef5
--- a/cms/app-client/app/templates/results.hbs	Tue Dec 15 17:22:14 2015 +0100
+++ b/cms/app-client/app/templates/results.hbs	Tue Dec 15 17:22:55 2015 +0100
@@ -1,12 +1,28 @@
-<h2>This is the results</h2>
-<div class="corpus-app-content">
-  RESULTS
+<div class="result-header">
+  <h2>This is the results</h2>
   <p>
-    Tags: {{location}} {{langue}}
+    Tags:
+    {{#if location}}
+      <span>{{location}}<button {{action 'deleteTag' 'location'}}>✗</button></span>
+    {{/if}}
+    {{#if langue}}
+      <span>{{langue}}<button {{action 'deleteTag' 'langue'}}>✗</button></span>
+    {{/if}}
+    {{#if discours}}
+      <span>{{discours}}<button {{action 'deleteTag' 'discours'}}>✗</button></span>
+    {{/if}}
+    {{#if date}}
+      <span>{{date}}<button {{action 'deleteTag' 'date'}}>✗</button></span>
+    {{/if}}
+    {{#if thematique}}
+      <span>{{thematique}}<button {{action 'deleteTag' 'thematique'}}>✗</button></span>
+    {{/if}}
   </p>
+</div>
+<div class='result-list'>
   {{#each filteredSounds as |item| }}
-    <p>
-      <strong>{{ item.name }}</strong>
-    </p>
+    <div class='result-item'>
+      <strong>{{ item.title }}</strong>
+    </div>
   {{/each}}
 </div>