Hey Beuh,
How did you disable fields in the admin generator? (ie gray them out but
still display values)
Beuh wrote:
> Hi,
>
> Some form's fields are disabled (grey) in my backend.
>
> I did it with the admin generator.
>
> My "generator.yml" seems to be good !
>
> How can I enable those fiel
Hey Beuh!
I think this happened to me too when I still worked with Propel.
Although I don't remember the cause of this anymore.
But I think the solution was to add a
fields:
my_field: {params: disabled=false}
in the generator.yml. Does this work?
Regards
Am Mittwoch, den 19.09.2007, 14:32
I know the cause, having struggled with this one already.
Any field that you add via generator.yml must be a part of the data
model with the module. If you add a field that is not a part of the
object, the field will be disabled by default. You'll have to
explicitly enable the field(s) you w
I didn't disable the fields.. it was the problem ! But I have actually
found how to enable those fields:
username:
name: Nom d'utilisateur
params: class=large maxlength=42 disabled=false
A simple "disable=false" seems to work correctly !
--~--~-~--~-
Thx for those answers !
I 'll take the "disabled=false" solution !
But I'm gonna use partials for an other problem : input passwords ;)
Beuh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
T