This commit breaks compatibility with OpenSRF 0.9.
[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_v1.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                         .stay_hidden {          visibility: hidden;
28                                                 display: none;
29
30                         }
31
32                         .hideme {               visibility: hidden;
33                                                 display: none;
34                         }
35
36                         table {         border-collapse: collapse;
37                                         margin-bottom: 10px;
38                                         margin-top: 10px;
39                         }
40
41                         th {            
42                                         white-space: nowrap;
43                                         padding-top: 15px;
44                                         padding-bottom: 10px;
45                                         text-align: center;
46                                         border-top: solid black 1px;
47                         }
48
49                         td.odd {        background-color: lightcyan; }
50
51                         td.label {      text-align: right;
52                                         padding-right: 10px;
53                         }
54
55                         td.value {      text-align: left;
56                                         padding-left: 10px;
57                         }
58
59                         input[disabled='true'] { color: black; }
60
61                 </style>
62         </head>
63
64         <body onload="try { init_editor() } catch(E) { alert(js2JSON(E)); }">
65                 <form method="GET" name="editor" id="editor" >
66
67                 <table width="100%">
68                         <tr>
69                                 <td class="label">User Name:</td>
70                                 <td class="value"><input disabled="true" type="text" name="user.usrname" id="user.usrname"/></td>
71                                 <td class="label">Barcode:</td>
72                                 <td class="value"><input type="text" name="user.card.barcode" id="user.card.barcode" disabled="true"/></td>
73                         </tr>
74                         <tr>
75                                 <td class="label">First Name:</td>
76                                 <td class="value"><input disabled="true" type="text" name="user.first_given_name" id="user.first_given_name"/></td>
77                                 <td class="label">Middle Name:</td>
78                                 <td class="value"><input disabled="true" type="text" name="user.second_given_name" id="user.second_given_name"/></td>
79                                 <td class="label">Last Name:</td>
80                                 <td class="value"><input disabled="true" type="text" name="user.family_name" id="user.family_name"/></td>
81                         </tr>
82                         <tr class='advanced hideme'>
83                                 <td class="value" colspan="6">
84                                         <table width="100%">
85                                                 <thead>
86                                                         <tr>
87                                                                 <th></th>
88                                                                 <th>Working Location</th>
89                                                         </tr>
90                                                 </thead>
91                                                 <tbody id="work_ous" name="work_ous"/>
92                                         </table>
93                                 </td>
94                         </tr>
95                         <tr class='advanced hideme'>
96                                 <td class="value" colspan="6">
97                                         <table width="100%">
98                                                 <thead>
99                                                         <tr>
100                                                                 <th>Permission</th>
101                                                                 <th>Applied</th>
102                                                                 <th>Depth</th>
103                                                                 <th>Grantable</th>
104                                                         </tr>
105                                                 </thead>
106                                                 <tbody id="permissions" name="permissions"/>
107                                         </table>
108                                 </td>
109                         </tr>
110
111                 </table>
112
113                 <button onclick="save_user(); return false;">Save</button>
114                 </form>
115
116
117                 <div class='hideme' id="permission-tmpl">
118                         <tr name='prow'>
119                                 <td class="value" name='plabel'>
120                                         <span name="p.code"/>
121                                 </td>
122                                 <td class="value" name='papply'>
123                                         <input type="checkbox" name="p.id" onclick="set_perm(this.parentNode.parentNode);"/>
124                                 </td>
125                                 <td class="value" name='pdepth'>
126                                         <select onchange="set_perm(this.parentNode.parentNode);" name="p.depth"/>
127                                 </td>
128                                 <td class="value" name='pgrant'>
129                                         <input type="checkbox" name="p.grantable" onclick="set_perm(this.parentNode.parentNode);"/>
130                                 </td>
131                         </tr>
132                 </div>
133
134
135                 <div class='hideme' id="work_ou-tmpl">
136                         <tr name='wrow'>
137                                 <td class="value" name='wapply'>
138                                         <input type="checkbox" name="a.id" onclick="set_work_ou(this.parentNode.parentNode);"/>
139                                 </td>
140                                 <td class="value" name='label'>
141                                         <span name="a.name"/>
142                                         (<span name="a.shortname"/>)
143                                 </td>
144                         </tr>
145                 </div>
146
147         </body>
148 </html>
149