LP#1842940: Improve Alert
authorMike Rylander <mrylander@gmail.com>
Tue, 17 Sep 2019 15:07:04 +0000 (11:07 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Tue, 1 Oct 2019 22:52:05 +0000 (15:52 -0700)
Attempt to float the alerts below the sticky bar and above the main
content of the user editor.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/templates/staff/circ/patron/reg_actions.tt2
Open-ILS/src/templates/staff/css/circ.css.tt2

index 72969fc..6f4ef6e 100644 (file)
       ng-disabled="edit_passthru.hide_save_actions()"
       ng_click="edit_passthru.save({clone:true})">[% l('Save & Clone') %]</button>
   </span>
-  <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 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>
 
index 798117e..3e44581 100644 (file)
@@ -196,6 +196,12 @@ but the ones I'm finding aren't quite cutting it..*/
   margin-bottom: 5px;
 }
 
+#no-edit-alert-container {
+  position: absolute;
+  bottom: -200px;
+  z-index: 10;
+}
+
 /* -- end patron registration -- */
 
 [%#