for="verify-username">[% l('Username') %]</label>
<div class="col-md-8">
<input type="text" id="verify-username" class="form-control"
- focus-me="focusMe" ng-disabled="prepop"
+ focus-me="focusMe" ng-disabled="prepop" autocomplete="off"
placeholder="[% l('Username') %]" ng-model="username"/>
</div>
</div>
for="verify-barcode">[% l('Barcode') %]</label>
<div class="col-md-8">
<input type="text" id="verify-barcode" class="form-control"
- ng-disabled="prepop"
+ ng-disabled="prepop" autocomplete="off"
placeholder="[% l('Barcode') %]" ng-model="barcode"/>
</div>
</div>
<label class="col-md-4 control-label"
for="verify-password">[% l('Password') %]</label>
<div class="col-md-8">
- <input type="password" id="verify-password" class="form-control"
+ <input autocomplete="off" type="password" id="verify-password" class="form-control"
placeholder="[% l('Password') %]" ng-model="password"/>
</div>
</div>
// called with a patron, pre-populate the form args
$scope.initTab('other', $routeParams.id).then(
function() {
- if ($scope.patron()) {
+ if ($routeParams.id && $scope.patron()) {
$scope.prepop = true;
$scope.username = $scope.patron().usrname();
$scope.barcode = $scope.patron().card().barcode();
+ } else {
+ $scope.username = '';
+ $scope.barcode = '';
+ $scope.password = '';
}
}
);