[html-formfu] Model::DBIC: label-style text field

Moritz Onken onken at houseofdesign.de
Sun Jan 11 12:26:06 GMT 2009


Am 09.01.2009 um 16:11 schrieb Carl Franks:
>
> I don't think non_param() can help.
> Model-DBIC iterates over form fields, not input parameters, so it
> shouldn't make any difference.
>
> I still think the best idea is adding support to Model-DBIC for a
> 'readonly' attribute.
>
> It'll take a while to do though, to ensure all cases are covered, and
> it's properly covered by tests - time I don't have unfortunately.
> If you want to do it, I'll certainly apply a patch for it.
>
> Carl


Hi Carl,

I just submitted Element::Label and a patch for Model::DBIC to support  
model_config->{read_only}.

If you want more tests for that please tell me. But I think the change  
to Model::DBIC is so
minimal that it should be fine. You might think of more cases where it  
could breka, however.


moritz



More information about the HTML-FormFu mailing list