* Use div layout for the signin and preferences forms, so that they can be
styled using the stylesheet, rather than by creating signin and prefs templates. * Make the openid login form nicely styled.master
parent
f46c35f46f
commit
65be0598a9
|
@ -137,6 +137,7 @@ sub cgi_signin ($$) { #{{{
|
||||||
error($@) if $@;
|
error($@) if $@;
|
||||||
my $form = CGI::FormBuilder->new(
|
my $form = CGI::FormBuilder->new(
|
||||||
title => "signin",
|
title => "signin",
|
||||||
|
name => "signin",
|
||||||
header => 1,
|
header => 1,
|
||||||
charset => "utf-8",
|
charset => "utf-8",
|
||||||
method => 'POST',
|
method => 'POST',
|
||||||
|
@ -145,7 +146,7 @@ sub cgi_signin ($$) { #{{{
|
||||||
params => $q,
|
params => $q,
|
||||||
action => $config{cgiurl},
|
action => $config{cgiurl},
|
||||||
header => 0,
|
header => 0,
|
||||||
template => scalar template_params("signin.tmpl"),
|
template => {type => 'div'},
|
||||||
stylesheet => baseurl()."style.css",
|
stylesheet => baseurl()."style.css",
|
||||||
);
|
);
|
||||||
my $buttons=["Login"];
|
my $buttons=["Login"];
|
||||||
|
@ -206,6 +207,7 @@ sub cgi_prefs ($$) { #{{{
|
||||||
error($@) if $@;
|
error($@) if $@;
|
||||||
my $form = CGI::FormBuilder->new(
|
my $form = CGI::FormBuilder->new(
|
||||||
title => "preferences",
|
title => "preferences",
|
||||||
|
name => "preferences",
|
||||||
header => 0,
|
header => 0,
|
||||||
charset => "utf-8",
|
charset => "utf-8",
|
||||||
method => 'POST',
|
method => 'POST',
|
||||||
|
@ -216,7 +218,7 @@ sub cgi_prefs ($$) { #{{{
|
||||||
javascript => 0,
|
javascript => 0,
|
||||||
params => $q,
|
params => $q,
|
||||||
action => $config{cgiurl},
|
action => $config{cgiurl},
|
||||||
template => scalar template_params("prefs.tmpl"),
|
template => {type => 'div'},
|
||||||
stylesheet => baseurl()."style.css",
|
stylesheet => baseurl()."style.css",
|
||||||
fieldsets => [
|
fieldsets => [
|
||||||
[login => gettext("Login")],
|
[login => gettext("Login")],
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
ikiwiki (2.1) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* Use div layout for the signin and preferences forms, so that they can be
|
||||||
|
styled using the stylesheet, rather than by creating signin and prefs
|
||||||
|
templates.
|
||||||
|
* Make the openid login form nicely styled.
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Mon, 30 Apr 2007 17:53:10 -0400
|
||||||
|
|
||||||
ikiwiki (2.00) unstable; urgency=low
|
ikiwiki (2.00) unstable; urgency=low
|
||||||
|
|
||||||
[ Josh Triplett ]
|
[ Josh Triplett ]
|
||||||
|
|
|
@ -265,6 +265,8 @@ input#openid_url {
|
||||||
border: 2px solid;
|
border: 2px solid;
|
||||||
background-color: #dee;
|
background-color: #dee;
|
||||||
color: black;
|
color: black;
|
||||||
|
|
||||||
|
/* Nonstandard, but very nice. */
|
||||||
opacity: 0.95;
|
opacity: 0.95;
|
||||||
-moz-opacity: 0.95;
|
-moz-opacity: 0.95;
|
||||||
filter: alpha(opacity=95);
|
filter: alpha(opacity=95);
|
||||||
|
@ -278,3 +280,17 @@ fieldset {
|
||||||
legend {
|
legend {
|
||||||
padding: 0 1ex;
|
padding: 0 1ex;
|
||||||
}
|
}
|
||||||
|
.fb_submit {
|
||||||
|
float: left;
|
||||||
|
margin: 2px 0;
|
||||||
|
}
|
||||||
|
#signin_openid_url_label {
|
||||||
|
float: left;
|
||||||
|
margin-right: 1ex;
|
||||||
|
}
|
||||||
|
#signin_openid {
|
||||||
|
padding: 10px 10px;
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
background: #eee;
|
||||||
|
color: black !important;
|
||||||
|
}
|
||||||
|
|
|
@ -34,20 +34,5 @@ located in /usr/share/ikiwiki/templates by default.
|
||||||
* `searchform.tmpl` - Used by the [[plugins/search]] plugin to add a search
|
* `searchform.tmpl` - Used by the [[plugins/search]] plugin to add a search
|
||||||
form to wiki pages.
|
form to wiki pages.
|
||||||
|
|
||||||
If you like, you can add these to further customise it:
|
|
||||||
|
|
||||||
* `signin.tmpl` - If it exists, it is used for customising the
|
|
||||||
layout of the SignIn form and all assciated forms. The misc.tmpl is
|
|
||||||
wrapped around this, so it should only be a template for the form.
|
|
||||||
* `prefs.tmpl` - If it exists, it is used for customising the
|
|
||||||
layout of the Prefs form and all assciated forms. The misc.tmpl is
|
|
||||||
wrapped around this, so it should only be a template for the form.
|
|
||||||
|
|
||||||
Note that the SignIn and Prefs forms are implemented using
|
|
||||||
CGI::FormBuilder, which interfaces to HTML::Template, so not all of it can
|
|
||||||
be customised with templates, although most of it can, by creating these
|
|
||||||
templates. Without the templates, CGI::FormBuilder creates the page bodies
|
|
||||||
by itself.
|
|
||||||
|
|
||||||
The [[plugins/template]] plugin also uses templates, though those
|
The [[plugins/template]] plugin also uses templates, though those
|
||||||
[[templates]] are stored in the wiki.
|
[[templates]] are stored in the wiki.
|
||||||
|
|
Loading…
Reference in New Issue