From 6bf0464713c963a42ac79c0bf144584e6aa78636 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 16 Sep 2008 18:59:42 +0000 Subject: [PATCH] fixing Edit Profile template variables in help --- lib/WebGUI/Help/WebGUIProfile.pm | 33 +++++++++++---- lib/WebGUI/i18n/English/WebGUIProfile.pm | 53 ++++++++++++++++++++++++ 2 files changed, 79 insertions(+), 7 deletions(-) diff --git a/lib/WebGUI/Help/WebGUIProfile.pm b/lib/WebGUI/Help/WebGUIProfile.pm index 147cecfa9..06d42b97b 100644 --- a/lib/WebGUI/Help/WebGUIProfile.pm +++ b/lib/WebGUI/Help/WebGUIProfile.pm @@ -69,19 +69,38 @@ our $HELP = { required => 1, }, { - name => 'profile.elements', + name => 'profile.form.submit', + required => 1, + }, + { + name => 'profile.form.cancel', + required => 1, + }, + { + name => 'profile.form.elements', required => 1, variables => [ { - name => 'profile.category', + name => 'profile.form.category', }, { - name => 'profile.label', + name => 'profile.form.category', + required => 1, + variables => [ + { + name => 'profile.form.element', + required => 1, + }, + { + name => 'profile.form.element.label', + required => 1, + }, + { + name => 'profile.form.element.subtext', + required => 1, + }, + ], }, - { - name => 'profile.value', - }, - ], }, { diff --git a/lib/WebGUI/i18n/English/WebGUIProfile.pm b/lib/WebGUI/i18n/English/WebGUIProfile.pm index 38d7e7524..9a9c9e598 100644 --- a/lib/WebGUI/i18n/English/WebGUIProfile.pm +++ b/lib/WebGUI/i18n/English/WebGUIProfile.pm @@ -274,6 +274,7 @@ If you wish to set the Default Value for any other field. Create the field with 'displayTitle' => { message => q|An internationalized title containing the user's name.|, + context => q|Template variable for edit and view profile field|, lastUpdated => 1213326336, }, @@ -319,24 +320,76 @@ If you wish to set the Default Value for any other field. Create the field with 'profile.message' => { message => q|Messages from the system, in case of errors or further work on the user's part.|, + context => q|Template variable for edit profile field|, lastUpdated => 1213326336, }, 'profile.form.header' => { message => q|HTML code to begin the form|, + context => q|Template variable for edit profile field|, lastUpdated => 1213326336, }, 'profile.form.footer' => { message => q|HTML code to end the form|, + context => q|Template variable for edit profile field|, lastUpdated => 1213326336, }, 'profile.form.hidden' => { message => q|HTML code for directing the form's action|, + context => q|Template variable for edit profile field|, lastUpdated => 1213326336, }, + 'profile.form.submit' => { + message => q|A button to submit edits to the user's profile.|, + context => q|Template variable for edit profile field|, + lastUpdated => 1213326336, + }, + + 'profile.form.cancel' => { + message => q|A button to return the user to the last page they viewed without submitting any form data.|, + context => q|Template variable for edit profile field|, + lastUpdated => 1213326336, + }, + + 'profile.form.elements' => { + message => q|A loop containing all profile fields, sorted by category.|, + context => q|Template variable for edit profile field|, + lastUpdated => 1221580083, + }, + + 'profile.form.category' => { + message => q|The name of this category.|, + context => q|Template variable for edit profile field|, + lastUpdated => 1221580083, + }, + + 'profile.form.category.loop' => { + message => q|A loop containing all fields in this category.|, + context => q|Template variable for edit profile field|, + lastUpdated => 1221580083, + }, + + 'profile.form.element' => { + message => q|The form element for this profile field.|, + context => q|Template variable for edit profile field|, + lastUpdated => 1221580083, + }, + + 'profile.form.element.label' => { + message => q|The label assigned to this profile field.|, + context => q|Template variable for edit profile field|, + lastUpdated => 1221580083, + }, + + 'profile.form.element.subtext' => { + message => q|If this profile field is a required profile field, then this will contain an asterisk "*".|, + context => q|Template variable for edit profile field|, + lastUpdated => 1221580083, + }, + }; 1;