From 58425066f92b1a2c5aeb0d273a4695b061b80501 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 24 Mar 2008 19:06:23 +0000 Subject: [PATCH] finish delete UI --- lib/WebGUI/Shop/Tax.pm | 8 ++++---- lib/WebGUI/i18n/English/Tax.pm | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/WebGUI/Shop/Tax.pm b/lib/WebGUI/Shop/Tax.pm index e1c0b82c2..33afeb73f 100644 --- a/lib/WebGUI/Shop/Tax.pm +++ b/lib/WebGUI/Shop/Tax.pm @@ -485,20 +485,20 @@ EODSURL }; STOP - $output .= sprintf <<'STOP', $url->page(q{shop=tax;method=deleteTax}); + $output .= sprintf <<'STOP', $url->page(q{shop=tax;method=deleteTax}), $i18n->get('delete'); YAHOO.widget.DataTable.formatDeleteTaxId = function(elCell, oRecord, oColumn, orderNumber) { - elCell.innerHTML = 'X'; + elCell.innerHTML = '%s'; }; STOP $output .= sprintf <<'EOCHJS', $i18n->get('country'), $i18n->get('state'), $i18n->get('city'), $i18n->get('code'), $i18n->get('tax rate'); //Build column headers. var taxColumnDefs = [ - {key:"taxId", label:"taxId", formatter:YAHOO.widget.DataTable.formatDeleteTaxId}, {key:"country", label:"%s", sortable: true}, {key:"state", label:"%s", sortable: true}, {key:"city", label:"%s", sortable: true}, {key:"code", label:"%s", sortable: true}, - {key:"taxRate", label:"%s"} + {key:"taxRate", label:"%s"}, + {key:"taxId", label:"", formatter:YAHOO.widget.DataTable.formatDeleteTaxId} ]; EOCHJS $output .= < q|To ship a copy of the tax data out of the server.|, }, + 'delete' => { + message => q|delete|, + lastUpdated => 1206385749, + context => q|To remove one tax entry from the tax tables.|, + }, + }; 1;