LP#1743262: (follow-up) disable submit button if approval code not supplied
[Evergreen.git] / Open-ILS / src / templates / staff / circ / patron / t_cc_payment_dialog.tt2
index e25bd86..1551f56 100644 (file)
   </div><!--panel-->
 </div><!--modal-body-->
 <div class="modal-footer">
-  <button class="btn btn-primary" ng-click="ok()">[% l('Submit') %]</button>
+  <button class="btn btn-primary" ng-click="ok()" ng-disabled="context.cc.where_process == 0 && !context.cc.approval_code">[% l('Submit') %]</button>
   <button class="btn btn-warning" ng-click="cancel()">[% l('Cancel') %]</button>
 </div>