<!-- 任务详情页面 -->
<header class="bar bar-header bar-{{barTheme}}">
	<button class="button icon-left ion-ios-arrow-back button-clear sino-back-button" ng-click="goBack()">{{fromState.data.title}}</button>
	<h1 class="title">&nbsp;&nbsp;</h1>
	<button class="button button-icon icon" ng-class="{'ion-ios-chatboxes-outline': (task.status !== '0' && task.status !=='3'), 'ion-ios-compose-outline': (task.status === '0' || task.status ==='3')}" ng-click="toDetail()"></button>
</header>

<ion-content class="has-header task-content view-task-content" scroll="true">
	<div class="list">
		<label class="item item-text-wrap">
			<h2>{{task.title}}</h2>
			<p>
				{{parseType(task.type)}}
				&nbsp;&nbsp;
				<span>{{sendPersonName}}</span>
				&nbsp;&nbsp;
				{{task.status === '0' || task.status === '3'?parseDateStr(task.createDate):parseDateStr(task.sendDate)}}
			</p>
		</label>
		<div class="item item-body sino-content">
			<div compile="task.content" name="content" class="task-content"></div>
			<p ng-hide="isBlankContent(task.content)">无内容</p>
		</div>
		<div class="item">
			<p>
				<span>任务接收人：</span>
				<span class="break-word">
					{{handlePersonsNames?handlePersonsNames:'无。'}}
				</span>
			</p>
		</div>
	</div>
	<div ng-hide="task.status === '3' || task.status === '0' || taskFinish">
		<button class="button button-full button-clear ion-ios-stopwatch-outline button-balanced complete-task" ng-click="completeTask()">
			任务完成
		</button>
	</div>
	<div ng-show="task.status === '0' || task.status === '3'">
		<button class="button button-full button-clear ion-ios-trash-outline button-assertive delete-task" ng-click="deleteTask()">
			删除
		</button>
	</div>
</ion-content>