<ion-modal-view>
    <ion-header-bar>
        <button class="button button-clear" ng-click="closeModalChkReason('cancel')">取消</button>
        <h1 class="title">
            <span ng-if="(data.checktype==1 || data.checktype==3) && !data.isoutside">迟到理由</span>
            <span ng-if="(data.checktype==2 || data.checktype==4) && !data.isoutside">早退理由</span>
            <span ng-if="(outsidetype == 0&&data.isoutside)">外勤</span>
            <span ng-if="(outsidetype == 1&&data.isoutside)">出差</span>
            <span ng-if="(outsidetype == 2&&data.isoutside)">其他</span>
        </h1>
        <button class="button button-clear" ng-click="closeModalChkReason('ok')" ng-disabled="data.content.length<2">完成</button>
    </ion-header-bar>
    <ion-content>
        <textarea style="width: 100%; height: 500px;padding: 10px;" ng-model="data.content" placeholder="请输入理由"></textarea>
    </ion-content>
</ion-modal-view>
