[html-formfu] Dynamic Form Elements....

2008-12-17 Thread Johannes
Hi guys, trying to create form elements that are not in the formconfig.yml I succeeded creating and rendering them to the page, but they don't arrive on submit. Any idea if something like that may be possible? Form Config: *** --- indicator: submitindicator elemen

[html-formfu] insert_before/insert_after and nested forms

2008-12-17 Thread Tim Rayner
Hi, I've been trying to use the insert_before() and insert_after() methods to add a new element to a form that is nested (not that nested actually, it just has the auto_fieldset thing going on). I can find my pre-existing elements just fine with get_all_element, but when I try and insert a new ele

Re: [html-formfu] Deflator/Inflator::FormatNumber

2008-12-17 Thread onken
On Wed, 17 Dec 2008 11:30:58 +, "Carl Franks" wrote: >> $form->locale() would be great, we could tweak DateTime to use it as >> well. >> When I tested this module I recognized that the only locale I had >> installed >> was en_US. After installing locales-all I had all of them. >> Since $form-

Re: [html-formfu] Deflator/Inflator::FormatNumber

2008-12-17 Thread Carl Franks
2008/12/17 : > > On Wed, 17 Dec 2008 11:01:35 +, "Carl Franks" > wrote: >> 2008/12/17 : >>> >>> Hi Carl (and everyone else :-) ), >>> >>> I wrote a deflator/inflator couple for Number::Format. >>> The locale can be specified as well as precision and trailing zeroes. >>> >>> I'd be glad if yo

Re: [html-formfu] Deflator/Inflator::FormatNumber

2008-12-17 Thread onken
On Wed, 17 Dec 2008 11:01:35 +, "Carl Franks" wrote: > 2008/12/17 : >> >> Hi Carl (and everyone else :-) ), >> >> I wrote a deflator/inflator couple for Number::Format. >> The locale can be specified as well as precision and trailing zeroes. >> >> I'd be glad if you would have a look at it a

Re: [html-formfu] Config::General "select" form field

2008-12-17 Thread Octavian Rasnita
From: "Florent Angly" Exactly Carl! Using the alternate way worked. The Config::General code looks like that: namesex typeSelect value m label Male value f label Female Thanks for your help. Best, It would be very h

Re: [html-formfu] Deflator/Inflator::FormatNumber

2008-12-17 Thread Carl Franks
2008/12/17 : > > Hi Carl (and everyone else :-) ), > > I wrote a deflator/inflator couple for Number::Format. > The locale can be specified as well as precision and trailing zeroes. > > I'd be glad if you would have a look at it and consider to add it to > FormFu. The only disadvantage is that Num

Re: [html-formfu] Config::General "select" form field

2008-12-17 Thread Florent Angly
Carl Franks wrote: 2008/12/15 Florent Angly : Hi all, I have trouble creating Config::General code for a form select field. For example, how does the following YAML config translate into Config::General? elements: - type: Select name: sex options: - [ 'm', 'Male' ] - [

Re: [html-formfu] Deflator/Inflator::FormatNumber

2008-12-17 Thread onken
Damn webmail Here we go... On Wed, 17 Dec 2008 11:37:42 +0100, wrote: > On Wed, 17 Dec 2008 11:35:30 +0100, wrote: >> Hi Carl (and everyone else :-) ), >> >> I wrote a deflator/inflator couple for Number::Format. >> The locale can be specified as well as precision and trailing zeroes. > > For

Re: [html-formfu] Deflator/Inflator::FormatNumber

2008-12-17 Thread onken
On Wed, 17 Dec 2008 11:35:30 +0100, wrote: > Hi Carl (and everyone else :-) ), > > I wrote a deflator/inflator couple for Number::Format. > The locale can be specified as well as precision and trailing zeroes. Forgot to attach the files. >From the Number::Format docs: "format_number(12345.67

[html-formfu] Deflator/Inflator::FormatNumber

2008-12-17 Thread onken
Hi Carl (and everyone else :-) ), I wrote a deflator/inflator couple for Number::Format. The locale can be specified as well as precision and trailing zeroes. I'd be glad if you would have a look at it and consider to add it to FormFu. The only disadvantage is that Number::Format fails on some s

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

2008-12-17 Thread onken
Hi, I want to create a shopping cart with formfu. Actually the dialog where you see all your items and you can update the quantity of them. This is the only editable field. As label I use the product title. But also want to show the price and total. Both are avaiable from the row object. If I add