<!--  任务创建页面  -->
<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>
	<button class="button button-clear button-{{buttonTheme}}" ng-click="sendTask()">{{actionName}}</button>
</header>

<ion-content name="taskContent" class="has-header create-task" scroll="true" delegate-handle="taskFormScroll" ng-class="{'has-footerinput': !titleEditing}">
	<form name="$parent.taskForm" class="list card">
		<div class="item item-divider">
			类型与标题
		</div>
		<sino-select sino-options="item.value as item.label for item in items" name="type" ng-model="task.type"></sino-select>
		<label class="item item-input">
		  <input type="text" name="title" placeholder="任务标题" ng-model="task.title" ng-focus="titleInputFocus()" ng-blur="titleInputBlur()">
		</label>
		<div class="item item-divider" on-tap="showKeyboard()" stop-event>
			内容
		</div>
		<div class="item item-body sino-content" on-tap="showKeyboard()" stop-event>
			<span ng-hide="task.content"><此处显示任务内容></span>
			<div compile="task.content" name="content" on-long-press="onLongPress()" class="task-content"></div>
		</div>
	</form>
</ion-content>
<div class="bar bar-footer task-content-footer" keyboard-attach ng-show="!titleEditing">
	<div footer-input footer-input-options="footerInputOptions"></div>
</div>
