LP#1526185 op-change supplies egNet.handlePermFailure
[working/Evergreen.git] / Open-ILS / src / templates / staff / share / t_opchange.tt2
1 <!--
2   Username/password prompt for operator change
3 -->
4 <div>
5   <div class="modal-header">
6     <button type="button" class="close" 
7       ng-click="cancel()" aria-hidden="true">&times;</button>
8     <h4 class="modal-title alert alert-info">{{title}}</h4>
9   </div>
10   <div class="modal-body">
11     <div class="row pad-all-min" ng-if="message">
12       <div class="col-md-12">
13         <p>{{message}}</p>
14       </div>
15     </div>
16     <div class="row pad-all-min">
17       <div class="col-md-4">
18         [% l('Username:') %]
19       </div>
20       <div class="col-md-1"></div>
21       <div class="col-md-7">
22         <input ng-keyup="$event.keyCode == 13 ? ok() : null" type='text'
23           ng-model="args.username" class="form-control" focus-me="focus"/>
24       </div>
25     </div>
26     <div class="row pad-all-min">
27       <div class="col-md-4">
28         [% l('Password:') %]
29       </div>
30       <div class="col-md-1"></div>
31       <div class="col-md-7">
32         <input ng-keyup="$event.keyCode == 13 ? ok() : null" type='password'
33           ng-model="args.password" class="form-control"/>
34       </div>
35     </div>
36     <div class="row pad-all-min" ng-if="displayTypeField == true">
37       <div class="col-md-4">
38         [% l('Login Type:') %]
39       </div>
40       <div class="col-md-1"></div>
41       <div class="col-md-7">
42         <select class="form-control" required ng-model="args.type">
43           <option value="temp">[% l('Temporary') %]</option>
44           <option value="staff" selected>[% l('Staff') %]</option>
45           <option value="persist" selected>[% l('Persistent') %]</option>
46         </select>
47       </div>
48     </div>
49   </div>
50   <div class="modal-footer">
51     [% dialog_footer %]
52     <input type="submit" class="btn btn-primary" 
53       ng-click="ok()" value="[% l('OK/Continue') %]"/>
54     <button class="btn btn-warning" ng-click="cancel()">[% l('Cancel') %]</button>
55   </div>
56 </div>