<ion-view view-title="日程详情">
    <ion-nav-buttons side="right">
        <button class="button button-icon ion-ios-more" ng-click="popover.show($event)"></button>
    </ion-nav-buttons>
    <ion-content>
        <ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
        <div ng-if="loading" class="center init-load action-sheet-backdrop">
            <ion-spinner icon="android"></ion-spinner>
        </div>
        <ion-item ng-if="!loading" ng-class="{true:'item-icon-right schedule-details-header-disable',false:'item-icon-right schedule-details-header'}[isOver]">
            <!--<p>{{execute_dd_title}}</p>-->
            <!--<span>{{details.create_user_name}}安排的日程</span>-->
            <span>我的日程</span>
            <i class="icon icon-Expired1 schedule-icon-position1" ng-if="isOver"></i>
        </ion-item>
        <ion-item ng-if="!loading" class="item-icon-right">
            <p ng-bind-html="details.content | SwitchHtmlContent"></p>
        </ion-item>
        <!--<ion-item class="item-icon-left">
            <i class="icon ion-ios-person-outline"></i>
            <p>日程人员：{{scheduleMemberNames}}</p>
        </ion-item>-->
        <ion-item ng-if="!loading" class="item-icon-left item-text-wrap" ng-show="details.repeat_type != 0">
            <i class="icon ion-ios-infinite-outline"></i>
            <p>{{ details.repeat_type != "0" ? repeat_req_title + "重复" : ""}} {{ details.end_date == null ? "" : details.end_date | date:'yyyy-MM-dd' }}
                {{details.end_date == null ? "" : "结束" | date:'yyyy-MM-dd' }}</p>
        </ion-item>
    </ion-content>
    <div class="tabs tabs-icon-left schedule-details-footer" ng-show="isShowRemoveMember">
        <button class="button button-full button-light account-botton" ng-click="deleteMember(removeSchdulememberId)">退出日程
        </button>
    </div>
    <script id="templates/detailsmenu.html" type="text/ng-template">
        <ion-popover-view ng-class="{true:'details-popup',false:'details-popup-other'}[cssstyle]" style="width:100px;height:100px">
            <ion-content>
                <ion-list>
                    <ion-item class="item item-button" ng-click="edit()" ng-show="!isOver">编辑</ion-item>
                    <ion-item class="item item-button" ng-click="deleteSchedule()">删除</ion-item>
                </ion-list>
            </ion-content>
        </ion-popover-view>
    </script>
</ion-view>