adding required surveys to the user editor
[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='/opac/common/js/sprintf.js'> </script>
21                 <script language='javascript' src='take_survey.js'> </script>
22                 <script language='javascript' src='user_edit.js'> </script>
23
24
25                 <style>
26
27
28                         .hideme {               visibility: hidden;
29                                                 display: none;
30                         }
31
32                         *[adv='true'] {         visibility: hidden;
33                                         display: none;
34                         }
35
36                         table {         border-collapse: collapse;
37                                         border: solid black 1px;
38                                         margin-bottom: 10px;
39                                         margin-top: 10px;
40                         }
41
42                         th {            
43                                         white-space: nowrap;
44                                         padding-top: 15px;
45                                         padding-bottom: 10px;
46                                         text-align: center;
47                                         border-top: solid black 1px;
48                         }
49
50                         td.label {      text-align: right;
51                                         padding-right: 10px;
52                         }
53
54                         td.value {      text-align: left;
55                                         padding-left: 10px;
56                         }
57
58                         input[disabled='true'] { color: black; }
59
60                 </style>
61         </head>
62
63         <body onload="try { init_editor() } catch(E) { alert(js2JSON(E)); }">
64                 <form method="GET" name="editor" id="editor" >
65
66                 <table>
67                         <tr>
68                                 <th colspan="2">User Identifcation</th>
69                         </tr>
70                         <tr adv='true'>
71                                 <td class="label">System ID:</td>
72                                 <td class="value"><input type="text" name="user.id" id="user.id" disabled="true"/></td>
73                         </tr>
74                         <tr>
75                                 <td class="label">Creation Date:</td>
76                                 <td class="value"><input type="text" name="user.create_date" id="user.create_date" disabled="true"/></td>
77                         </tr>
78                         <tr>
79                                 <td class="label">User Name:</td>
80                                 <td class="value"><input type="text" name="user.usrname" id="user.usrname"/></td>
81                         </tr>
82                         <tr>
83                                 <td class="label">Current Barcode:</td>
84                                 <td class="value"><input type="text" name="user.card.barcode" id="user.card.barcode" disabled="true"/>
85                                                   <button class="hideme" name="replace_card">Replace Card</button>
86                                 </td>
87                         </tr>
88                         <tr>
89                                 <td class="label">Password:</td>
90                                 <td class="value"><input type="password" name="user.passwd" id="user.passwd"/></td>
91                         </tr>
92
93                         <tr>
94                                 <td class="label">Honorific:</td>
95                                 <td class="value"><input type="text" name="user.prefix" id="user.prefix"/></td>
96                         </tr>
97                         <tr>
98                                 <td class="label">First Name:</td>
99                                 <td class="value"><input type="text" name="user.first_given_name" id="user.first_given_name"/></td>
100                         </tr>
101                         <tr>
102                                 <td class="label">Middle Name:</td>
103                                 <td class="value"><input type="text" name="user.second_given_name" id="user.second_given_name"/></td>
104                         </tr>
105                         <tr>
106                                 <td class="label">Last Name:</td>
107                                 <td class="value"><input type="text" name="user.family_name" id="user.family_name"/></td>
108                         </tr>
109                         <tr>
110                                 <td class="label">Title:</td>
111                                 <td class="value"><input type="text" name="user.suffix" id="user.suffix"/></td>
112                         </tr>
113
114                         <tr>
115                                 <td class="label">Date of Birth:</td>
116                                 <td class="value"><input type="text" name="user.dob" id="user.dob"/></td>
117                         </tr>
118
119                         <tr>
120                                 <td class="label">Primary Identification Type:</td>
121                                 <td class="value"><select name="user.ident_type" id="user.ident_type"/></td>
122                         </tr>
123                         <tr>
124                                 <td class="label">Primary Identification:</td>
125                                 <td class="value"><input type="text" name="user.ident_value" id="user.ident_value"/></td>
126                         </tr>
127                         <tr>
128                                 <td class="label">Alternate Identification Type:</td>
129                                 <td class="value"><select name="user.ident_type2" id="user.ident_type2"/></td>
130                         </tr>
131                         <tr>
132                                 <td class="label">Alternate Identification:</td>
133                                 <td class="value"><input type="text" name="user.ident_value2" id="user.ident_value2"/></td>
134                         </tr>
135
136
137
138                         <tr>
139                                 <th colspan="2">Contact Information</th>
140                         </tr>
141                         <tr>
142                                 <td class="label">Email Address:</td>
143                                 <td class="value"><input type="text" name="user.email" id="user.email"/></td>
144                         </tr>
145
146                         <tr>
147                                 <td class="label">Daytime Phone:</td>
148                                 <td class="value"><input type="text" name="user.day_phone" id="user.day_phone"/></td>
149                         </tr>
150                         <tr>
151                                 <td class="label">Evening Phone:</td>
152                                 <td class="value"><input type="text" name="user.evening_phone" id="user.evening_phone"/></td>
153                         </tr>
154                         <tr>
155                                 <td class="label">Other/Cell Phone:</td>
156                                 <td class="value"><input type="text" name="user.other_phone" id="user.other_phone"/></td>
157                         </tr>
158
159                         <tr>
160                                 <td class="label">Home Library:</td>
161                                 <td class="value"><select name="user.home_ou" id="user.home_ou"/></td>
162                         </tr>
163
164                         <tr>
165                                 <th class="label" colspan="2">Addresses</th>
166                         </tr>
167                         <tr>
168                                 <td class="value" colspan="2">
169                                         <div>
170                                                 <button onclick="new_addr(); return false;">New Address</button>
171                                         </div>
172                                         <div name="addresses" id="addresses"/>
173                                 </td>
174                         </tr>
175
176
177
178
179
180                         <tr>
181                                 <th colspan="2">User Settings</th>
182                         </tr>
183                         <tr>
184                                 <td class="label">Profile Group:</td>
185                                 <td class="value"><select name="user.profile" id="user.profile"/></td>
186                         </tr>
187                         <tr adv='true'>
188                                 <td class="label">Permission Groups:</td>
189                                 <td class="value"><select multiple="muliple" name="permgroups" id="permgroups"/></td>
190                         </tr>
191                         <tr>
192                                 <td class="label">Expire Date:</td>
193                                 <td class="value"><input type="text" name="user.expire_date" id="user.expire_date"/></td>
194                         </tr>
195                         <tr>
196                                 <td class="label">Active:</td>
197                                 <td class="value"><input type="checkbox" name="user.active" id="user.active" value="t"/></td>
198                         </tr>
199                         <tr adv='true'>
200                                 <td class="label">Set as Superuser:</td>
201                                 <td class="value"><input type="checkbox" name="user.super_user" id="user.super_user" value="t"/></td>
202                         </tr>
203                         <tr>
204                                 <td class="label">Standing:</td>
205                                 <td class="value"><select name="user.standing" id="user.standing"/></td>
206                         </tr>
207                         <tr>
208                                 <td class="label">Set as Family or Group Lead Account:</td>
209                                 <td class="value"><input type="checkbox" name="user.master_account" id="user.master_account" value="t"/></td>
210                         </tr>
211                         <tr>
212                                 <td class="label">"Claims returned" count:</td>
213                                 <td class="value">
214                                         <input type="text" name="user.claims_returned_count" id="user.claims_returned_count" value="0" disabled="true"/>
215                                         <button onclick="reset_crc(); return false;">Reset</button>
216                                 </td>
217                         </tr>
218                         <tr>
219                                 <td class="label">Alert Message:</td>
220                                 <td class="value">
221                                         <textarea name="user.alert_message" id="user.alert_message" defaultvalue=''> </textarea>
222                                         <button onclick="clear_alert_message(); return false;">Reset</button>
223                                 </td>
224                         </tr>
225
226
227
228
229                         <tr>
230                                 <th colspan="2">Required Surveys</th>
231                         </tr>
232                         <tr>
233                                 <td colspan="2" class='value'>
234                                         <div name="surveys" id="surveys" style="width: 100%"/>
235                                 </td>
236                         </tr>
237
238
239                 </table>
240
241                 <button onclick="save_user(); return false;">Save</button>
242                 </form>
243
244
245                 <div class='hideme' id="addr-tmpl">
246                         <table>
247                                 <tr>
248                                         <td class="label" colspan="1">Address Label</td>
249                                         <td colspan="1"><input type="text" size="7" name="adr.address_type"/></td>
250                                         <td class="label" colspan="1">Mailing Address</td>
251                                         <td colspan="1"><input type="radio" name="is_mailing"/></td>
252                                         <td class="label" colspan="1">Physical Address</td>
253                                         <td colspan="1"><input type="radio" name="is_billing"/></td>
254                                         <td class="label" colspan="1">Valid</td>
255                                         <td colspan="1"><input type="checkbox" name="adr.valid" value='t'/></td>
256                                 </tr>
257                                 <tr>
258                                         <td class="label" colspan="1">Street 1</td>
259                                         <td colspan="7"><input type="text" size="50" name="adr.street1"/></td>
260                                 </tr>
261                                 <tr>
262                                         <td class="label" colspan="1">Street 2</td>
263                                         <td colspan="7"><input type="text" size="50" name="adr.street2"/></td>
264                                 </tr>
265                                 <tr>
266                                         <td class="label">City</td>
267                                         <td><input type="text" size="15" name="adr.city"/></td>
268                                         <td class="label">State</td>
269                                         <td><input type="text" size="4" name="adr.state"/></td>
270                                         <td class="label">ZIP</td>
271                                         <td colspan='3'><input type="text" size="10" name="adr.post_code"/></td>
272                                 </tr>
273                                 <tr>
274                                         <td colspan="1" class="label">County</td>
275                                         <td colspan="2"><input type="text" size="20" name="adr.county"/></td>
276                                         <td colspan="1" class="label">Country</td>
277                                         <td colspan="4"><input type="text" size="20" name="adr.country"/></td>
278                                 </tr>
279                                 <tr>
280                                         <td colspan="8"><button name="remove">Remove this address</button></td>
281                                 </tr>
282                         </table>
283                 </div>
284
285                 <div class='hideme' id='survey-tmpl'><div>
286
287                         <table name="editor" width="95%">
288                                 <tr>
289                                         <td colspan="2" style="text-align: center; font-weight: bold;"><span name="sur.name"/></td>
290                                 </tr>
291                                 <tr>
292                                         <td colspan="2" style="text-align: center"><span name="sur.description"/></td>
293                                 </tr>
294                                 <!--
295                                 <tr>
296                                         <th class="label">Survey Start Date:</th>
297                                         <td class="value"><span name="sur.start_date"/></td>
298                                 </tr>
299                                 <tr>
300                                         <th class="label">Survey End Date:</th>
301                                         <td class="value"><span name="sur.end_date"/></td>
302                                 </tr>
303                                 -->
304                                 <tr>
305                                         <td class="label">Answer Date:</td>
306                                         <td class="value"><input type="text" name="effective_date"/></td>
307                                 </tr>
308                                 <tr>
309                                         <td class="label">Questions</td>
310                                         <td class="value" name="questions"/>
311                                 </tr>
312                                 <!--
313                                 <tr>
314                                         <th colspan="2" class="label">
315                                                 <button name="save_response">Submit</button>
316                                         </th>
317                                 </tr>
318                                 -->
319                         </table>
320                         <div class='hideme' name="question-tmpl">
321                                 <table width="100%">
322                                         <tr>
323                                                 <td class="value">
324                                                         <span name="q.question"/>
325                                                 </td>
326                                         </tr>
327                                         <tr>
328                                                 <td class="label">
329                                                         <select onchange="update_response(this);" name="answers-sel" class='hideme'/>
330                                                         <div name="answers-rad" class='hideme'><input onclick="update_response_rad(this);" type="radio"/></div>
331                                                 </td>
332                                         </tr>
333                                 </table>
334                         </div>
335                 </div></div>
336
337
338         </body>
339 </html>
340