Re: Change to community logins - Mailing list pgsql-www

From Alexey Borzov
Subject Re: Change to community logins
Date
Msg-id 46C0CC8E.7090909@cs.msu.su
Whole thread Raw
In response to Re: Change to community logins  (Magnus Hagander <magnus@hagander.net>)
Responses Re: Change to community logins
List pgsql-www
Hi,

Magnus Hagander wrote:
>>>> $this->form->addElement('static', null, null, '<font color="red">' .
>>>> gettext("Userid or password was incorrect. Please try again.") .
>>>> '</font>');
>>>>
>>>>
>>>> This should be calling to the stylesheet ;)
>>> Yeah, if I knew how :) The HTML Quickforms stuff is very inflexible.
>> Well, it may be inflexible but why aren't you displayiing that as an
>> error message in the first place?
> 
> I probably would, if I had any idea how to do that. Haven't been able to
> find any docs at all about that. Got any good pointers?

That's probably what you are looking for:
http://pear.php.net/manual/en/package.html.html-quickform.html-quickform.setelementerror.php

>> Also you can map element -> template
>> block so that your message will be displayed in whatever style you want.
> 
> That I think I know how to do, really. Will look at that.

Whatever approach you choose, the markup may be kept in the template.


pgsql-www by date:

Previous
From: Alexey Borzov
Date:
Subject: Re: Change to community logins
Next
From: Jeff Davis
Date:
Subject: Re: Features list