diff --git a/lib/WebGUI/Asset/Snippet.pm b/lib/WebGUI/Asset/Snippet.pm index 9a0c3448c..42633d34c 100644 --- a/lib/WebGUI/Asset/Snippet.pm +++ b/lib/WebGUI/Asset/Snippet.pm @@ -102,16 +102,19 @@ sub getEditForm { $tabform->getTab("properties")->codearea( -name=>"snippet", -label=>WebGUI::International::get('snippet', 'Asset_Snippet'), + -hoverHelp=>WebGUI::International::get('snippet description', 'Asset_Snippet'), -value=>$self->getValue("snippet") ); $tabform->getTab("properties")->yesNo( -name=>"processAsTemplate", -label=>WebGUI::International::get('process as template', 'Asset_Snippet'), + -hoverHelp=>WebGUI::International::get('process as template description', 'Asset_Snippet'), -value=>$self->getValue("processAsTemplate") ); $tabform->getTab("properties")->combo( -name=>"mimeType", -label=>WebGUI::International::get('mimeType', 'Asset_Snippet'), + -hoverHelp=>WebGUI::International::get('mimeType description', 'Asset_Snippet'), -value=>[$self->getValue('mimeType')], -options=>\%mimeTypes ); diff --git a/lib/WebGUI/Help/Asset_Snippet.pm b/lib/WebGUI/Help/Asset_Snippet.pm index 75a6a7032..f463689d9 100644 --- a/lib/WebGUI/Help/Asset_Snippet.pm +++ b/lib/WebGUI/Help/Asset_Snippet.pm @@ -6,6 +6,21 @@ our $HELP = { title => 'snippet add/edit title', body => 'snippet add/edit body', fields => [ + { + title => 'snippet', + description => 'snippet description', + namespace => 'Asset_Snippet', + }, + { + title => 'process as template', + description => 'process as template description', + namespace => 'Asset_Snippet', + }, + { + title => 'mimeType', + description => 'mimeType description', + namespace => 'Asset_Snippet', + }, ], related => [ { diff --git a/lib/WebGUI/i18n/English/Asset_Snippet.pm b/lib/WebGUI/i18n/English/Asset_Snippet.pm index 165c696ff..bacd7b5f4 100644 --- a/lib/WebGUI/i18n/English/Asset_Snippet.pm +++ b/lib/WebGUI/i18n/English/Asset_Snippet.pm @@ -28,23 +28,29 @@ our $I18N = { message => q|

Snippets are bits of text that may be reused on your site. Things like java scripts, style sheets, flash animations, or even slogans are all great snippets. Best of all, if you need to change the text, you can change it in only one location.

Since Snippets are Assets, so they have all the properties that Assets do.

- -

Snippet
-This is the snippet. Either type it in or copy and paste it into the form field. -

- -

Process as template?
-This will run the snippet through the template engine. It will enable you to use session variables in the snippet, but it is a little slower. -

- -

MIME Type
-Allows you to specify the MIME type of this asset when viewed via the web, useful if you'd like to serve CSS, plain text, javascript or other text files directly from the WebGUI asset system. Defaults to text/html. -

|, - context => 'Describing snippets and its sole field.', - lastUpdated => 1106683569, + context => 'Describing snippets', + lastUpdated => 1119765699, }, + 'snippet description' => { + message => q|This is the snippet. Either type it in or copy and paste it into the form field. +

|, + lastUpdated => 1119765682, + }, + + 'process as template description' => { + message => q|This will run the snippet through the template engine. It will enable you to use session variables in the snippet, but it is a little slower. +

|, + lastUpdated => 1119765682, + }, + + 'mimeType description' => { + message => q|Allows you to specify the MIME type of this asset when viewed via the web, useful if you'd like to serve CSS, plain text, javascript or other text files directly from the WebGUI asset system. Defaults to text/html. +

|, + lastUpdated => 1119765682, + }, + }; 1;