From 6f8bdc6a14f97616018a176eb742a33196e8142b Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 17 Jan 2007 00:17:30 +0000 Subject: [PATCH] asset variables, ISA relationships and variable cleanup for In/Out Board --- lib/WebGUI/Help/Asset_InOutBoard.pm | 167 +++++++++++++------- lib/WebGUI/i18n/English/Asset_InOutBoard.pm | 44 +++++- 2 files changed, 156 insertions(+), 55 deletions(-) diff --git a/lib/WebGUI/Help/Asset_InOutBoard.pm b/lib/WebGUI/Help/Asset_InOutBoard.pm index 000325aee..df93d6aa8 100644 --- a/lib/WebGUI/Help/Asset_InOutBoard.pm +++ b/lib/WebGUI/Help/Asset_InOutBoard.pm @@ -6,8 +6,8 @@ our $HELP = { body => '19', isa => [ { - namespace => "Asset_Wobject", - tag => "wobject add/edit" + namespace => 'Asset_Wobject', + tag => 'wobject add/edit', }, ], fields => [ @@ -45,108 +45,135 @@ our $HELP = { related => [ { tag => 'in out board template', - namespace => 'Asset_InOutBoard' + namespace => 'Asset_InOutBoard', }, { tag => 'in out board report template', - namespace => 'Asset_InOutBoard' - }, - { - tag => 'wobject add/edit', - namespace => 'Asset_Wobject' + namespace => 'Asset_InOutBoard', }, { tag => 'wobjects using', - namespace => 'Asset_Wobject' - } - ] + namespace => 'Asset_Wobject', + }, + ], }, + 'in out board template' => { title => '20', body => '21', + isa => [ + { + namespace => 'Asset_InOutBoard', + tag => 'in out board asset template variables', + }, + { + namespace => 'Asset_Template', + tag => 'template variables', + }, + { + namespace => 'Asset', + tag => 'asset template', + }, + ], variables => [ { - 'name' => 'canViewReport' + 'name' => 'canViewReport', }, { - 'name' => 'viewReportURL' + 'name' => 'viewReportURL', }, { - 'name' => 'selectDelegatesURL' + 'name' => 'viewReportLabel', }, { - 'name' => 'displayForm' + 'name' => 'selectDelegatesURL', }, { - 'name' => 'form' + 'name' => 'selectDelegatesLabel', + }, + { + 'name' => 'displayForm', + }, + { + 'name' => 'form', }, { 'name' => 'rows_loop', 'variables' => [ { - 'name' => 'deptHasChanged' + 'name' => 'deptHasChanged', }, { - 'name' => 'username' + 'name' => 'department', }, { - 'name' => 'status' + 'name' => 'username', }, { - 'name' => 'dateStamp' + 'name' => 'status', }, { - 'name' => 'message' - } - ] + 'name' => 'dateStamp', + }, + { + 'name' => 'message', + }, + ], }, { - 'name' => 'paginateBar' - } + 'name' => 'paginateBar', + }, ], related => [ { tag => 'in out board add/edit', - namespace => 'Asset_InOutBoard' + namespace => 'Asset_InOutBoard', }, - { - tag => 'template language', - namespace => 'Asset_Template' - }, - { - tag => 'wobject template', - namespace => 'Asset_Wobject' - } - ] + ], }, + 'in out board report template' => { title => '22', body => '23', + isa => [ + { + namespace => 'Asset_InOutBoard', + tag => 'in out board asset template variables', + }, + { + namespace => 'Asset_Template', + tag => 'template variables', + }, + { + namespace => 'Asset', + tag => 'asset template', + }, + ], variables => [ { - 'name' => 'reportTitle' + 'name' => 'reportTitleLabel', }, { - 'name' => 'showReport' + 'name' => 'showReport', }, { 'name' => 'form', - 'description' => 'report.form' + 'description' => 'report.form', }, { - 'name' => 'username.label' + 'name' => 'username.label', }, { - 'name' => 'status.label' + 'name' => 'status.label', }, { - 'name' => 'date.label' + 'name' => 'date.label', }, { - 'name' => 'message.label' + 'name' => 'message.label', }, { - 'name' => 'updatedBy.label' + 'name' => 'updatedBy.label', }, { 'name' => 'rows_loop', @@ -158,7 +185,7 @@ our $HELP = { 'name' => 'username', }, { - 'name' => 'department' + 'name' => 'department', }, { 'name' => 'status', @@ -170,26 +197,58 @@ our $HELP = { 'name' => 'message', }, { - 'name' => 'createdBy' - } + 'name' => 'createdBy', + }, ], - 'description' => 'report rows_loop' + 'description' => 'report rows_loop', }, { 'name' => 'paginateBar', - } + }, ], related => [ { tag => 'in out board add/edit', - namespace => 'Asset_InOutBoard' + namespace => 'Asset_InOutBoard', }, - { - tag => 'template language', - namespace => 'Asset_Template' - } - ] + ], }, + + 'in out board asset template variables' => { + title => 'in out board asset template variables title', + body => 'in out board asset template variables body', + isa => [ + { + namespace => 'Asset_Wobject', + tag => 'wobject template variables', + }, + ], + fields => [ + ], + variables => [ + { + 'name' => 'statusList', + }, + { + 'name' => 'reportViewerGroup', + }, + { + 'name' => 'inOutGroup', + }, + { + 'name' => 'inOutTemplateId', + }, + { + 'name' => 'reportTemplateId', + }, + { + 'name' => 'paginateAfter', + }, + ], + related => [ + ], + }, + }; 1; diff --git a/lib/WebGUI/i18n/English/Asset_InOutBoard.pm b/lib/WebGUI/i18n/English/Asset_InOutBoard.pm index 8c0846849..f0bb0ade2 100644 --- a/lib/WebGUI/i18n/English/Asset_InOutBoard.pm +++ b/lib/WebGUI/i18n/English/Asset_InOutBoard.pm @@ -406,7 +406,7 @@ can alter their status.|, context => q|Default i18n label for a In/Out Board Report|, }, - 'reportTitle' => { + 'reportTitleLabel' => { message => q|Internationalized title for an In/Out Board Report.|, lastUpdated =>1165810121, }, @@ -432,6 +432,48 @@ can alter their status.|, lastUpdated =>1165810121, }, + 'in out board asset template variables title' => { + message => q|In/Out Board Asset Template Variables|, + lastUpdated => 1168992432 + }, + + 'in out board asset template variables body' => { + message => q|Every asset provides a set of variables to most of its +templates based on the internal asset properties. Some of these variables may +be useful, others may not.|, + lastUpdated => 1168992436 + }, + + 'statusList' => { + message => q|A string with all of the possible board statuses separated by newlines.|, + lastUpdated => 1168992648 + }, + + 'reportViewerGroup' => { + message => q|The ID of the group that is allowed to view reports.|, + lastUpdated => 1168992648 + }, + + 'inOutGroup' => { + message => q|The ID of the group that is allowed to use the In/Out Board.|, + lastUpdated => 1168992648 + }, + + 'inOutTemplateId' => { + message => q|The ID of the template that is used to display the main screen of the In/Out Board.|, + lastUpdated => 1168992648 + }, + + 'reportTemplateId' => { + message => q|The ID of the template that is used to display In/Out Board reports.|, + lastUpdated => 1168992648 + }, + + 'paginateAfter' => { + message => q|The number of rows should be displayed per page in the main In/Out Board.|, + lastUpdated => 1168992648 + }, + }; 1;