<ion-view view-title="{{reworkctrl.title}}">
  <ion-content>
    <ion-list>
      <ion-item ng-repeat="rework in reworkctrl.reworkItems" class="card stable-bg ink ink-dark item-checkbox"
                on-last-repeat="">
        <label class="checkbox checkbox-calm">
          <input class="pull-right" type="checkbox" ng-model="rework.checked" ng-checked="rework.checked">
        </label>

        <div class="item item-text-wrap">{{rework.name}}</div>
      </ion-item>
    </ion-list>
    <div ng-show="!reworkctrl.reworkItems.length" class="valign-wrapper empty-message">
      <div class="valign">
        <i class="icon ion-information-circled"></i>
        <br>
        {{'ThereAreNoDefectsToRework' | translate}}
      </div>
    </div>
  </ion-content>
  <ion-footer-bar class="padding">
    <button class="button button-positive button-large no-animation ink pull-right" ng-click="reworkctrl.click()">
      <span>{{'Done' | translate}}</span>
    </button>
  </ion-footer-bar>
</ion-view>
