Heheh...Why adding any hardcoded characters is just plain dumb? If I want to
have a standard in whole application, For example Name* So why don't hardcod
it? What for use JQuery to add it? If I can just use setLabel. Remember
KISS?

Of course there is a lot more you can do with CSS. In this case I ment
:before and :after in CSS which doesn;t work in IE. It all depend if you
want use JS or not, if you want to have a w3 validated code etc.

For now there is no function just to add that will add class to all required
fields in whole application. Always you have to trigger function in a form
class or add something to form class in order to make it work. The same job
if you add manually Labels with your code, class, whatever :)

2009/2/26 Lee Bolding <[email protected]>

>
> I ask anybody and everybody :)
>
> You can use CSS and JQuery to add whatever decoration you want before and
> after the required label. Take a look, there's a lot more possible with CSS
> than just making a label a different color ;)
>
> Adding any hardcoded characters is just plain dumb, it introduces a whole
> load of new problems, and it's totally not flexible.
>
> It's not 1994 anymore.
>
> ----- Original Message -----
> From: "Tomasz Ignatiuk" <[email protected]>
> To: [email protected]
> Sent: Thursday, February 26, 2009 11:13:35 AM GMT +00:00 GMT Britain,
> Ireland, Portugal
> Subject: [symfony-users] Re: Indicator for required fields
>
> "why you don't just give it a CSS class of 'required'"
> You ask this question to whom? Me? Users or Symfony Developers?
>
> Class required doesn't solve everything. With this you can only make a
> label different color or something. In 1.3 there should be a way to enter
> your own character before or after label, before or after input and a class
> 'required' for label and input.
>
> For now, the fastest way is to add your own character in label by setting a
> label in configure().
>
>
> 2009/2/26 Lee Bolding < [email protected] >
>
>
>
> I don't understand why you don't just give it a CSS class of 'required' -
> that way it's not 'fixed' as any particular character, and there are no I18N
> or accessibility issues.
>
> Seems like the most obvious answer to me (same as when I said this about 4
> weeks ago when this first came up)
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to