<ion-view view-title="日报模板设置">
    <ion-content>
        <ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
        <div class="item item-divider"></div>
        <div ng-if="loading" class="center init-load action-sheet-backdrop">
            <ion-spinner icon="android"></ion-spinner>
        </div>
        <ion-list ng-show="!loading">
            <ion-item class="item item-icon-right positive" type="item-text-wrap" href="#/daily-templateScope/-1">
                新建日报模板
                <i class="icon ion-android-add positive"></i>
            </ion-item>
            <div ng-repeat="template in templates.results">
                <div class="item item-divider"></div>
                <ion-item class="mobanitem" ng-click="gosetmoban(template);">
                    <ion-item class="item item-icon-right " type="item-text-wrap">
                        {{template.name}}
                        <i class="icon ion-chevron-right icon-accessory"></i>
                    </ion-item>
                    <div class="item itemfield">
                        <label>{{template.description}}</label>
                    </div>
                </ion-item>
            </div>
        </ion-list>
        <ion-infinite-scroll spinner="android" ng-if="moreCanBeLoaded()" on-infinite="loadMore()" distance="1%" immediate-check="false"></ion-infinite-scroll>
    </ion-content>
</ion-view>
