placed Asset/File help into its own set of files
This commit is contained in:
parent
5ebc401d6f
commit
cb948913c8
5 changed files with 67 additions and 42 deletions
|
|
@ -120,14 +120,14 @@ sub getEditForm {
|
|||
my $tabform = $self->SUPER::getEditForm();
|
||||
if ($self->get("filename") ne "") {
|
||||
$tabform->getTab("properties")->readOnly(
|
||||
-label=>WebGUI::International::get('current file', 'Asset'),
|
||||
-label=>WebGUI::International::get('current file', 'File'),
|
||||
-value=>'<a href="'.$self->getFileUrl.'"><img src="'.$self->getFileIconUrl.'" alt="'.$self->get("filename").'" border="0" align="middle" /> '.$self->get("filename").'</a>'
|
||||
);
|
||||
|
||||
}
|
||||
$tabform->getTab("properties")->file(
|
||||
-name=>"file",
|
||||
-label=>WebGUI::International::get('new file', 'Asset'),
|
||||
-label=>WebGUI::International::get('new file', 'File'),
|
||||
);
|
||||
return $tabform;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,6 @@
|
|||
package WebGUI::Help::Asset;
|
||||
|
||||
our $HELP = {
|
||||
'asset fields' => {
|
||||
title => 'asset fields title',
|
||||
body => 'asset fields body',
|
||||
related => [
|
||||
]
|
||||
},
|
||||
|
||||
'asset macros' => {
|
||||
title => 'asset macros title',
|
||||
|
|
@ -19,6 +13,13 @@ our $HELP = {
|
|||
]
|
||||
},
|
||||
|
||||
'asset fields' => {
|
||||
title => 'asset fields title',
|
||||
body => 'asset fields body',
|
||||
related => [
|
||||
]
|
||||
},
|
||||
|
||||
'snippet add/edit' => {
|
||||
title => 'snippet add/edit title',
|
||||
body => 'snippet add/edit body',
|
||||
|
|
|
|||
18
lib/WebGUI/Help/File.pm
Normal file
18
lib/WebGUI/Help/File.pm
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package WebGUI::Help::File;
|
||||
|
||||
our $HELP = {
|
||||
|
||||
'file add/edit' => {
|
||||
title => 'file add/edit title',
|
||||
body => 'file add/edit body',
|
||||
related => [
|
||||
{
|
||||
tag => 'asset fields',
|
||||
namespace => 'Asset'
|
||||
},
|
||||
]
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
@ -180,28 +180,6 @@ This is the snippet. Either type it in or copy and paste it into the form field
|
|||
lastUpdated => 1106683569,
|
||||
},
|
||||
|
||||
'file add/edit title' => {
|
||||
message => q|File, Add/Edit|,
|
||||
lastUpdated => 1106683494,
|
||||
},
|
||||
|
||||
'file add/edit body' => {
|
||||
message => q|<P>File Assets are files on your site that are available for users to download. If you would like to have multiple files available, try using a FilePile Asset.</P>
|
||||
|
||||
<P>Since Files are Assets, so they have all the properties that Assets do. Below are the properties that are specific to Image Assets:</P>
|
||||
|
||||
<P><b>New file to upload</b><br/>
|
||||
Enter the path to a file, or use the "Browse" button to find a file on your local hard
|
||||
drive that you would like to be uploaded.
|
||||
|
||||
<P><b>Current file</b><br/>
|
||||
If this Asset already contains a file, a link to the file with its associated icon will be shown.
|
||||
|
||||
|,
|
||||
context => 'Describing file add/edit form specific fields',
|
||||
lastUpdated => 1106762796,
|
||||
},
|
||||
|
||||
'image add/edit title' => {
|
||||
message => q|Image, Add/Edit|,
|
||||
lastUpdated => 1106762707,
|
||||
|
|
@ -268,18 +246,6 @@ The URL where the user will be redirected.
|
|||
context => 'Help text for redirects',
|
||||
},
|
||||
|
||||
'current file' => {
|
||||
message => q|Current file|,
|
||||
context => q|label for File asset form|,
|
||||
lastUpdated => 1106762086
|
||||
},
|
||||
|
||||
'new file' => {
|
||||
message => q|New file to upload|,
|
||||
context => q|label for File asset form|,
|
||||
lastUpdated => 1106762088
|
||||
},
|
||||
|
||||
'upload files' => {
|
||||
message => q|Upload Files|,
|
||||
context => q|label for File Pile asset form|,
|
||||
|
|
|
|||
40
lib/WebGUI/i18n/English/File.pm
Normal file
40
lib/WebGUI/i18n/English/File.pm
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
package WebGUI::i18n::English::File;
|
||||
|
||||
our $I18N = {
|
||||
'file add/edit title' => {
|
||||
message => q|File, Add/Edit|,
|
||||
lastUpdated => 1106683494,
|
||||
},
|
||||
|
||||
'file add/edit body' => {
|
||||
message => q|<P>File Assets are files on your site that are available for users to download. If you would like to have multiple files available, try using a FilePile Asset.</P>
|
||||
|
||||
<P>Since Files are Assets, so they have all the properties that Assets do. Below are the properties that are specific to Image Assets:</P>
|
||||
|
||||
<P><b>New file to upload</b><br/>
|
||||
Enter the path to a file, or use the "Browse" button to find a file on your local hard
|
||||
drive that you would like to be uploaded.
|
||||
|
||||
<P><b>Current file</b><br/>
|
||||
If this Asset already contains a file, a link to the file with its associated icon will be shown.
|
||||
|
||||
|,
|
||||
context => 'Describing file add/edit form specific fields',
|
||||
lastUpdated => 1106762796,
|
||||
},
|
||||
|
||||
'current file' => {
|
||||
message => q|Current file|,
|
||||
context => q|label for File asset form|,
|
||||
lastUpdated => 1106762086
|
||||
},
|
||||
|
||||
'new file' => {
|
||||
message => q|New file to upload|,
|
||||
context => q|label for File asset form|,
|
||||
lastUpdated => 1106762088
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
Loading…
Add table
Add a link
Reference in a new issue