1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <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="template_items.length>0" ng-click="preview();">点击预览</div>
- <div class="item-divider item-divider-defineform"></div>
- <ion-list ng-if="!is_customer">
- <ion-item ng-repeat="templateitem in template_items|filter:{required:true}" disabled="true" class="item item-icon-right over-flow-auto item-text-wrap">
- {{templateitem.name}}
- <p class="label-right-text">{{templateitem.required?"必填":"选填"}}</p>
- <i class="icon ion-chevron-right icon-accessory"></i>
- </ion-item>
- <div ng-if="!is_customer" ng-repeat="templateitem in template_items|filter:{required:false}">
- <div class="item-divider item-divider-defineform"></div>
- <label class="item item-input item-select">
- <div class="input-label">
- {{templateitem.name}}
- </div>
- <select>
- <option>必填</option>
- <option>选填</option>
- <option>不显示</option>
- </select>
- </label>
- </div>
- </ion-list>
- <ion-list ng-if="is_customer">
- <ion-item class="empclass item-icon-right item-text-wrap" ng-repeat="item in template_items" ng-click="toSetItem(1)">
- <h2>{{item.name}}<i class="ion-ios-compose-outline"></i></h2>
- <p class="from-p">字段类型:{{item.fieldtype.fieldtypename}}({{item.required?"必填":"选填"}})</p>
- <i class="icon ion-navicon-round icon-accessory"></i>
- </ion-item>
- </ion-list>
- <div ng-if="is_customer" class="item-divider item-divider-defineform"></div>
- <ion-item class="positive" type="item-text-wrap" style="text-align:center" ng-click="toSetItem(-1)" ng-if="is_customer">
- 添加字段 <i class="ion-plus"></i>
- </ion-item>
- <div class="desctext" ng-if="is_customer">比如:请假时间、请假类型、请假理由...</div>
- </ion-content>
- </ion-view>
|