cms/app-client/app/templates/components/notice-component.hbs
author Chloe Laisne <chloe.laisne@gmail.com>
Thu, 25 Aug 2016 18:44:50 +0200
changeset 269 9659e91242e1
parent 231 b883755cc0b8
child 270 6ddc52965fb8
permissions -rw-r--r--
Add subjects to notice + Background color two notice type + Remove empty notice fields

{{#if model}}
<i class="fa fa-close" {{action 'close'}}>Close</i>
{{/if}}

<h2>Notice</h2>
<h3>{{ item.title }}</h3>
<table>
<tr>
	<td class="title">Editeur{{#if (if-operator item.publishers.length '>' 1)}}s{{/if}}</td>
	<td>
		<ul>
		{{#each item.publishers as |publisher|}}
			<li>{{ publisher }}</li>
		{{/each}}
		</ul>
	</td>
</tr>
<tr>
	<td class="title">Langue</td>
	<td>{{ doc-language url=item.language class="language"}}</td>
</tr>
<tr>
	<td class="title">Sujet{{#if (if-operator item.computedSubjects.length '>' 1)}}s{{/if}}</td>
	<td>
		<ul>
		{{#each item.computedSubjects as |subject|}}
			<li>
			{{#if subject.url}}
				<a href="{{subject.url}}" target="_blank">
					{{#if subject.name}}{{subject.name}}{{else}}{{component (getLinkType subject.url) url=subject.url}}{{/if}}
				</a>
			{{else}}
				{{subject.name}}
			{{/if}}
			</li>
		{{/each}}
		</ul>
	</td>
</tr>
<tr>
	<td class="title">Enregistré en</td>
	<td>{{ short-date item.issued }}</td>
</tr>
<tr>
	<td class="title">Participant{{#if (if-operator participants.length '>' 1)}}s{{/if}}</td>
	<td>
		<ul>
		{{#each participants as |participant|}}
			<li>{{ participant.name }} ({{ participant.role }})</li>
		{{/each}}
		</ul>
	</td>
</tr>
<tr>
	<td class="title">Lieu</td>
	<td>{{ location }}</td>
</tr>
<tr>
	<td class="title">Durée</td>
	<td>{{to-minutes item.duration}}</td>
</tr>
</table>