<ol class="breadcrumb">
	<li><a href="#/">Dashboard</a></li>
	<li><a href="#/to-dos">To Dos</a></li>
	<li class="active">To Do 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%">Title:</th>
								<td>{{vm.todo.title}}</td>
							</tr>
							<tr>
								<th>Date:</th>
								<td>{{vm.todo.created_at_formatted}}</td>
							</tr>
							<tr>
								<th>Employee:</th>
								<td>{{vm.todo.employee.name}}</td>
							</tr>
							<tr>
								<th>Due Date:</th>
								<td>{{vm.todo.due_date_formatted}}</td>
							</tr>
							<tr>
								<th>Status:</th>
								<td>
									<span class="badge" ng-class="{'badge-success': vm.todo.status_formatted == 'Done', 'badge-danger': vm.todo.status_formatted == 'Pending'}">{{vm.todo.status_formatted}}</span>
								</td>
							</tr>
							<tr>
								<th>Description:</th>
								<td>{{vm.todo.description}}</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 ng-if="vm.todo.status_formatted == 'Pending'"><a ng-click="vm._done(vm.todo.id)">Done</a></li>
						<li ng-if="vm.todo.status_formatted == 'Pending'" class="divider"></li>
						<li><a href="#/to-dos/{{vm.todo.id}}/edit">Edit</a></li>
						<li><a ng-click="vm._destroy(vm.todo.id)">Delete</a></li>
					</ul>
				</li>
			</tabset>
		</div>
	</div>
</div>
