more stuff
This commit is contained in:
parent
209732287e
commit
d0171f7199
3 changed files with 38 additions and 1 deletions
22
lib/WebGUI/i18n/English/Asset_EMSSubmission.pm
Normal file
22
lib/WebGUI/i18n/English/Asset_EMSSubmission.pm
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
package WebGUI::i18n::English::Asset_EMSSubmission; ##Be sure to change the package name to match the filename
|
||||||
|
|
||||||
|
use strict; ##Required for all good Perl::Critic compliant code
|
||||||
|
|
||||||
|
our $I18N = { ##hashref of hashes
|
||||||
|
|
||||||
|
'assetName' => {
|
||||||
|
message => q|EMS Event Submission|,
|
||||||
|
lastUpdated => 1131394072,
|
||||||
|
context => q|Then name of the Asset ( Event Management System - Event Submission ).|
|
||||||
|
},
|
||||||
|
|
||||||
|
# 'TODO' => {
|
||||||
|
# message => q|TODO|,
|
||||||
|
# lastUpdated => 1131394072,
|
||||||
|
# context => q|TODO|
|
||||||
|
# },
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
1;
|
||||||
|
#vim:ft=perl
|
||||||
|
|
@ -1,9 +1,14 @@
|
||||||
package WebGUI::i18n::English::_i18n; ##Be sure to change the package name to match the filename
|
package WebGUI::i18n::English::Asset_EMSSubmissionForm; ##Be sure to change the package name to match the filename
|
||||||
|
|
||||||
use strict; ##Required for all good Perl::Critic compliant code
|
use strict; ##Required for all good Perl::Critic compliant code
|
||||||
|
|
||||||
our $I18N = { ##hashref of hashes
|
our $I18N = { ##hashref of hashes
|
||||||
|
|
||||||
|
'assetName' => {
|
||||||
|
message => q|EMS Event Submission Form|,
|
||||||
|
lastUpdated => 1131394072,
|
||||||
|
context => q|Then name of the Asset ( Event Management System - Event Submission Form ).|
|
||||||
|
},
|
||||||
'next submission id label' => {
|
'next submission id label' => {
|
||||||
message => q|Next Submission Id|,
|
message => q|Next Submission Id|,
|
||||||
lastUpdated => 1131394072,
|
lastUpdated => 1131394072,
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,8 @@ ok( !$frmA->validateSubmission({
|
||||||
}), 'not a valid submission' );
|
}), 'not a valid submission' );
|
||||||
# TODO: test more field validations
|
# TODO: test more field validations
|
||||||
|
|
||||||
|
print "after tests\n";
|
||||||
|
|
||||||
# TODO use meta field in this form
|
# TODO use meta field in this form
|
||||||
my $frmB = $ems->addChild({
|
my $frmB = $ems->addChild({
|
||||||
className => 'WebGUI::Asset::EMSSubmissionForm',
|
className => 'WebGUI::Asset::EMSSubmissionForm',
|
||||||
|
|
@ -145,6 +147,7 @@ my $frmB = $ems->addChild({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
# TODO: test meta field validation
|
# TODO: test meta field validation
|
||||||
|
print "created one form\n";
|
||||||
|
|
||||||
loginUserA;
|
loginUserA;
|
||||||
|
|
||||||
|
|
@ -153,10 +156,12 @@ my $sub1 = $frmA->addSubmission({
|
||||||
title => 'my favorite thing to talk about',
|
title => 'my favorite thing to talk about',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
print "created one submission\n";
|
||||||
#this one should fail
|
#this one should fail
|
||||||
my $sub2 = $frmB->addSubmission({
|
my $sub2 = $frmB->addSubmission({
|
||||||
title => 'why i like to be important',
|
title => 'why i like to be important',
|
||||||
});
|
});
|
||||||
|
print "created another submission\n";
|
||||||
|
|
||||||
loginUserB;
|
loginUserB;
|
||||||
|
|
||||||
|
|
@ -165,19 +170,23 @@ my $sub3 = $frmB->addSubmission({
|
||||||
title => 'five minutes of me',
|
title => 'five minutes of me',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
print "created third submission\n";
|
||||||
loginUserC;
|
loginUserC;
|
||||||
|
|
||||||
# should work
|
# should work
|
||||||
my $sub4 = $frmB->addSubmission({
|
my $sub4 = $frmB->addSubmission({
|
||||||
title => 'why humility is underrated',
|
title => 'why humility is underrated',
|
||||||
});
|
});
|
||||||
|
print "created fourth submission\n";
|
||||||
|
|
||||||
# should work
|
# should work
|
||||||
my $sub5 = $frmA->addSubmission({
|
my $sub5 = $frmA->addSubmission({
|
||||||
title => 'what you should know about everybody',
|
title => 'what you should know about everybody',
|
||||||
});
|
});
|
||||||
|
print "created fifth submission\n";
|
||||||
|
|
||||||
$sub1->addComment({ 'this is a test comment' });
|
$sub1->addComment({ 'this is a test comment' });
|
||||||
|
print "added a comment\n";
|
||||||
|
|
||||||
my $TODO = q{
|
my $TODO = q{
|
||||||
modify submission(s)
|
modify submission(s)
|
||||||
|
|
@ -186,6 +195,7 @@ run submission approval activity
|
||||||
run submission cleanup activity
|
run submission cleanup activity
|
||||||
};
|
};
|
||||||
$versionTag->commit;
|
$versionTag->commit;
|
||||||
|
print "end of program\n";
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# Cleanup
|
# Cleanup
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue