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
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';
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
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
>
&
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
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
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
>
> - 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
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
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
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
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
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
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]) &&
>
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
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') &&
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
17 matches
Mail list logo