Getting messagecatalog to work with html via a div
[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                         .messagecatalog { -moz-binding: url( /xul/server/main/bindings.xml#messagecatalog ) }
34
35                         .stay_hidden {          visibility: hidden;
36                                                 display: none;
37
38                         }
39
40                         .hideme {               visibility: hidden;
41                                                 display: none;
42                         }
43
44                         table {         border-collapse: collapse;
45                                         margin-bottom: 10px;
46                                         margin-top: 10px;
47                         }
48
49                         th {            
50                                         white-space: nowrap;
51                                         padding-top: 15px;
52                                         padding-bottom: 10px;
53                                         text-align: center;
54                                         border-top: solid black 1px;
55                         }
56
57                         td.odd {        background-color: lightcyan; }
58
59                         td.label {      text-align: right;
60                                         padding-right: 10px;
61                         }
62
63                         td.value {      text-align: left;
64                                         padding-left: 10px;
65                         }
66
67                         input[disabled='true'] { color: black; }
68
69                 </style>
70         </head>
71
72         <div class="messagecatalog" id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties" />
73
74         <body onload="try { init_editor() } catch(E) { alert(js2JSON(E)); }">
75                 <form method="GET" name="editor" id="editor" >
76
77                 <table width="100%">
78                         <tr>
79                                 <td class="label">&staff.patron.user_edit.user_name.label;</td>
80                                 <td class="value"><input disabled="true" type="text" name="user.usrname" id="user.usrname"/></td>
81                                 <td class="label">&staff.patron.user_edit.barcode.label;</td>
82                                 <td class="value"><input type="text" name="user.card.barcode" id="user.card.barcode" disabled="true"/></td>
83                         </tr>
84                         <tr>
85                                 <td class="label">&staff.patron.user_edit.firstname.label;</td>
86                                 <td class="value"><input disabled="true" type="text" name="user.first_given_name" id="user.first_given_name"/></td>
87                                 <td class="label">&staff.patron.user_edit.middlename.label;</td>
88                                 <td class="value"><input disabled="true" type="text" name="user.second_given_name" id="user.second_given_name"/></td>
89                                 <td class="label">&staff.patron.user_edit.lastname.label;</td>
90                                 <td class="value"><input disabled="true" type="text" name="user.family_name" id="user.family_name"/></td>
91                         </tr>
92                         <tr class='advanced hideme'>
93                                 <td class="value" colspan="6">
94                                         <table width="100%">
95                                                 <thead>
96                                                         <tr>
97                                                                 <th></th>
98                                                                 <th>&staff.patron.user_edit.working_location.label;</th>
99                                                         </tr>
100                                                 </thead>
101                                                 <tbody id="work_ous" name="work_ous"/>
102                                         </table>
103                                 </td>
104                         </tr>
105                         <tr class='advanced hideme'>
106                                 <td class="value" colspan="6">
107                                         <table width="100%">
108                                                 <thead>
109                                                         <tr>
110                                                                 <th>&staff.patron.user_edit.permission.label;</th>
111                                                                 <th>&staff.patron.user_edit.applied.label;</th>
112                                                                 <th>&staff.patron.user_edit.depth.label;</th>
113                                                                 <th>&staff.patron.user_edit.grantable.label;</th>
114                                                         </tr>
115                                                 </thead>
116                                                 <tbody id="permissions" name="permissions"/>
117                                         </table>
118                                 </td>
119                         </tr>
120
121                 </table>
122
123                 <button onclick="save_user(); return false;">&staff.patron.user_edit.save.label;</button>
124                 </form>
125
126
127                 <div class='hideme' id="permission-tmpl">
128                         <table>
129                                 <tr name='prow'>
130                                         <td class="value" name='plabel'>
131                                                 <span name="p.code"/>
132                                         </td>
133                                         <td class="value" name='papply'>
134                                                 <input type="checkbox" name="p.id" onclick="set_perm(this.parentNode.parentNode);"/>
135                                         </td>
136                                         <td class="value" name='pdepth'>
137                                                 <select onchange="set_perm(this.parentNode.parentNode);" name="p.depth"/>
138                                         </td>
139                                         <td class="value" name='pgrant'>
140                                                 <input type="checkbox" name="p.grantable" onclick="set_perm(this.parentNode.parentNode);"/>
141                                         </td>
142                                 </tr>
143                         </table>
144                 </div>
145
146
147                 <div class='hideme' id="work_ou-tmpl">
148                         <table>
149                                 <tr name='wrow'>
150                                         <td class="value" name='wapply'>
151                                                 <input type="checkbox" name="a.id" onclick="set_work_ou(this.parentNode.parentNode);"/>
152                                         </td>
153                                         <td class="value" name='label'>
154                                                 <span name="a.name"/>
155                                                 (<span name="a.shortname"/>)
156                                         </td>
157                                 </tr>
158                         </table>
159                 </div>
160
161         </body>
162 </html>
163