<ion-view view-title="设置选项" hide-nav-bar="false" hide-back-button="true">
    <ion-nav-buttons side="right">
        <button class="button button-clear" ng-click='ok();'>完成</button>
    </ion-nav-buttons>
    <ion-nav-buttons side="left">
        <button class="button button-clear" ng-click='cancel();'>取消</button>
    </ion-nav-buttons>
    <ion-content>
        <div class="item item-divider dividercolor dividertextcolor" ng-if="mobanitems.length>0||addmobanitems.length>0" ng-click="preview();">点击预览</div>
        <div class="item-divider item-divider-defineform"></div>
        <ion-list>
            <ion-item class="empclass item-icon-right" type="item-text-wrap" ng-repeat="item in mobanitems" ng-href="{{tohref(item)}}">
                <h2>{{item.fieldname}}<i class="ion-ios-compose-outline"></i></h2>
                <p class="from-p">字段类型：{{item.fieldtype.fieldtypename}}({{item.isrequiredname}})</p>
                <i class="icon ion-navicon-round icon-accessory"></i>
            </ion-item>

            <ion-item class="empclass item-icon-right" type="item-text-wrap" ng-repeat="item in addmobanitems" ng-href="{{tohref(item)}}">
                <h2>{{item.fieldname}}<i class="ion-ios-compose-outline"></i></h2>
                <p class="from-p">字段类型：{{item.fieldtype.fieldtypename}}({{item.isrequiredname}})</p>
                <i class="icon ion-navicon-round icon-accessory"></i>
            </ion-item>
        </ion-list>
        <div class="item-divider item-divider-defineform"></div>
        <ion-item class="positive" type="item-text-wrap" style="text-align:center" ng-href="#/fieldtype/-1">
            添加字段&nbsp;<i class="ion-plus"></i>
        </ion-item>
        <div class="desctext">比如:请假时间、请假类型、请假理由...</div>
    </ion-content>
</ion-view>