[symfony-users] Re: Indicator for required fields

2009-03-02 Thread Lee Bolding
Please, explain why. This should be interesting :) - Original Message - From: "avorobiev" To: "symfony users" Sent: Monday, 2 March, 2009 7:02:24 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: [symfony-users] Re: Indicator for required fields You shoudn&#x

[symfony-users] Re: Indicator for required fields

2009-03-01 Thread avorobiev
You shoudn't use css property for required field marking..., but you can replace css class on any html. I am using nex solution: 1. Modify base form class lib/form/doctrine/BaseFormDoctrine.class.php abstract class BaseFormDoctrine extends sfFormDoctrine { const REQUIRED_CLASS_NAME = 'required';

[symfony-users] Re: Indicator for required fields

2009-02-26 Thread Yevgeniy A. Viktorov
I am using this way: http://dark-it.blogspot.com/2009/01/symfony-mark-fields-as-required.html http://dark-it.blogspot.com/2009/01/symfony-mark-fields-as-required-part-2.html p.s. Made sfWidgetFormSchemaFormatterDiv and base forms(for propel and regular forms) for personal needs, then using globa

[symfony-users] Re: Indicator for required fields

2009-02-26 Thread Tomasz Ignatiuk
1994 anymore. > > - Original Message - > From: "Tomasz Ignatiuk" > To: symfony-users@googlegroups.com > Sent: Thursday, February 26, 2009 11:13:35 AM GMT +00:00 GMT Britain, > Ireland, Portugal > Subject: [symfony-users] Re: Indicator for required fields > &

[symfony-users] Re: Indicator for required fields

2009-02-26 Thread Lee Bolding
bject: [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 o

[symfony-users] Re: Indicator for required fields

2009-02-26 Thread Tomasz Ignatiuk
http://www.symfony-project.org/blog/2009/01/25/about-symfony-1-3 2009/2/26 Paolo Mainardi > > > On Thu, Feb 26, 2009 at 12:04 PM, Tomasz Ignatiuk < > tomek.ignat...@gmail.com> wrote: > >> It is not perfect but I don't think it is: " Form Framework is >> Overengineering, Overcomplicated, Less doc

[symfony-users] Re: Indicator for required fields

2009-02-26 Thread Paolo Mainardi
On Thu, Feb 26, 2009 at 12:04 PM, Tomasz Ignatiuk wrote: > It is not perfect but I don't think it is: " Form Framework is > Overengineering, Overcomplicated, Less documented" > We are discussing on "how to set a marker of required fields" and at the final we are arrived to "the better thing is to

[symfony-users] Re: Indicator for required fields

2009-02-26 Thread Tomasz Ignatiuk
> > - Original Message - > From: "Paolo Mainardi" > To: symfony-users@googlegroups.com > Sent: Thursday, February 26, 2009 11:01:19 AM GMT +00:00 GMT Britain, > Ireland, Portugal > Subject: [symfony-users] Re: Indicator for required fields > > It's

[symfony-users] Re: Indicator for required fields

2009-02-26 Thread Lee Bolding
weeks ago when this first came up) - Original Message - From: "Paolo Mainardi" To: symfony-users@googlegroups.com Sent: Thursday, February 26, 2009 11:01:19 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: [symfony-users] Re: Indicator for required fields It's sa

[symfony-users] Re: Indicator for required fields

2009-02-26 Thread Tomasz Ignatiuk
It is not perfect but I don't think it is: " Form Framework is Overengineering, Overcomplicated, Less documented" 2009/2/26 Paolo Mainardi > It's sad to say, but i think that wthis Form Framework is Overengineering, > Overcomplicated, Less documented and don't take care of this basic > behaviou

[symfony-users] Re: Indicator for required fields

2009-02-26 Thread Paolo Mainardi
It's sad to say, but i think that wthis Form Framework is Overengineering, Overcomplicated, Less documented and don't take care of this basic behaviour, this problem is an example. It's possible to have a complete Form Framework like this and discuss on "*" to put on required fields ? I don't thin

[symfony-users] Re: Indicator for required fields

2009-02-26 Thread Tomasz Ignatiuk
It is not good solution because using css pre doesn't work in IE...which is used byI don't know...50% of users? On 26 Lut, 06:58, avorobiev wrote: > Look > athttp://groups.google.com/group/symfony-devs/browse_thread/thread/4c81... > > On Feb 24, 2:20 pm, Tomasz Ignatiuk wrote: > > > On 16

[symfony-users] Re: Indicator for required fields

2009-02-25 Thread avorobiev
Look at http://groups.google.com/group/symfony-devs/browse_thread/thread/4c81264521f8bc60 On Feb 24, 2:20 pm, Tomasz Ignatiuk wrote: > On 16 Sty, 13:35, Thomas Dedericks wrote: > > > > > Hi, > > > Not tested: > > > public function configure() { > > >         ... > > >         # add * torequire

[symfony-users] Re: Indicator for required fields

2009-02-24 Thread Tomasz Ignatiuk
On 16 Sty, 13:35, Thomas Dedericks wrote: > Hi, > > Not tested: > > public function configure() { > >         ... > >         # add * torequiredfields' labels: >         foreach ($this->widgetSchema as $name => $widget) >         { >                 if (isset($this->validatorSchema[$name]) && >

[symfony-users] Re: Indicator for required fields

2009-01-16 Thread CiPheR
Lee: Sounds like a great idea, but it still requires manual labor each time a new Form is generated (I generate mine via Propel). If there were a way to automate this, it would be the way to go! Thomas: Thanks. This is a great start. I was looking for something more along the lines of making a cu

[symfony-users] Re: Indicator for required fields

2009-01-16 Thread Thomas Dedericks
Hi, Not tested: public function configure() { ... # add * to required fields' labels: foreach ($this->widgetSchema as $name => $widget) { if (isset($this->validatorSchema[$name]) && $this->validatorSchema[$name]->hasOption('required') &&

[symfony-users] Re: Indicator for required fields

2009-01-16 Thread Lee Bolding
I think the easiest way to achieve this would be if the admin generator made the CSS class of the label and input of the required column as "required" - then it would be up to you how you wanted to style that (if it all) to express that it was a required field. I already do a similar thing