</div>
</div>
<div class="modal-footer">
+ <div class="col-md-2">
+ <input type="text" class="form-control" ng-hide="!require_initials"
+ id="initials" ng-model="args.initials" placeholder="[% l('Initials') %]"
+ ng-required="require_initials" />
+ </div>
<input type="submit" class="btn btn-primary" value="[% l('OK') %]"/>
<button class="btn btn-warning" ng-click="cancel()">[% l('Cancel') %]</button>
</div>
// specific settings from within their respective controllers
egCore.env.classLoaders.aous = function() {
return egCore.org.settings([
+ 'ui.staff.require_initials.patron_info_notes',
'circ.do_not_tally_claims_returned',
'circ.tally_lost',
'circ.obscure_dob',
}])
.controller('PatronNotesCtrl',
- ['$scope','$routeParams','$location','egCore','patronSvc','$uibModal',
-function($scope, $routeParams , $location , egCore , patronSvc , $uibModal) {
+ ['$scope', '$filter', '$routeParams','$location','egCore','patronSvc','$uibModal',
+function($scope, $filter, $routeParams , $location , egCore , patronSvc , $uibModal) {
$scope.initTab('other', $routeParams.id);
var usr_id = $routeParams.id;
function($scope, $uibModalInstance) {
$scope.focusNote = true;
$scope.args = {};
+ $scope.require_initials = egCore.env.aous['ui.staff.require_initials.patron_info_notes'];
$scope.ok = function(count) { $uibModalInstance.close($scope.args) }
$scope.cancel = function () { $uibModalInstance.dismiss() }
}],
note.value(args.value);
note.pub(args.pub ? 't' : 'f');
note.creator(egCore.auth.user().id());
+ if (args.initials)
+ note.value(note.value() + ' [' + args.initials + ']');
egCore.pcrud.create(note).then(function() {refreshPage()});
}
);