<ion-view view-title="审批步骤设置" hide-tabs="true">
    <ion-nav-buttons style="border:none" side="right">
        <button class="button button-icon ion-ios-more" ng-if="is_show_delete!=true" ng-click="popover.show($event)"></button>
        <button class="button button-clear" ng-if="is_show_delete" ng-click="ok();">完成</button>
    </ion-nav-buttons>
    <ion-content>
        <div class="item item-divider dividercolor">可以设置每个人的审批步骤</div>
        <ion-refresher pulling-text="下拉刷新" pulling-icon="ion-ios-arrow-thin-down" on-refresh="doRefresh()"></ion-refresher>
        <ion-list class="audit-list" show-delete="is_show_delete">
            <div ng-repeat="result in resultdata track by $index">
                <div class="rj-contacts-index-bar item-remove-animate" id="index_{{result.sortchar}}">{{result.sortchar}}</div>
                <ion-item ng-repeat="person in result.persons track by $index" ng-click="toedit(person.emp.id)" class="item-thumbnail-left item-icon-right over-flow-auto item-text-wrap">
                    <img ng-src="../../../img/panda.png">
                    <h2>{{person.emp.username}}</h2>
                    <p ng-style="">{{person.emp.degree}}</p>
                    <ion-delete-button class="ion-minus-circled" ng-click="removeItem(person.emp,result.sortchar)">
                    </ion-delete-button>
                    <p class="label-right-text">{{person.checknames}}</p>
                    <i class="icon ion-chevron-right icon-accessory"></i>
                </ion-item>
            </div>
            <ion-item class="item-border">
            </ion-item>
        </ion-list>
    </ion-content>
    <div class="rj-contacts-right-bar" rj-position-middle on-drag="contacts_right_bar_swipe($event)">
        <div>&uarr;</div>
        <div>☆</div>
        <div ng-repeat="char in sortchars" ng-click="sortByChar(char,'index_{{char}}')">{{char}}</div>
    </div>
    <div class="rj-contacts-middle-bar" ng-show="is_show_middle">
        {{sortchar}}
    </div>
    <script id="templates/add.html" type="text/ng-template">
        <ion-popover-view class="popver_view">
            <ion-content>
                <ion-list>
                    <ion-item class="item item-button" type="item-text-wrap" ng-click="toadd();">添加成员</ion-item>
                    <ion-item class="item item-button" type="item-text-wrap" ng-click="displayremove();">移除成员</ion-item>
                </ion-list>
            </ion-content>
        </ion-popover-view>
    </script>
</ion-view>
