modal-vote.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <ion-modal-view>
  2. <ion-header-bar class="bar bar-header">
  3. <button class="button button-clear button-calm" ng-click="cancel('vote');">取消</button>
  4. <h1 class="title">投票</h1>
  5. <button class="button button-clear button-calm" ng-click="ok('vote');">完成</button>
  6. </ion-header-bar>
  7. <ion-content>
  8. <div class=" item item-divider"></div>
  9. <div class="list notice-input">
  10. <label class="item item-input">
  11. <span class="input-label">标题:</span>
  12. <input type="text" class="notice-title" placeholder="输入投票标题" ng-model="noticedata.vote_title" ng-if="noticedata.disablededit.showadditem" focus-me="true">
  13. <label ng-if="!noticedata.disablededit.showadditem">{{noticedata.vote_title}}</label>
  14. </label>
  15. <label class="item item-input item-select">
  16. <div class="input-label">
  17. 类型
  18. </div>
  19. <select ng-model="noticedata.vote_selecttype" ng-options="x.id as x.name for x in selectdatas" ng-disabled="!noticedata.disablededit.showadditem"></select>
  20. </label>
  21. <ion-item class="item item-icon-right" type="item-text-wrap" ng-disabled="!noticedata.disablededit.showadditem" ng-click="checkend_dd('vote');">
  22. 截止日期
  23. <label class="label-right-text item-note">{{noticedata.vote_enddd | date:"y年MM月dd日"}}</label>
  24. <i class="icon ion-chevron-right icon-accessory"></i>
  25. </ion-item>
  26. <div class=" item item-divider"></div>
  27. <ion-item class="item item-text-wrap item-icon-left" ng-repeat="_item in noticedata.selectitems track by $index" ng-if="noticedata.disablededit.showadditem">
  28. <i class="icon ion-android-remove-circle" style="color:red;" ng-click="removeItem($index);"></i>
  29. <input type="text" placeholder="请输入选项标题" ng-model="_item.text" focus-me="true"/>
  30. </ion-item>
  31. <ion-item class="item item-icon-left" ng-click="addItem();" ng-if="noticedata.disablededit.showadditem">
  32. <i class="icon ion-plus-circled balanced"></i> 选项
  33. </ion-item>
  34. <div ng-show="!noticedata.disablededit.showadditem">
  35. <ion-item class="item item-text-wrap" ng-click="" ng-repeat="_item in editvotedata track by $index">
  36. {{_item.text}}
  37. </ion-item>
  38. </div>
  39. </div>
  40. </ion-content>
  41. <div class="bar bar-footer bar-balanced footer" ng-click='delete("vote");' ng-show="noticedata.showvoteDelete">
  42. <div class="title">删除</div>
  43. </div>
  44. </ion-modal-view>