From c1ef15b838d9c94a41cd7e46eaaca6bc5b5450f1 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 23 Feb 2009 23:53:10 +0000 Subject: [PATCH] More Inbox template variables. --- lib/WebGUI/Help/Account_Inbox.pm | 27 +++++- lib/WebGUI/i18n/English/Account_Inbox.pm | 108 +++++++++++++++++++++++ 2 files changed, 134 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Help/Account_Inbox.pm b/lib/WebGUI/Help/Account_Inbox.pm index 3f4090bea..cc1eec31d 100644 --- a/lib/WebGUI/Help/Account_Inbox.pm +++ b/lib/WebGUI/Help/Account_Inbox.pm @@ -35,6 +35,10 @@ our $HELP = { tag => 'common vars', namespace => 'Account_Inbox', }, + { + tag => 'pagination template variables', + namespace => 'WebGUI', + }, ], fields => [ ], variables => [ @@ -47,9 +51,30 @@ our $HELP = { { name => 'message_total', }, { name => 'new_message_url', }, { name => 'canSendMessages', }, + { name => 'message_rpp', }, + { name => 'form_header', + required => 1, }, + { name => 'form_footer', + required => 1, }, { name => 'message_loop', - variables => [], + variables => [ + { name => 'message_id', }, + { name => 'message_url', }, + { name => 'subject', }, + { name => 'status', }, + { name => 'status_class', }, + { name => 'isRead', }, + { name => 'isReplied', }, + { name => 'isPending', }, + { name => 'isCompleted', }, + { name => 'from_id', }, + { name => 'from_url', }, + { name => 'from', }, + { name => 'dateStamp', }, + { name => 'dateStamp_formatted', }, + { name => 'inbox_form_delete', }, + ], }, ], related => [ ], diff --git a/lib/WebGUI/i18n/English/Account_Inbox.pm b/lib/WebGUI/i18n/English/Account_Inbox.pm index 2113bac39..142cafaeb 100644 --- a/lib/WebGUI/i18n/English/Account_Inbox.pm +++ b/lib/WebGUI/i18n/English/Account_Inbox.pm @@ -613,6 +613,114 @@ our $I18N = { context => "The template that allows you to view the contents of the Inbox", }, + 'message_rpp' => { + message => q{A select box that allows the user to change the number of messages displayed per page}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'form_header' => { + message => q{HTML elements to begin the form on this page}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'form_footer' => { + message => q{HTML elements to end the form on this page}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'message_id' => { + message => q{The unique identifier for this message.}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'message_url' => { + message => q{The URL to view the contents of this message.}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'subject' => { + message => q{The subject of this message.}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'status' => { + message => q{The status of this message, internationalized.}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'status_class' => { + message => q{The status of this message, raw.}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'isRead' => { + message => q{A boolean which will be true if this message has been read.}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'isReplied' => { + message => q{A boolean which will be true if this message has been replied to.}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'isPending' => { + message => q{A boolean which will be true if this message represents an action by the user that is pending.}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'isCompleted' => { + message => q{A boolean which will be true if this message represents an action by the user that has been completed.}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'from_id' => { + message => q{The userId of the person who sent this message.}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'from_url' => { + message => q{The URL to view the profile of the user who sent this message.}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'from' => { + message => q{The name of the person who sent this message.}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'dateStamp' => { + message => q{The date the message was sent, as an epoch.}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'dateStamp_formatted' => { + message => q{The date the message was sent, using the user's preferred date and time format.}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + + 'inbox_form_delete' => { + message => q{A little checkbox for the user to check if they want to delete this message.}, + lastUpdated => 1235421123, + context => "template variable for view inbox template", + }, + }; 1;