workflow-templateitemset.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <ion-view view-title="设置选项" hide-nav-bar="false" hide-back-button="true">
  2. <ion-nav-buttons side="right">
  3. <button class="button button-clear" ng-click='ok();'>完成</button>
  4. </ion-nav-buttons>
  5. <ion-nav-buttons side="left">
  6. <button class="button button-clear" ng-click='cancel();'>取消</button>
  7. </ion-nav-buttons>
  8. <ion-content>
  9. <div class="item item-divider dividercolor dividertextcolor" ng-if="template_items.length>0" ng-click="preview();">点击预览</div>
  10. <div class="item-divider item-divider-defineform"></div>
  11. <ion-list ng-if="!is_customer">
  12. <ion-item ng-repeat="templateitem in template_items|filter:{required:true}" disabled="true" class="item item-icon-right over-flow-auto item-text-wrap">
  13. {{templateitem.name}}
  14. <p class="label-right-text">{{templateitem.required?"必填":"选填"}}</p>
  15. <i class="icon ion-chevron-right icon-accessory"></i>
  16. </ion-item>
  17. <div ng-if="!is_customer" ng-repeat="templateitem in template_items|filter:{required:false}">
  18. <div class="item-divider item-divider-defineform"></div>
  19. <label class="item item-input item-select">
  20. <div class="input-label">
  21. {{templateitem.name}}
  22. </div>
  23. <select>
  24. <option>必填</option>
  25. <option>选填</option>
  26. <option>不显示</option>
  27. </select>
  28. </label>
  29. </div>
  30. </ion-list>
  31. <ion-list ng-if="is_customer">
  32. <ion-item class="empclass item-icon-right item-text-wrap" ng-repeat="item in template_items" ng-click="toSetItem(1)">
  33. <h2>{{item.name}}<i class="ion-ios-compose-outline"></i></h2>
  34. <p class="from-p">字段类型:{{item.fieldtype.fieldtypename}}({{item.required?"必填":"选填"}})</p>
  35. <i class="icon ion-navicon-round icon-accessory"></i>
  36. </ion-item>
  37. </ion-list>
  38. <div ng-if="is_customer" class="item-divider item-divider-defineform"></div>
  39. <ion-item class="positive" type="item-text-wrap" style="text-align:center" ng-click="toSetItem(-1)" ng-if="is_customer">
  40. 添加字段&nbsp;<i class="ion-plus"></i>
  41. </ion-item>
  42. <div class="desctext" ng-if="is_customer">比如:请假时间、请假类型、请假理由...</div>
  43. </ion-content>
  44. </ion-view>