Rename user_edit.xml to user_edit.xhtml to auto-enable XMLENT processing
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 7 Jul 2008 13:29:03 +0000 (13:29 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 7 Jul 2008 13:29:03 +0000 (13:29 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9979 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/constants.js
Open-ILS/xul/staff_client/server/patron/user_edit.xhtml [new file with mode: 0644]
Open-ILS/xul/staff_client/server/patron/user_edit.xml [deleted file]

index c3ff848..6e952ae 100644 (file)
@@ -285,7 +285,7 @@ const urls = {
        'XUL_PATRON_BILL_WIZARD' : '/xul/server/patron/bill_wizard.xul',
        'XUL_PATRON_DISPLAY' : '/xul/server/patron/display.xul',
        'XUL_PATRON_EDIT' : '/xul/server/patron/ue.xhtml',
-       'XUL_USER_PERM_EDITOR' : '/xul/server/patron/user_edit.xml',
+       'XUL_USER_PERM_EDITOR' : '/xul/server/patron/user_edit.xhtml',
        'XUL_PATRON_HOLDS' : '/xul/server/patron/holds.xul',
        'XUL_PATRON_INFO' : '/xul/server/patron/info.xul',
        'XUL_PATRON_INFO_NOTES' : '/xul/server/patron/info_notes.xul',
diff --git a/Open-ILS/xul/staff_client/server/patron/user_edit.xhtml b/Open-ILS/xul/staff_client/server/patron/user_edit.xhtml
new file mode 100644 (file)
index 0000000..cff0a78
--- /dev/null
@@ -0,0 +1,155 @@
+<?xml version='1.0'?>
+
+<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
+<!-- LOCALIZATION -->
+<!DOCTYPE window PUBLIC "" ""[
+       <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
+]>
+
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude">
+
+        <head>
+                <title>Evergreen: User Editor</title>
+                <script language='javascript' src='/opac/common/js/utils.js'> </script>
+                <script language='javascript' src='/opac/common/js//config.js'> </script>
+                <script language='javascript' src='/opac/common/js/CGI.js'> </script>
+                <script language='javascript' src='/opac/common/js/Cookie.js'> </script>
+
+                <script language='javascript' src='/opac/common/js/slimtree.js'> </script>
+                <script language='javascript' src='/opac/common/js/JSON_v1.js'> </script>
+                <script language='javascript' src='/opac/common/js/fmall.js'> </script>
+                <script language='javascript' src='/opac/common/js/fmgen.js'> </script>
+                <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
+                <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
+                <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
+                <script language='javascript' src='/opac/common/js/init.js'> </script>
+                <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
+                <script language='javascript' src='/opac/common/js/sprintf.js'> </script>
+                <script language='javascript' src='user_edit.js'> </script>
+
+
+               <style>
+
+                       .stay_hidden {          visibility: hidden;
+                                               display: none;
+
+                       }
+
+                       .hideme {               visibility: hidden;
+                                               display: none;
+                       }
+
+                       table {         border-collapse: collapse;
+                                       margin-bottom: 10px;
+                                       margin-top: 10px;
+                       }
+
+                       th {            
+                                       white-space: nowrap;
+                                       padding-top: 15px;
+                                       padding-bottom: 10px;
+                                       text-align: center;
+                                       border-top: solid black 1px;
+                       }
+
+                       td.odd {        background-color: lightcyan; }
+
+                       td.label {      text-align: right;
+                                       padding-right: 10px;
+                       }
+
+                       td.value {      text-align: left;
+                                       padding-left: 10px;
+                       }
+
+                       input[disabled='true'] { color: black; }
+
+               </style>
+        </head>
+
+       <body onload="try { init_editor() } catch(E) { alert(js2JSON(E)); }">
+               <form method="GET" name="editor" id="editor" >
+
+               <table width="100%">
+                       <tr>
+                               <td class="label">&staff.patron.user_edit.user_name.label;</td>
+                               <td class="value"><input disabled="true" type="text" name="user.usrname" id="user.usrname"/></td>
+                               <td class="label">&staff.patron.user_edit.barcode.label;</td>
+                               <td class="value"><input type="text" name="user.card.barcode" id="user.card.barcode" disabled="true"/></td>
+                       </tr>
+                       <tr>
+                               <td class="label">First Name:</td>
+                               <td class="value"><input disabled="true" type="text" name="user.first_given_name" id="user.first_given_name"/></td>
+                               <td class="label">Middle Name:</td>
+                               <td class="value"><input disabled="true" type="text" name="user.second_given_name" id="user.second_given_name"/></td>
+                               <td class="label">Last Name:</td>
+                               <td class="value"><input disabled="true" type="text" name="user.family_name" id="user.family_name"/></td>
+                       </tr>
+                       <tr class='advanced hideme'>
+                               <td class="value" colspan="6">
+                                       <table width="100%">
+                                               <thead>
+                                                       <tr>
+                                                               <th></th>
+                                                               <th>Working Location</th>
+                                                       </tr>
+                                               </thead>
+                                               <tbody id="work_ous" name="work_ous"/>
+                                       </table>
+                               </td>
+                       </tr>
+                       <tr class='advanced hideme'>
+                               <td class="value" colspan="6">
+                                       <table width="100%">
+                                               <thead>
+                                                       <tr>
+                                                               <th>Permission</th>
+                                                               <th>Applied</th>
+                                                               <th>Depth</th>
+                                                               <th>Grantable</th>
+                                                       </tr>
+                                               </thead>
+                                               <tbody id="permissions" name="permissions"/>
+                                       </table>
+                               </td>
+                       </tr>
+
+               </table>
+
+               <button onclick="save_user(); return false;">Save</button>
+               </form>
+
+
+               <div class='hideme' id="permission-tmpl">
+                       <tr name='prow'>
+                               <td class="value" name='plabel'>
+                                       <span name="p.code"/>
+                               </td>
+                               <td class="value" name='papply'>
+                                       <input type="checkbox" name="p.id" onclick="set_perm(this.parentNode.parentNode);"/>
+                               </td>
+                               <td class="value" name='pdepth'>
+                                       <select onchange="set_perm(this.parentNode.parentNode);" name="p.depth"/>
+                               </td>
+                               <td class="value" name='pgrant'>
+                                       <input type="checkbox" name="p.grantable" onclick="set_perm(this.parentNode.parentNode);"/>
+                               </td>
+                       </tr>
+               </div>
+
+
+               <div class='hideme' id="work_ou-tmpl">
+                       <tr name='wrow'>
+                               <td class="value" name='wapply'>
+                                       <input type="checkbox" name="a.id" onclick="set_work_ou(this.parentNode.parentNode);"/>
+                               </td>
+                               <td class="value" name='label'>
+                                       <span name="a.name"/>
+                                       (<span name="a.shortname"/>)
+                               </td>
+                       </tr>
+               </div>
+
+       </body>
+</html>
+
diff --git a/Open-ILS/xul/staff_client/server/patron/user_edit.xml b/Open-ILS/xul/staff_client/server/patron/user_edit.xml
deleted file mode 100644 (file)
index cff0a78..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
-<?xml version='1.0'?>
-
-<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
-<!-- LOCALIZATION -->
-<!DOCTYPE window PUBLIC "" ""[
-       <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
-]>
-
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude">
-
-        <head>
-                <title>Evergreen: User Editor</title>
-                <script language='javascript' src='/opac/common/js/utils.js'> </script>
-                <script language='javascript' src='/opac/common/js//config.js'> </script>
-                <script language='javascript' src='/opac/common/js/CGI.js'> </script>
-                <script language='javascript' src='/opac/common/js/Cookie.js'> </script>
-
-                <script language='javascript' src='/opac/common/js/slimtree.js'> </script>
-                <script language='javascript' src='/opac/common/js/JSON_v1.js'> </script>
-                <script language='javascript' src='/opac/common/js/fmall.js'> </script>
-                <script language='javascript' src='/opac/common/js/fmgen.js'> </script>
-                <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
-                <script language='javascript' src='/opac/common/js/OrgTree.js'> </script>
-                <script language='javascript' src='/opac/common/js/org_utils.js'> </script>
-                <script language='javascript' src='/opac/common/js/init.js'> </script>
-                <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
-                <script language='javascript' src='/opac/common/js/sprintf.js'> </script>
-                <script language='javascript' src='user_edit.js'> </script>
-
-
-               <style>
-
-                       .stay_hidden {          visibility: hidden;
-                                               display: none;
-
-                       }
-
-                       .hideme {               visibility: hidden;
-                                               display: none;
-                       }
-
-                       table {         border-collapse: collapse;
-                                       margin-bottom: 10px;
-                                       margin-top: 10px;
-                       }
-
-                       th {            
-                                       white-space: nowrap;
-                                       padding-top: 15px;
-                                       padding-bottom: 10px;
-                                       text-align: center;
-                                       border-top: solid black 1px;
-                       }
-
-                       td.odd {        background-color: lightcyan; }
-
-                       td.label {      text-align: right;
-                                       padding-right: 10px;
-                       }
-
-                       td.value {      text-align: left;
-                                       padding-left: 10px;
-                       }
-
-                       input[disabled='true'] { color: black; }
-
-               </style>
-        </head>
-
-       <body onload="try { init_editor() } catch(E) { alert(js2JSON(E)); }">
-               <form method="GET" name="editor" id="editor" >
-
-               <table width="100%">
-                       <tr>
-                               <td class="label">&staff.patron.user_edit.user_name.label;</td>
-                               <td class="value"><input disabled="true" type="text" name="user.usrname" id="user.usrname"/></td>
-                               <td class="label">&staff.patron.user_edit.barcode.label;</td>
-                               <td class="value"><input type="text" name="user.card.barcode" id="user.card.barcode" disabled="true"/></td>
-                       </tr>
-                       <tr>
-                               <td class="label">First Name:</td>
-                               <td class="value"><input disabled="true" type="text" name="user.first_given_name" id="user.first_given_name"/></td>
-                               <td class="label">Middle Name:</td>
-                               <td class="value"><input disabled="true" type="text" name="user.second_given_name" id="user.second_given_name"/></td>
-                               <td class="label">Last Name:</td>
-                               <td class="value"><input disabled="true" type="text" name="user.family_name" id="user.family_name"/></td>
-                       </tr>
-                       <tr class='advanced hideme'>
-                               <td class="value" colspan="6">
-                                       <table width="100%">
-                                               <thead>
-                                                       <tr>
-                                                               <th></th>
-                                                               <th>Working Location</th>
-                                                       </tr>
-                                               </thead>
-                                               <tbody id="work_ous" name="work_ous"/>
-                                       </table>
-                               </td>
-                       </tr>
-                       <tr class='advanced hideme'>
-                               <td class="value" colspan="6">
-                                       <table width="100%">
-                                               <thead>
-                                                       <tr>
-                                                               <th>Permission</th>
-                                                               <th>Applied</th>
-                                                               <th>Depth</th>
-                                                               <th>Grantable</th>
-                                                       </tr>
-                                               </thead>
-                                               <tbody id="permissions" name="permissions"/>
-                                       </table>
-                               </td>
-                       </tr>
-
-               </table>
-
-               <button onclick="save_user(); return false;">Save</button>
-               </form>
-
-
-               <div class='hideme' id="permission-tmpl">
-                       <tr name='prow'>
-                               <td class="value" name='plabel'>
-                                       <span name="p.code"/>
-                               </td>
-                               <td class="value" name='papply'>
-                                       <input type="checkbox" name="p.id" onclick="set_perm(this.parentNode.parentNode);"/>
-                               </td>
-                               <td class="value" name='pdepth'>
-                                       <select onchange="set_perm(this.parentNode.parentNode);" name="p.depth"/>
-                               </td>
-                               <td class="value" name='pgrant'>
-                                       <input type="checkbox" name="p.grantable" onclick="set_perm(this.parentNode.parentNode);"/>
-                               </td>
-                       </tr>
-               </div>
-
-
-               <div class='hideme' id="work_ou-tmpl">
-                       <tr name='wrow'>
-                               <td class="value" name='wapply'>
-                                       <input type="checkbox" name="a.id" onclick="set_work_ou(this.parentNode.parentNode);"/>
-                               </td>
-                               <td class="value" name='label'>
-                                       <span name="a.name"/>
-                                       (<span name="a.shortname"/>)
-                               </td>
-                       </tr>
-               </div>
-
-       </body>
-</html>
-