From: erickson Date: Mon, 9 Feb 2009 18:51:24 +0000 (+0000) Subject: moved currency type config into conify, using autogrid X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cae67bbc380edf3e5f78f24ab1ee8e00b12f9216;p=Evergreen.git moved currency type config into conify, using autogrid git-svn-id: svn://svn.open-ils.org/ILS/trunk@12121 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/ui/default/acq/financial/list_currency_types.js b/Open-ILS/web/js/ui/default/acq/financial/list_currency_types.js deleted file mode 100644 index 21e187b8eb..0000000000 --- a/Open-ILS/web/js/ui/default/acq/financial/list_currency_types.js +++ /dev/null @@ -1,49 +0,0 @@ -dojo.require("dijit.Dialog"); -dojo.require('dijit.form.Button'); -dojo.require('dojox.grid.DataGrid'); -dojo.require('dojo.data.ItemFileWriteStore'); -dojo.require('openils.acq.CurrencyType'); -dojo.require('openils.Event'); -dojo.require('openils.Util'); -dojo.require('fieldmapper.dojoData'); - -var currencyTypes = []; - -function loadCTypesGrid() { - var store = new dojo.data.ItemFileWriteStore({data:acqct.initStoreData('code', {identifier:'code'})}); - currencyTypeListGrid.setStore(store); - currencyTypeListGrid.render(); - - fieldmapper.standardRequest( - [ 'open-ils.acq', 'open-ils.acq.currency_type.all.retrieve'], - { async: true, - params: [openils.User.authtoken], - onresponse : function(r){ - if(ct = openils.Util.readResponse(r)) { - openils.acq.CurrencyType.cache[ct.code()] = ct; - store.newItem(acqct.toStoreItem(ct)); - } - } - } - ); -} - -function createCT(args) { - if(!(args.code && args.label)) return; - var ct = new acqct(); - ct.code(args.code); - ct.label(args.label); - fieldmapper.standardRequest( - ['open-ils.permacrud', 'open-ils.permacrud.create.acqct'], - { async: true, - params: [openils.User.authtoken, ct], - oncomplete: function(r) { - if(new String(openils.Util.readResponse(r)) != '0') - loadCTypesGrid(); - } - } - ); -} - - -openils.Util.addOnLoad(loadCTypesGrid); diff --git a/Open-ILS/web/templates/default/acq/financial/list_currency_types.tt2 b/Open-ILS/web/templates/default/acq/financial/list_currency_types.tt2 deleted file mode 100644 index 01f2fd2a6b..0000000000 --- a/Open-ILS/web/templates/default/acq/financial/list_currency_types.tt2 +++ /dev/null @@ -1,52 +0,0 @@ -[% WRAPPER 'default/base.tt2' %] -
-
Currency Types
-
- - - - -
-
- - New Currency Type -
- - - - - - - - - - - - -
- -
-
-
- - -
- - - -
-
- - - - - - - -
CodeLabel
-
-
- -[% END %] diff --git a/Open-ILS/web/templates/default/conify/global/acq/currency_type.tt2 b/Open-ILS/web/templates/default/conify/global/acq/currency_type.tt2 new file mode 100644 index 0000000000..3399bc2bf9 --- /dev/null +++ b/Open-ILS/web/templates/default/conify/global/acq/currency_type.tt2 @@ -0,0 +1,26 @@ +[% WRAPPER default/base.tt2 %] + +
+
Currency Type
+
+
+
+ +
+
+[% END %] + +