2ca7fbe7879036115cf7efa84e70fae676d2cf89
[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" ng-if="message">
12       <div class="col-md-12">
13         <p>{{message}}</p>
14       </div>
15     </div>
16     <div class="row">
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' ng-model="args.username" class="form-control" focus-me="focus"/>
23       </div>
24     </div>
25     <div class="row">
26       <div class="col-md-4">
27         [% l('Password:') %]
28       </div>
29       <div class="col-md-1"></div>
30       <div class="col-md-7">
31         <input ng-keyup="$event.keyCode == 13 ? ok() : null" type='password' ng-model="args.password" class="form-control"/>
32       </div>
33     </div>
34     <div class="row" ng-if="displayTypeField == true">
35       <div class="col-md-4">
36         [% l('Login Type:') %]
37       </div>
38       <div class="col-md-1"></div>
39       <div class="col-md-7">
40         <select class="form-control" required ng-model="args.type">
41           <option value="temp">[% l('Temporary') %]</option>
42           <option value="staff" selected>[% l('Staff') %]</option>
43           <option value="persist" selected>[% l('Persistent') %]</option>
44         </select>
45       </div>
46     </div>
47   </div>
48   <div class="modal-footer">
49     [% dialog_footer %]
50     <input type="submit" class="btn btn-primary" 
51       ng-click="ok()" value="[% l('OK/Continue') %]"/>
52     <button class="btn btn-warning" ng-click="cancel()">[% l('Cancel') %]</button>
53   </div>
54 </div>