Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
</div>
</div>
<div class="modal-footer">
- <input type="submit" class="btn btn-primary"
+ <input if="!sameUser" type="submit" class="btn btn-primary"
value="[% l('Normal Checkin then Checkout') %]"/>
+ <input ng-if="sameUser" type="submit" class="btn btn-primary"
+ value="[% l('Renew') %]"/>
<button class="btn btn-warning"
ng-click="cancel($event)">[% l('Cancel') %]</button>
</div>
}]
}).result.then(
function() {
-
+ if (sameUser) {
+ options.override = true;
+ return service.renew(params, options);
+ }
+
return service.checkin(
{barcode : params.copy_barcode, noop : true}
).then(function(checkin_resp) {