]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/share/t_patron_search_form.tt2
LP2061136 - Stamping 1405 DB upgrade script
[Evergreen.git] / Open-ILS / src / templates / staff / share / t_patron_search_form.tt2
1 <div class="row" id="patron-search-form-row">
2   <div class="col-md-11">
3     <div class="patron-search-container">
4
5     <form ng-submit="search(searchArgs)" id="patron-search-form" 
6          class="form-horizontal patron-search-form">
7       <div class="actions-more">
8         <button class="btn btn-default" ng-click="applyShowExtras($event, true)" 
9           ng-mouseover="setLastFormElement()" aria-label="[% l('Show More Fields') %]"
10           title="[% l('Show More Fields') %]" ng-show="!showExtras">
11           <span class="glyphicon glyphicon-circle-arrow-down"></span>
12         </button>
13         <button class="btn btn-default" ng-click="applyShowExtras($event, false)" 
14           ng-mouseover="setLastFormElement()" aria-label="[% l('Show Fewer Fields') %]"
15           title="[% l('Show Fewer Fields') %]" ng-show="showExtras">
16           <span class="glyphicon glyphicon-circle-arrow-up"></span>
17         </button>
18       </div>
19
20           <input type="text" class="form-control" 
21             aria-label="[% l('Last Name') %]"
22             focus-me="focusMe"
23             ng-model="searchArgs.family_name" placeholder="[% l('Last Name') %]"/>
24
25           <input type="text" class="form-control" 
26             aria-label="[% l('First Name') %]"
27             ng-model="searchArgs.first_given_name" placeholder="[% l('First Name') %]"/>
28
29           <input type="text" class="form-control" 
30             aria-label="[% l('Middle Name') %]"
31             ng-model="searchArgs.second_given_name" placeholder="[% l('Middle Name') %]"/>
32
33           <input type="text" class="form-control" ng-model="searchArgs.name"
34             aria-label="[% l('Name Keywords') %]"
35             placeholder="[% l('Name Keywords') %]" title="[% l('Name Keywords') %]"/>
36         
37           <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Barcode') %]"
38             ng-model="searchArgs.card" placeholder="[% l('Barcode') %]"/>
39         
40           <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Alias') %]"
41             ng-model="searchArgs.alias" placeholder="[% l('Alias') %]"/>
42         
43           <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Username') %]"
44             ng-model="searchArgs.usrname" placeholder="[% l('Username') %]"/>
45         
46           <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Email') %]"
47             ng-model="searchArgs.email" placeholder="[% l('Email') %]"/>
48
49           <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Identification') %]"
50             ng-model="searchArgs.ident" placeholder="[% l('Identification') %]"/>
51
52           <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Phone') %]"
53             ng-model="searchArgs.phone" placeholder="[% l('Phone') %]"/>
54         
55           <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Street 1') %]"
56             ng-model="searchArgs.street1" placeholder="[% l('Street 1') %]"/>
57         
58           <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Street 2') %]"
59             ng-model="searchArgs.street2" placeholder="[% l('Street 2') %]"/>
60         
61           <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('City') %]"
62             ng-model="searchArgs.city" placeholder="[% l('City') %]"/>
63  
64           <input ng-show="showExtras" type="text" class="form-control" ng-model="searchArgs.state" 
65             aria-label="[% l('State') %]"
66             placeholder="[% l('State') %]" title="[% l('State') %]"/>
67
68           <input ng-show="showExtras" type="text" class="form-control" ng-model="searchArgs.post_code" 
69             aria-label="[% l('Post Code') %]"
70             placeholder="[% l('Post Code') %]" title="[% l('Post Code') %]"/>
71
72           <!--
73           <input type="text" class="form-control"  
74             placeholder="[% l('Profile Group') %]"
75             ng-model="searchArgs.profile"
76             typeahead="grp as grp.name for grp in profiles | filter:$viewValue" 
77             typeahead-editable="false" />
78             -->
79
80             <div ng-show="showExtras" class="btn-group patron-search-selector" uib-dropdown>
81               <button type="button" class="btn btn-default" uib-dropdown-toggle>
82                 <span style="padding-right: 5px;">{{searchArgs.profile.name() || "[% l('Profile Group') %]"}}</span>
83                 <span class="caret"></span>
84               </button>
85               <ul class="scrollable-menu" uib-dropdown-menu>
86                 <li ng-repeat="grp in profiles">
87                   <a href
88                     style="padding-left: {{pgt_depth(grp) * 10 + 5}}px"
89                     ng-click="searchArgs.profile = grp">{{grp.name()}}</a>
90                 </li>
91               </ul>
92             </div>
93
94           <eg-org-selector  ng-show="showExtras" label="[% l('Home Library') %]" org-aria="[% l('Home Library') %]"
95             selected="searchArgs.home_ou" sticky-setting="eg.circ.patron.search.ou">
96           </eg-org-selector>
97
98           <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Parent/Guardian') %]"
99             ng-model="searchArgs.guardian" placeholder="[% l('Parent/Guardian') %]"/>
100
101             <input ng-show="showExtras" type="text" class="form-control" ng-model="searchArgs.dob_year"
102             aria-label="[% l('DOB Year') %]"
103             placeholder="[% l('DOB Year') %]" title="[% l('DOB Year') %]"/>
104         
105             <input ng-show="showExtras" type="text" class="form-control" ng-model="searchArgs.dob_month"
106             aria-label="[% l('DOB Month') %]"
107             placeholder="[% l('DOB Month') %]" title="[% l('DOB Month') %]"/>
108         
109             <input ng-show="showExtras" type="text" class="form-control" ng-model="searchArgs.dob_day"
110             aria-label="[% l('DOB Day') %]"
111             placeholder="[% l('DOB Day') %]" title="[% l('DOB Day') %]"/>
112         
113           <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Database ID') %]"
114             ng-model="searchArgs.id" placeholder="[% l('Database ID') %]"/>
115           <div ng-show="showExtras" class="checkbox">
116             <label id="includeInactive">
117               <input type="checkbox" aria-labelledby="includeInactive"
118                 ng-model="searchArgs.inactive" ng-change="onSearchInactiveChanged()"/>
119               [% l('Include Inactive?') %]
120             </label>
121           </div>
122
123       <div ng-show="showExtras" class="actions-reset" ng-show="showExtras" ng-mouseover="setLastFormElement()">
124         <input type="reset" class="btn btn-destroy" ng-click="clearForm()" 
125           aria-label="[% l('Clear Form') %]" value="[% l('Clear Form') %]"/>
126       </div>
127       <div class="actions-search" ng-mouseover="setLastFormElement()">
128         <input type="submit" class="btn btn-primary" value="[% l('Search') %]"
129         aria-label="[% l('Search') %]"/>
130       </div>
131
132     </form>
133     </div>
134   </div>
135 </div>