Webstaff: implement Operator Change (and Operator Restore)
[working/Evergreen.git] / Open-ILS / src / templates / staff / navbar.tt2
index db4ae08..7430f6a 100644 (file)
     <!-- entries along the right side of the navbar -->
     <ul class="nav navbar-nav navbar-right" style='margin-right: 6px;'>
       <li>
-        <a ng-cloak ng-show="username" 
+        <a ng-cloak ng-show="username" title="{{currentToken()}}"
           ng-init="workstation = '[% l('<no workstation>') %]'">
             [% l('{{username}} @ {{workstation}}') %]
         </a>
         <a href class="glyphicon glyphicon-list" 
           uib-dropdown-toggle></a>
         <ul uib-dropdown-menu>
-          <li class="disabled">
-            <a href="" ng-click="" target="_self">
+          <li ng-if="!op_changed">
+            <a href="" ng-click="changeOperator()">
               <span class="glyphicon glyphicon-random"></span>
               [% l('Change Operator') %]
             </a>
           </li>
+          <li ng-if="op_changed">
+            <a href="" ng-click="changeOperatorUndo()">
+              <span class="glyphicon glyphicon-random"></span>
+              [% l('Restore Operator') %]
+            </a>
+          </li>
           <li>
             <a href="./login" ng-click="logout()" target="_self">
               <span class="glyphicon glyphicon-log-out"></span>