34cd9e9b28f7b57587a3e66da22b47d3d64fec2e
[Evergreen.git] / Open-ILS / xul / staff_client / server / patron / user_edit.xml
1 <?xml version='1.0'?>
2 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude">
3
4         <head>
5                 <title>Evergreen: User Editor</title>
6                 <script language='javascript' src='/opac/common/js/utils.js'> </script>
7                 <script language='javascript' src='/opac/common/js//config.js'> </script>
8                 <script language='javascript' src='/opac/common/js/CGI.js'> </script>
9                 <script language='javascript' src='/opac/common/js/Cookie.js'> </script>
10
11                 <script language='javascript' src='/opac/common/js/slimtree.js'> </script>
12                 <script language='javascript' src='/opac/common/js/JSON.js'> </script>
13                 <script language='javascript' src='/opac/common/js/fmall.js'> </script>
14                 <script language='javascript' src='/opac/common/js/fmgen.js'> </script>
15                 <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
16                 <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
17                 <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
18                 <script language='javascript' src='/opac/common/js/init.js'> </script>
19                 <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
20                 <script language='javascript' src='user_edit.js'> </script>
21
22                 <style>
23
24
25                         .hideme {               visibility: hidden;
26                                                 display: none;
27                         }
28
29                         *[adv='true'] {         visibility: hidden;
30                                         display: none;
31                         }
32
33                         table {         border-collapse: collapse;
34                                         border: solid black 1px;
35                                         margin-bottom: 10px;
36                                         margin-top: 10px;
37                         }
38
39                         th {            padding-bottom: 5px;
40                                         white-space: nowrap;
41                                         padding-top: 15px;
42                                         text-align: center;
43                         }
44
45                         td.label {      text-align: right;
46                                         padding-right: 10px;
47                         }
48
49                         td.value {      text-align: left;
50                                         padding-left: 10px;
51                         }
52
53                         input[disabled='true'] { color: black; }
54
55                 </style>
56         </head>
57
58         <body onload="try { init_editor() } catch(E) { alert(js2JSON(E)); }">
59                 <form method="GET" name="editor" id="editor" >
60
61                 <table>
62                         <tr>
63                                 <th colspan="2">User Identifcation</th>
64                         </tr>
65                         <tr adv='true'>
66                                 <td class="label">System ID:</td>
67                                 <td class="value"><input type="text" name="user.id" id="user.id" disabled="true"/></td>
68                         </tr>
69                         <tr>
70                                 <td class="label">Creation Date:</td>
71                                 <td class="value"><input type="text" name="user.create_date" id="user.create_date" disabled="true"/></td>
72                         </tr>
73                         <tr>
74                                 <td class="label">User Name:</td>
75                                 <td class="value"><input type="text" name="user.usrname" id="user.usrname"/></td>
76                         </tr>
77                         <tr>
78                                 <td class="label">Current Barcode:</td>
79                                 <td class="value"><input type="text" name="user.card.barcode" id="user.card.barcode" disabled="true"/>
80                                                   <button class="hideme" name="replace_card">Replace Card</button>
81                                 </td>
82                         </tr>
83                         <tr>
84                                 <td class="label">Password:</td>
85                                 <td class="value"><input type="password" name="user.passwd" id="user.passwd"/></td>
86                         </tr>
87
88                         <tr>
89                                 <td class="label">Honorific:</td>
90                                 <td class="value"><input type="text" name="user.prefix" id="user.prefix"/></td>
91                         </tr>
92                         <tr>
93                                 <td class="label">First Name:</td>
94                                 <td class="value"><input type="text" name="user.first_given_name" id="user.first_given_name"/></td>
95                         </tr>
96                         <tr>
97                                 <td class="label">Middle Name:</td>
98                                 <td class="value"><input type="text" name="user.second_given_name" id="user.second_given_name"/></td>
99                         </tr>
100                         <tr>
101                                 <td class="label">Last Name:</td>
102                                 <td class="value"><input type="text" name="user.family_name" id="user.family_name"/></td>
103                         </tr>
104                         <tr>
105                                 <td class="label">Title:</td>
106                                 <td class="value"><input type="text" name="user.suffix" id="user.suffix"/></td>
107                         </tr>
108
109                         <tr>
110                                 <td class="label">Date of Birth:</td>
111                                 <td class="value"><input type="text" name="user.dob" id="user.dob"/></td>
112                         </tr>
113
114                         <tr>
115                                 <td class="label">Primary Identification Type:</td>
116                                 <td class="value"><select name="user.ident_type" id="user.ident_type"/></td>
117                         </tr>
118                         <tr>
119                                 <td class="label">Primary Identification:</td>
120                                 <td class="value"><input type="text" name="user.ident_value" id="user.ident_value"/></td>
121                         </tr>
122                         <tr>
123                                 <td class="label">Alternate Identification Type:</td>
124                                 <td class="value"><select name="user.ident_type2" id="user.ident_type2"/></td>
125                         </tr>
126                         <tr>
127                                 <td class="label">Alternate Identification:</td>
128                                 <td class="value"><input type="text" name="user.ident_value2" id="user.ident_value2"/></td>
129                         </tr>
130
131
132
133                         <tr>
134                                 <th colspan="2">Contact Information</th>
135                         </tr>
136                         <tr>
137                                 <td class="label">Email Address:</td>
138                                 <td class="value"><input type="text" name="user.email" id="user.email"/></td>
139                         </tr>
140
141                         <tr>
142                                 <td class="label">Daytime Phone:</td>
143                                 <td class="value"><input type="text" name="user.day_phone" id="user.day_phone"/></td>
144                         </tr>
145                         <tr>
146                                 <td class="label">Evening Phone:</td>
147                                 <td class="value"><input type="text" name="user.evening_phone" id="user.evening_phone"/></td>
148                         </tr>
149                         <tr>
150                                 <td class="label">Other/Cell Phone:</td>
151                                 <td class="value"><input type="text" name="user.other_phone" id="user.other_phone"/></td>
152                         </tr>
153
154                         <tr>
155                                 <td class="label">Home Library:</td>
156                                 <td class="value"><select name="user.home_ou" id="user.home_ou"/></td>
157                         </tr>
158
159                         <tr>
160                                 <td class="label">Addresses:</td>
161                                 <td class="value">
162                                         <div name="addresses" id="addresses"/>
163                                         <div>
164                                                 <button onclick="new_addr(); return false;">New Address</button>
165                                         </div>
166                                 </td>
167                         </tr>
168
169
170
171
172
173                         <tr>
174                                 <th colspan="2">User Settings</th>
175                         </tr>
176                         <tr>
177                                 <td class="label">Profile Group:</td>
178                                 <td class="value"><select name="user.profile" id="user.profile"/></td>
179                         </tr>
180                         <tr adv='true'>
181                                 <td class="label">Permission Groups:</td>
182                                 <td class="value"><select multiple="muliple" name="permgroups" id="permgroups"/></td>
183                         </tr>
184                         <tr>
185                                 <td class="label">Expire Date:</td>
186                                 <td class="value"><input type="text" name="user.expire_date" id="user.expire_date"/></td>
187                         </tr>
188                         <tr>
189                                 <td class="label">Active:</td>
190                                 <td class="value"><input type="checkbox" name="user.active" id="user.active" value="t"/></td>
191                         </tr>
192                         <tr adv='true'>
193                                 <td class="label">Set as Superuser:</td>
194                                 <td class="value"><input type="checkbox" name="user.super_user" id="user.super_user" value="t"/></td>
195                         </tr>
196                         <tr>
197                                 <td class="label">Standing:</td>
198                                 <td class="value"><select name="user.standing" id="user.standing"/></td>
199                         </tr>
200                         <tr>
201                                 <td class="label">Set as Family or Group Lead Account:</td>
202                                 <td class="value"><input type="checkbox" name="user.master_account" id="user.master_account" value="t"/></td>
203                         </tr>
204                         <tr>
205                                 <td class="label">"Claims returned" count:</td>
206                                 <td class="value">
207                                         <input type="text" name="user.claims_returned_count" id="user.claims_returned_count" value="0" disabled="true"/>
208                                         <button onclick="reset_crc(); return false;">Reset</button>
209                                 </td>
210                         </tr>
211                         <tr>
212                                 <td class="label">Alert Message:</td>
213                                 <td class="value">
214                                         <textarea name="user.alert_message" id="user.alert_message" defaultvalue=''> </textarea>
215                                         <button onclick="clear_alert_message(); return false;">Reset</button>
216                                 </td>
217                         </tr>
218
219                 </table>
220
221                 <button onclick="save_user(); return false;">Save</button>
222                 </form>
223
224
225                 <div class='hideme' id="addr-tmpl">
226                         <table>
227                                 <tr>
228                                         <th colspan="1">Address Label</th>
229                                         <td colspan="1"><input type="text" size="7" name="adr.address_type"/></td>
230                                         <th colspan="1">Mailing Address</th>
231                                         <td colspan="1"><input type="radio" name="is_mailing"/></td>
232                                         <th colspan="1">Physical Address</th>
233                                         <td colspan="1"><input type="radio" name="is_billing"/></td>
234                                         <th colspan="1">Valid</th>
235                                         <td colspan="1"><input type="checkbox" name="adr.valid" value='t'/></td>
236                                 </tr>
237                                 <tr>
238                                         <th colspan="1">Street 1</th>
239                                         <td colspan="7"><input type="text" size="50" name="adr.street1"/></td>
240                                 </tr>
241                                 <tr>
242                                         <th colspan="1">Street 2</th>
243                                         <td colspan="7"><input type="text" size="50" name="adr.street2"/></td>
244                                 </tr>
245                                 <tr>
246                                         <th>City</th>
247                                         <td><input type="text" size="15" name="adr.city"/></td>
248                                         <th>State</th>
249                                         <td><input type="text" size="4" name="adr.state"/></td>
250                                         <th>ZIP</th>
251                                         <td colspan='3'><input type="text" size="10" name="adr.post_code"/></td>
252                                 </tr>
253                                 <tr>
254                                         <th colspan="1">County</th>
255                                         <td colspan="2"><input type="text" size="20" name="adr.county"/></td>
256                                         <th colspan="1">Country</th>
257                                         <td colspan="4"><input type="text" size="20" name="adr.country"/></td>
258                                 </tr>
259                                 <tr>
260                                         <th colspan="8"><button name="remove">Remove this address</button></th>
261                                 </tr>
262                         </table>
263                 </div>
264         </body>
265 </html>
266