Setup items support labels nicely, as pioneered by Artanis

git-svn-id: file:///home/shish/svn/shimmie2/trunk@78 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2007-05-08 20:36:02 +00:00
parent 3d4e4f1b8e
commit ea9da95c7b
11 changed files with 69 additions and 76 deletions

View File

@@ -56,13 +56,9 @@ class UserPage extends Extension {
if(is_a($event, 'SetupBuildingEvent')) {
$sb = new SetupBlock("User Options");
$sb->add_label("Login memory: ");
$sb->add_int_option("login_memory");
$sb->add_label(" days");
$sb->add_label("<br>Allow new signups: ");
$sb->add_bool_option("login_signup_enabled");
$sb->add_label("<br>Terms &amp; Conditions:<br>");
$sb->add_longtext_option("login_tac");
$sb->add_int_option("login_memory", "Login memory: "); $sb->add_label(" days");
$sb->add_bool_option("login_signup_enabled", "<br>Allow new signups: ");
$sb->add_longtext_option("login_tac", "<br>Terms &amp; Conditions:<br>");
$event->panel->add_main_block($sb);
}
if(is_a($event, 'ConfigSaveEvent')) {