LP#1402797 Require, and use, initials on penalty creation
authorMike Rylander <mrylander@gmail.com>
Tue, 27 Jan 2015 17:33:13 +0000 (12:33 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 25 Feb 2015 16:16:06 +0000 (11:16 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/staff/circ/share/t_new_message_dialog.tt2
Open-ILS/web/js/ui/default/staff/circ/services/circ.js

index a656e38..a3dab2b 100644 (file)
       </div>
     </div>
     <div class="modal-footer">
-      <input type="submit" class="btn btn-primary" value="[% l('OK') %]"/>
-      <button class="btn btn-warning" ng-click="cancel($event)">[% l('Cancel') %]</button>
+      <div class="row">
+        <div class="col-md-2">
+          <input type="text" class="form-control" 
+            ng-model="args.initials" placeholder="[% l('Initials') %]" required/>
+        </div>
+        <div class="col-md-10 pull-right">
+          <input type="submit" class="btn btn-primary" value="[% l('OK') %]"/>
+          <button class="btn btn-warning" ng-click="cancel($event)">[% l('Cancel') %]</button>
+        </div>
+      </div>
     </div>
 </form>
index 27d8ed4..cd60333 100644 (file)
@@ -1460,7 +1460,7 @@ function($modal , $q , egCore , egAlertDialog , egConfirmDialog) {
                 var pen = new egCore.idl.ausp();
                 pen.usr(user_id);
                 pen.org_unit(egCore.auth.user().ws_ou());
-                pen.note(args.note);
+                pen.note(args.note + ' [' + args.initials + ']');
                 if (args.custom_penalty) {
                     pen.standing_penalty(args.custom_penalty);
                 } else {