<template name="livechatTriggers">
	{{#requiresPermission 'view-livechat-manager'}}
		<div class="list">
			<table>
				<thead>
					<tr>
						<th width="30%">{{_ "Name"}}</th>
						<th width="50%">{{_ "Description"}}</th>
						<th width="20%">{{_ "Enabled"}}</th>
						<th>{{_ "Delete"}}</th>
					</tr>
				</thead>
				<tbody>
					{{#each triggers}}
						<tr class="trigger-info row-link" data-id="{{_id}}">
							<td>{{name}}</td>
							<td>{{description}}</td>
							<td>{{#if enabled}}{{_ "Yes"}}{{else}}{{_ "No"}}{{/if}}</td>
							<td><a href="#remove" class="remove-trigger"><i class="icon-trash"></i></a></td>
						</tr>
					{{/each}}
				</tbody>
			</table>
		</div>

		<a href="{{pathFor 'livechat-trigger-new'}}" class="button primary">{{_ "New_Trigger"}}</a>
	{{/requiresPermission}}
</template>
