task-detail.html 940 B

123456789101112131415
  1. <ion-view view-title="任务">
  2. <ion-nav-buttons side="right">
  3. <button ng-if="data.id != null" class="button button-icon icon ion-minus-round" ng-click="deleteTask()"></button>
  4. </ion-nav-buttons>
  5. <ion-content>
  6. <label class="item item-input">
  7. <input ng-model="data.title" type="text" placeholder="标题">
  8. </label>
  9. <label class="item item-input">
  10. <textarea ng-model="data.description" rows="6" placeholder="对该任务的描述"></textarea>
  11. </label>
  12. <div ng-if="data.is_completed != null" ng-class='{true:"item-balanced",false:"item-energized"}[data.is_completed]' class="item" ng-click="completed()">{{data.is_completed ? '已完成' : '标记为已完成'}}</div>
  13. <button ng-disabled="(data.title == null || data.title == '') && (data.description == null || data.description == '')" class="button button-block button-positive" ng-click="addTask()">提交</button>
  14. </ion-content>
  15. </ion-view>