f73e9fd0074a99e81bb78267c122ae345503e121
[Evergreen.git] / Open-ILS / xul / staff_client / server / patron / user_edit.xhtml
1 <?xml version='1.0'?>
2
3 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
4 <!-- LOCALIZATION -->
5 <!DOCTYPE window PUBLIC "" ""[
6         <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
7 ]>
8
9 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude">
10
11         <head>
12                 <title>&staff.patron.user_edit.title;</title>
13                 <script language='javascript' src='/opac/common/js/utils.js'> </script>
14                 <script language='javascript' src='/opac/common/js//config.js'> </script>
15                 <script language='javascript' src='/opac/common/js/CGI.js'> </script>
16                 <script language='javascript' src='/opac/common/js/Cookie.js'> </script>
17
18                 <script language='javascript' src='/opac/common/js/slimtree.js'> </script>
19                 <script language='javascript' src='/opac/common/js/JSON_v1.js'> </script>
20                 <script language='javascript' src='/opac/common/js/fmall.js'> </script>
21                 <script language='javascript' src='/opac/common/js/fmgen.js'> </script>
22                 <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
23                 <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
24                 <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
25                 <script language='javascript' src='/opac/common/js/init.js'> </script>
26                 <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
27                 <script language='javascript' src='/opac/common/js/sprintf.js'> </script>
28                 <script language='javascript' src='user_edit.js'> </script>
29
30
31                 <style>
32
33                         .stay_hidden {          visibility: hidden;
34                                                 display: none;
35
36                         }
37
38                         .hideme {               visibility: hidden;
39                                                 display: none;
40                         }
41
42                         table {         border-collapse: collapse;
43                                         margin-bottom: 10px;
44                                         margin-top: 10px;
45                         }
46
47                         th {            
48                                         white-space: nowrap;
49                                         padding-top: 15px;
50                                         padding-bottom: 10px;
51                                         text-align: center;
52                                         border-top: solid black 1px;
53                         }
54
55                         td.odd {        background-color: lightcyan; }
56
57                         td.label {      text-align: right;
58                                         padding-right: 10px;
59                         }
60
61                         td.value {      text-align: left;
62                                         padding-left: 10px;
63                         }
64
65                         input[disabled='true'] { color: black; }
66
67                 </style>
68         </head>
69
70         <body onload="try { init_editor() } catch(E) { alert(js2JSON(E)); }">
71                 <form method="GET" name="editor" id="editor" >
72
73                 <table width="100%">
74                         <tr>
75                                 <td class="label">&staff.patron.user_edit.user_name.label;</td>
76                                 <td class="value"><input disabled="true" type="text" name="user.usrname" id="user.usrname"/></td>
77                                 <td class="label">&staff.patron.user_edit.barcode.label;</td>
78                                 <td class="value"><input type="text" name="user.card.barcode" id="user.card.barcode" disabled="true"/></td>
79                         </tr>
80                         <tr>
81                                 <td class="label">&staff.patron.user_edit.firstname.label;</td>
82                                 <td class="value"><input disabled="true" type="text" name="user.first_given_name" id="user.first_given_name"/></td>
83                                 <td class="label">&staff.patron.user_edit.middlename.label;</td>
84                                 <td class="value"><input disabled="true" type="text" name="user.second_given_name" id="user.second_given_name"/></td>
85                                 <td class="label">&staff.patron.user_edit.lastname.label;</td>
86                                 <td class="value"><input disabled="true" type="text" name="user.family_name" id="user.family_name"/></td>
87                         </tr>
88                         <tr class='advanced hideme'>
89                                 <td class="value" colspan="6">
90                                         <table width="100%">
91                                                 <thead>
92                                                         <tr>
93                                                                 <th></th>
94                                                                 <th>&staff.patron.user_edit.working_location.label;</th>
95                                                         </tr>
96                                                 </thead>
97                                                 <tbody id="work_ous" name="work_ous"/>
98                                         </table>
99                                 </td>
100                         </tr>
101                         <tr class='advanced hideme'>
102                                 <td class="value" colspan="6">
103                                         <table width="100%">
104                                                 <thead>
105                                                         <tr>
106                                                                 <th>&staff.patron.user_edit.permission.label;</th>
107                                                                 <th>&staff.patron.user_edit.applied.label;</th>
108                                                                 <th>&staff.patron.user_edit.depth.label;</th>
109                                                                 <th>&staff.patron.user_edit.grantable.label;</th>
110                                                         </tr>
111                                                 </thead>
112                                                 <tbody id="permissions" name="permissions"/>
113                                         </table>
114                                 </td>
115                         </tr>
116
117                 </table>
118
119                 <button onclick="save_user(); return false;">&staff.patron.user_edit.save.label;</button>
120                 </form>
121
122
123                 <div class='hideme' id="permission-tmpl">
124                         <tr name='prow'>
125                                 <td class="value" name='plabel'>
126                                         <span name="p.code"/>
127                                 </td>
128                                 <td class="value" name='papply'>
129                                         <input type="checkbox" name="p.id" onclick="set_perm(this.parentNode.parentNode);"/>
130                                 </td>
131                                 <td class="value" name='pdepth'>
132                                         <select onchange="set_perm(this.parentNode.parentNode);" name="p.depth"/>
133                                 </td>
134                                 <td class="value" name='pgrant'>
135                                         <input type="checkbox" name="p.grantable" onclick="set_perm(this.parentNode.parentNode);"/>
136                                 </td>
137                         </tr>
138                 </div>
139
140
141                 <div class='hideme' id="work_ou-tmpl">
142                         <tr name='wrow'>
143                                 <td class="value" name='wapply'>
144                                         <input type="checkbox" name="a.id" onclick="set_work_ou(this.parentNode.parentNode);"/>
145                                 </td>
146                                 <td class="value" name='label'>
147                                         <span name="a.name"/>
148                                         (<span name="a.shortname"/>)
149                                 </td>
150                         </tr>
151                 </div>
152
153         </body>
154 </html>
155