]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
actually, let's not use a fieldset label at all here, and use the
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Mon, 30 Apr 2007 03:49:35 +0000 (03:49 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Mon, 30 Apr 2007 03:49:35 +0000 (03:49 +0000)
"login with openid" as the input field label

IkiWiki/Plugin/openid.pm

index a24ee75196b333f54e6e067e002b3e689a9cef26..fcd53ee71c4973ffafc0f2a9e6871fed997eb97c 100644 (file)
@@ -28,10 +28,14 @@ sub formbuilder_setup (@) { #{{{
        my $cgi=$params{cgi};
 
        if ($form->title eq "signin") {
+               # This avoids it displaying a redundant label for the
+               # OpenID fieldset.
+               $form->fieldsets("OpenID");
+
                $form->field(
                        name => "openid_url",
-                       label => "OpenID",
-                       fieldset => gettext("Log in with")." ".htmllink("", "", "OpenID", noimageinline => 1),
+                       label => gettext("Log in with")." ".htmllink("", "", "OpenID", noimageinline => 1),
+                       fieldset => "OpenID",
                        size => 30,
                        comment => ($config{openidsignup} ? " | <a href=\"$config{openidsignup}\">".gettext("Get an OpenID")."</a>" : "")
                );