<md-dialog class="task-dialog" aria-label="New Task">
<form name="vm.fingerPrintForm" class="md-inline-form" novalidate>
<md-toolbar class="md-accent md-hue-2">
<div class="md-toolbar-tools" layout="row" layout-align="space-between center">
<!--临时-->
<span class="title">{{vm.title}}</span>
<md-button class="md-icon-button" ng-click="vm.closeDialog()">
<md-icon md-font-icon="icon-close" aria-label="Close dialog"></md-icon>
</md-button>
</div>
</md-toolbar>
<md-dialog-content ms-scroll>
<table class="simple list-view">
<thead>
</thead>
<tbody>
<div ng-if="vm.fingerPrints.length > 0">
<div>
<md-divider></md-divider>
<div ng-repeat="item in vm.fingerPrints| orderBy : 'id' ">
<div layout="row" layout-align="start center" flex>
<div flex>
<p ng-switch="item.finger">
<span ng-switch-when="1">左手拇指</span>
<span ng-switch-when="2">左手食指</span>
<span ng-switch-when="3">右手拇指</span>
<span ng-switch-when="4">右手食指</span>
<span ng-switch-when="5">其他</span>
</p>
</div>
<div layout="row" layout-align="start center">
<md-switch aria-label="isValid" data-ng-click="vm.editFingerPrint(item.id)" class="switch-mtb" ng-model="item.isValid"></md-switch>
<md-icon ng-click="vm.deleteFingerPrint(item.id)" class="md-secondary" md-font-icon="icon-close-circle" aria-label="remove">
</md-icon>
</div>
</div>
<md-divider></md-divider>
</div>
</div>
</div>
<div layout="row" layout-align="space-between end">
<md-input-container class="md-block" flex-gt-sm>
<label>添加指纹</label>
<md-select ng-model="vm.finger">
<md-option ng-repeat="row in vm.fingers" ng-value="row.id">
{{row.name}}
</md-option>
</md-select>
</md-input-container>
</div>
</tbody>
</table>
<span class="red-500-fg" ng-if="vm.captureCount>0">请将手指放在指纹仪上再移开,并重复此步骤</span>
<img ng-if="vm.captureCount>0" id="fingerPrintImg" ng-src="{{vm.imgSrc}}" width="96px" height="96px" />
</md-dialog-content>
</form>
</md-dialog>