LP#1842940: Improve Alert
[Evergreen.git] / Open-ILS / src / templates / staff / circ / patron / reg_actions.tt2
index c5aabcb..6f4ef6e 100644 (file)
 <div class="flex-cell"></div>
 <div>
   <span class="pad-all-min">
+    <button type="button" class="btn btn-default"
+      ng-click="edit_passthru.print()">[% l('Print') %]</button>
+  </span>
+  <span class="pad-all-min">
     <button type="button" class="btn btn-default" 
       ng-disabled="edit_passthru.hide_save_actions()"
       ng-click="edit_passthru.save()">[% l('Save') %]</button>
       ng-disabled="edit_passthru.hide_save_actions()"
       ng_click="edit_passthru.save({clone:true})">[% l('Save & Clone') %]</button>
   </span>
+  <div id="no-edit-alert-container">
+    <div class="alert alert-warning" ng-show="edit_passthru.self_edit_disallowed()">
+      [% l('Editing your own account is disallowed') %]
+    </div>
+    <div class="alert alert-warning" ng-show="edit_passthru.group_edit_disallowed()">
+      [% l('Editing users in this group is disallowed') %]
+    </div>
+  </div>
 </div>