[open-ils-commits] r9979 - in trunk/Open-ILS/xul/staff_client:
chrome/content/main server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jul 7 09:29:05 EDT 2008
Author: dbs
Date: 2008-07-07 09:29:03 -0400 (Mon, 07 Jul 2008)
New Revision: 9979
Added:
trunk/Open-ILS/xul/staff_client/server/patron/user_edit.xhtml
Removed:
trunk/Open-ILS/xul/staff_client/server/patron/user_edit.xml
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/main/constants.js
Log:
Rename user_edit.xml to user_edit.xhtml to auto-enable XMLENT processing
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/constants.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/constants.js 2008-07-07 03:59:51 UTC (rev 9978)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/constants.js 2008-07-07 13:29:03 UTC (rev 9979)
@@ -285,7 +285,7 @@
'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',
Copied: trunk/Open-ILS/xul/staff_client/server/patron/user_edit.xhtml (from rev 9970, trunk/Open-ILS/xul/staff_client/server/patron/user_edit.xml)
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/user_edit.xhtml (rev 0)
+++ trunk/Open-ILS/xul/staff_client/server/patron/user_edit.xhtml 2008-07-07 13:29:03 UTC (rev 9979)
@@ -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>
+
Deleted: trunk/Open-ILS/xul/staff_client/server/patron/user_edit.xml
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/user_edit.xml 2008-07-07 03:59:51 UTC (rev 9978)
+++ trunk/Open-ILS/xul/staff_client/server/patron/user_edit.xml 2008-07-07 13:29:03 UTC (rev 9979)
@@ -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>
-
More information about the open-ils-commits
mailing list