From: miker Date: Fri, 21 Mar 2008 04:36:17 +0000 (+0000) Subject: adding editable fields; tree works well now X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=828cfc37ee4d17b3995f6831d3cc61a0e821f13d;p=Evergreen.git adding editable fields; tree works well now git-svn-id: svn://svn.open-ils.org/ILS/branches/dojo-admin@9106 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/conify/global/actor/org_unit.html b/Open-ILS/web/conify/global/actor/org_unit.html index bdee529cd6..1e54680da3 100644 --- a/Open-ILS/web/conify/global/actor/org_unit.html +++ b/Open-ILS/web/conify/global/actor/org_unit.html @@ -38,7 +38,9 @@ dojo.require('conify.fieldmapper.addToHash', true); dojo.require('dojo.parser'); dojo.require('dojo.data.ItemFileReadStore'); - dojo.require('dijit.InlineEditBox'); + dojo.require('dijit.form.TextBox'); + dojo.require('dijit.form.CheckBox'); + dojo.require('dijit.form.FilteringSelect'); dojo.require('dijit.Tree'); dojo.require('dijit.layout.ContentPane'); dojo.require('dijit.layout.TabContainer'); @@ -51,9 +53,15 @@ var ses = cookieManager.read('ses') || cgi.param('ses'); var pCRUD = new OpenSRF.ClientSession('open-ils.permacrud'); - function ouTreeOnClick (item, node) { - alert(js2JSON(item)); - dijit.byId('editor_pane_name'); + function ouTreeOnClick (m) { + if (m.event != 'execute') return; + + editor_pane_name.setValue( m.item.name ); + editor_pane_shortname.setValue( m.item.shortname ); + editor_pane_email.setValue( m.item.email ); + editor_pane_phone.setValue( m.item.phone ); + editor_pane_parent_ou.setValue( m.item.parent_ou ); + editor_pane_opac_visible.setChecked( m.item.opac_visible == 't' ? true : false ); } @@ -67,12 +75,12 @@
-
+
+ + +
-
- - - - - - - - - - - -
Library Name
Library Policy Code -
Parent -
+
+
+ + + + + + + + + + + + + + + + + + + +
Parent +
+
OPAC Visible + +
Library Name + + Library Policy Code + +
Main Email Address + + Main Phone Number + +
+