<ion-modal-view>
    <ion-header-bar class="bar bar-header">
        <button class="button button-clear" ng-click="closeModal();">取消</button>
        <h1 class="title">添加子任务</h1>
        <button class="button button-clear" ng-click="addchildtask();">完成</button>
    </ion-header-bar>
    <ion-content>
        <div class="item item-divider"></div>
        <div class="task-create-content">
            <div class="item item-input">
                <textarea rows="6" ng-model="childtask.content" autofocus="autofocus" placeholder="输入子任务详情"></textarea>
            </div>
        </div>
        <div class="item item-divider"></div>
        <ion-item class="item item-icon-right" type="item-text-wrap" ng-click="checkheader();">
            负责人
            <label class="label-right-text item-note">{{childtask.leader==null ? '选填':childtask.leader.username}}</label>
            <i class="icon ion-chevron-right icon-accessory"></i>
        </ion-item>
        <div class="item item-divider"></div>
        <ion-item class="item item-icon-right" type="item-text-wrap" ng-click="checkend_dd();">
            截止日期
            <label class="label-right-text item-note">{{childtask.end_dd == null ? '选填' : childtask.end_dd | date:'yyyy-MM-dd'}}</label>
            <i class="icon ion-chevron-right icon-accessory"></i>
        </ion-item>
    </ion-content>
</ion-modal-view>