Fix number of tests in Utility.t

Add help for dashboard and fix labels.
Remove startDate, endDate from Asset help.
Update Help template to show UI levels as data rather than content.
This commit is contained in:
Colin Kuskie 2006-03-03 05:28:53 +00:00
parent 9aac37ac91
commit c323789d64
6 changed files with 59 additions and 46 deletions

View file

@ -36,6 +36,7 @@ addDisabletoRichEditor();
addNavigationMimeType();
addIndexes();
addDatabaseCache();
updateHelpTemplate();
finish($session); # this line required
@ -567,6 +568,30 @@ sub ip2cidr {
}
#-------------------------------------------------
sub updateHelpTemplate {
print "\tUpdating Help template.\n" unless ($quiet);
my $template = <<EOT;
<p><tmpl_var body></p>
<tmpl_if fields>
<dl>
<tmpl_loop fields>
<dt><tmpl_var title></dt>
<dd><tmpl_var description>
<tmpl_if uiLevel>
<br /><i><tmpl_var uiLevelLabel>:</i><tmpl_var uiLevel>
</tmpl_if>
</dd>
</tmpl_loop>
</dl>
</tmpl_if>
EOT
my $asset = WebGUI::Asset->new($session,"PBtmplHelp000000000001","WebGUI::Asset::Template");
$asset->addRevision({template=>$template})->commit;
}
# ---- DO NOT EDIT BELOW THIS LINE ----
#-------------------------------------------------