<ol class="breadcrumb">
	<li><a href="#/">Dashboard</a></li>
	<li>Settings</li>
	<li><a href="#/message-templates">Message Templates</a></li>
	<li class="active">Message Template Details</li>
</ol>

<div class="container-fluid">
	<div class="row">
		<div class="col-md-12">
			<tabset tab-theme="orange" tab-position="top">
				<tab heading="General Information">
					<table class="table">
						<tbody>
							<tr>
								<th width="15%">Name:</th>
								<td>{{vm.message_template.name}}</td>
							</tr>
							<tr>
								<th>Subject:</th>
								<td>{{vm.message_template.subject}}</td>
							</tr>
							<tr ng-if="vm.message_template.description">
								<th>Description:</th>
								<td ng-bind-html="vm.message_template.description"></td>
							</tr>
							<tr ng-if="vm.message_template.attachments.length">
								<th>Attachments:</th>
								<td>
									<div ng-repeat="attachment in vm.message_template.attachments">
										<a href="{{attachment.url}}" target="_blank">{{attachment.name}}</a>
									</div>
								</td>
							</tr>
						</tbody>
					</table>
				</tab>
				<li class="tab-controls dropdown" dropdown>
					<a class="dropdown-toggle" dropdown-toggle>
						<i class="ti ti-settings"></i>&nbsp;&nbsp;Actions&nbsp;&nbsp;<span class="caret"></span>
					</a>
					<ul class="dropdown-menu pull-left">
						<li><a href="#/message-templates/{{vm.message_template.id}}/edit">Edit</a></li>
						<li><a ng-click="vm._destroy(vm.message_template.id)">Delete</a></li>
					</ul>
				</li>
			</tabset>
		</div>
	</div>
</div>
