Re: [html-formfu] How to remove enclosing div for a text input element

2012-04-04 Thread Brian Cassidy
e, if you want "horizontal" forms [1], your markup for each label/input looks something like this: Text input Supporting help text [1] http://twitter.github.com/bootstrap/base-css.html#forms (scroll down a bit) -- Brian Cassidy

Re: [html-formfu] How to remove enclosing div for a text input element

2012-04-04 Thread Brian Cassidy
to put them up on github or the like for everyone to use. I think the takeaway here is that if you want radically customized templates you either have to create your own rendering method which circumvents the built-ins, or use a custom set of templates. Hope that helps! [1] for those of you

Re: [html-formfu] How to remove enclosing div for a text input element

2012-04-04 Thread Brian Cassidy
tself: https://metacpan.org/module/HTML::FormFu::Role::Element::Field#container_tag The tag's attributes: https://metacpan.org/module/HTML::FormFu::Role::Element::Field#container_attributes HTH, -- Brian Cassidy (brian.cass...@gmail.com)

Re: [html-formfu] make test fails on install

2010-08-11 Thread Brian Cassidy
x27;d say things are good to go for an incremental release (less the minor details like release date and such). Cheers, -- Brian Cassidy (brian.cass...@gmail.com) ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Re: [html-formfu] Is mro.pm really required?

2010-06-21 Thread Brian Cassidy
official release is cut. Hope that helps, -- Brian Cassidy (brian.cass...@gmail.com) ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Re: [html-formfu] Is mro.pm really required?

2010-05-20 Thread Brian Cassidy
see the failures in the CPAN Testers reports. D'oh. I've checked in revision 1713, which adds a 'use MRO::Compat;' before any "use mro" statement. This should solve the issue. Please test svn trunk. -- Brian Cassidy (brian.cass...@gmail.com) ___

Re: [html-formfu] Is there (semi-) official git repo?

2010-03-03 Thread Brian Cassidy
On Tue, Mar 2, 2010 at 12:07 AM, Moritz Onken wrote: > Carl planned to move his projects to github, IIRC. This is true, but the svn history is a bit messy. If anyone can untangle it, I'm sure Carl would be pleased as punch (as would I). -- Brian Cassidy (brian.cass...@g

Re: [html-formfu] Repeatable elements, number of empty rows on a "create" form.

2010-03-02 Thread Brian Cassidy
 $form->get_all_element({ type => 'Repeatable' })->repeat(3); >    $form->get_all_element('count')->default(3); >    $form->process; > } Not sure how I missed that before. *sigh* Thanks Carl, -- Brian Cassidy (brian.cass...@gmail.com) ___

Re: [html-formfu] Repeatable elements, number of empty rows on a "create" form.

2010-03-01 Thread Brian Cassidy
On Mon, Mar 1, 2010 at 2:52 PM, Carl Franks wrote: > > I think you'll also need to set 'new_rows_max'. Adding "new_rows_max: 3" shows no change in the rendered form. -- Brian Cassidy (brian.cass...@gmail.com) ___ HTML-

[html-formfu] Repeatable elements, number of empty rows on a "create" form.

2010-03-01 Thread Brian Cassidy
rst: 1 model_config: resultset: SponsorType - type: Text label: Name name: name -- Brian Cassidy (brian.cass...@gmail.com) ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Re: [html-formfu] Localization with catalyst

2010-01-29 Thread Brian Cassidy
9/HTML/FormFu/Localize.pm line 109. >  at > /usr/local/lib/perl5/site_perl/5.8.9/Catalyst/Controller/HTML/FormFu/Action/FormConfig.pm > line 42 >  at > /usr/local/lib/perl5/site_perl/5.8.9/Catalyst/Controller/HTML/FormFu/Action/FormConfig.pm > line 42" Hrmm, try removing &qu

Re: [html-formfu] Localization with catalyst

2010-01-29 Thread Brian Cassidy
2010/1/29 Gabor HALASZ : > I tried localize formfu with catalyst::plugin::I18N, but I have no luck. Can you paste your form config? Remember to use "label_loc" instead of just "label". -- Brian Cassidy (brian.cass...@gmail.com)

Re: [html-formfu] HTML::FormFu, YAML, Unicode issue (introduced December 2009)

2010-01-11 Thread Brian Cassidy
the requirement to 0.18. I've checked this in as SVN revision 1667. Cheers, -- Brian Cassidy (brian.cass...@gmail.com) ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Re: [html-formfu] [PATCH] fix spelling errors in documentation

2010-01-11 Thread Brian Cassidy
On Sun, Jan 10, 2010 at 5:25 AM, Ansgar Burchardt wrote: > when updating the Debian package for HTML-FormFu, lintian (one of > Debian's QA tools) pointed out several spelling errors in the > documentation.  The attached patch should fix these. Applied as SVN revision 1666. Than

Re: [html-formfu] 2k10 bug (?) in FormFu's t/elements/date_undef.t

2010-01-04 Thread Brian Cassidy
On Mon, Jan 4, 2010 at 9:07 AM, Oskari 'Okko' Ojala wrote: > Is this a 2010 bug as 2009 doesn't appear in the options anymore? > > t/elements/date_undef.t 1/2 I've committed a fix for this as svn revision 1661 [1]. Thanks!

Re: [html-formfu] YAML::XS problem

2009-12-07 Thread Brian Cassidy
t wrap %n in single quote: '%n' -- that'll make YAML::XS happy. -- Brian Cassidy (brian.cass...@gmail.com) ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Re: PING bricas Re: [html-formfu] Config with Config::Any::XML

2009-11-16 Thread Brian Cassidy
/perl/5.10.0/HTML/FormFu/ObjectUtil.pm line 502 Turns out the XML loader was assuming everything it got back was a hashref. Obviously, in this case, it was not. I've added a test for this, and shipped 0.18 to CPAN -- arriving at a mirror near you shortly. Please test it and let me know

[html-formfu] Follow-up regarding large numbers of checkboxes

2007-09-26 Thread Brian Cassidy
Hi All, This is just a quick follow-up to share my work-around for rendering a large number of checkboxes. I was able to deduce that the biggest problem was the number of TT2 INCLUDE statements that had to be processed. So, I just created a new TT file which is a dumbed down version of the r

Re: [html-formfu] multiple ids of the same value in radiogroup

2007-09-24 Thread Brian Cassidy
Carl Franks wrote: Are you using auto_id() ? If you are, this should already be handled for you, by adding an incremented integer to the end of the ID. See lib/HTML/FormFu/Element/RadioGroup.pm - sub _prepare_id() Ah yes, $self->auto_id( '%n_%c' ); -- should that be the default for things lik

Re: [html-formfu] proper way to set options for radiogroup

2007-09-24 Thread Brian Cassidy
Carl Franks wrote: No, 'default' would be ignored (lost) during options(). Only 1 radio item's value can match the default. It should be: $self->options( [ map { { value=> $_->id, label=> ucfirst $_->name,

[html-formfu] proper way to set options for radiogroup

2007-09-24 Thread Brian Cassidy
Hey All, If someone could please refresh my memory, I'm attempting to populate a radiogroup with options from a catalyst model, setting defaults is an entry is in the stash. It shows the options okay, but it's not setting the default properly. I've examined $self->_options to see what comes

[html-formfu] multiple ids of the same value in radiogroup

2007-09-24 Thread Brian Cassidy
Hey Gang, I was just playing around with the Radiogroup element, and i noticed the default rendering sets the same id for each option. Naturally this is invalid html. Traditionally i've done value="$value" id="${field}_${value}" /> for="${field}_${value}">... because the value is usually a num

Re: [html-formfu] Slight issue with DBIx-Class-HTML-FormFu

2007-09-24 Thread Brian Cassidy
Carl Franks wrote: On 22/09/2007, Mario Minati <[EMAIL PROTECTED]> wrote: I just put an update on SVN. Yes, this is a "slight issue" ;) I've pushed a new cpan release out with the fix - it should be available within hours. Thanks Mario && Carl! -Brian

[html-formfu] Template::Alloy rendering error

2007-09-21 Thread Brian Cassidy
Hey All, I'm trying to speed up my form rendering -- I have a page with about 1200 checkbox + label pairs that I'm trying to display and it's taking about 15 seconds with TT2 before the page shows up. I thought I might try Template::Allow to see if it improves anything. However, if i set C

[html-formfu] Slight issue with DBIx-Class-HTML-FormFu

2007-09-21 Thread Brian Cassidy
This is a bug report/warning to those using DBIx-Class-HTML-FormFu. /DO NOT/ name any element in your page "delete" if you plan on using $obj->fill_formfu_values( $form ); The component checks if $obj->can( $field ) then calls $obj->$field. So, in this case, "delete" is legit and gets called.

[html-formfu] Re: Prototype && HTML::FormFu

2007-09-10 Thread Brian Cassidy
Hey All, This thread kind of got warnocked. Perhaps a re-post will help? :) -Brian Brian Cassidy wrote: I decided to start with a simple auto-complete element. I can envision the yaml file looking something like this in it's simplest form: - name: foo type: Prototype::Autocomplete

[html-formfu] circular_reference.t throws some uninitialized value warnings

2007-09-05 Thread Brian Cassidy
Howdy, I was just running the latest test suite and it seems the circular ref test throws some warnings: t/bugs/circular_reference..Use of uninitialized value in string eq at /home/bricas/tmp/HTML-FormFu/blib/lib/HTML/FormFu/Element/Checkbox.pm line 39. Use of uninitiali

Re: [html-formfu] CPAN release out

2007-08-22 Thread Brian Cassidy
Carl Franks wrote: The following modules have been uploaded to pause.perl.org, all at version 0.01001 HTML-FormFu HTML-FormFu-Imager DBIx-Class-HTML-FormFu Catalyst-Controller-HTML-FormFu They should be available on http://search.cpan.org within 24 hours. Sweet! fireartist++

Re: [html-formfu] How to remove the .. for customized element

2007-08-20 Thread Brian Cassidy
Carl Franks wrote: ...but then on second thought, I decided it was a quite reasonable request to support without having to customise your templates. So now if you do $field->container_tag(undef); - or "container_tag: ~" in yaml - it'll skip the span tag. fireartist++ Container tags can be han

[html-formfu] Prototype && HTML::FormFu

2007-08-20 Thread Brian Cassidy
Hi, I've noticed Carl's Dojo-based widgets in the svn repository, and since i've been doing some work with formfu and prototype ( + scriptaculous), i thought it might be nice to have something similar for that combination. I hope this thread will answer some questions i have about making cust

Re: [html-formfu] filename case

2007-08-17 Thread Brian Cassidy
Carl Franks wrote: Sigh, I just didn't want to mess people about by renaming all the Element files to CamelCase - when I did the exact opposite 5 months ago. That's really the only reason I suggested such a complicated solution. And I feel the current inconsistency has the potential to cause conf

Re: [html-formfu] filename case

2007-08-17 Thread Brian Cassidy
Carl Franks wrote: I'm not entirely happy with all element filenames being lowercase, and everything else being CamelCaps. What I think would be better, would be to have all files under: Elements/ Deflators/ Filters/ Constraints/ Inflators/ Validators/ Transformers/ to be low

[html-formfu] Missing refaddr for Scalar::Util import

2007-08-16 Thread Brian Cassidy
Hi Carl, I'm not sure why this works on my ubuntu box and not the windows box, but i get an error (Can't call method refaddr without a package or object reference) in two spots: HTML/FormFu.pm HTML/FormFu/Render/base.pm Attached is a patch to fix that... -Brian === lib/HTML/FormFu/Render/ba

Re: [html-formfu] Odd "bool" overload error on submitted page once reloaded

2007-08-16 Thread Brian Cassidy
Carl Franks wrote: Ok, I've now added 'fallback' to all overloads. I've also changed that particular line in HTML/FormFu.pm to a defined() check, rather than truth. Great -- I've yet to re-produce the problem once I updated to the latest svn revision. -Brian __

[html-formfu] Odd "bool" overload error on submitted page once reloaded

2007-08-16 Thread Brian Cassidy
Hey all, I'm just doing some manual form testing by submitting a form and then reloading the page (thus re-POST-ing the params) as i make changes. However, often times, on first reload i get this: Operation "bool": no method found, argument in overloaded package HTML::FormFu::Element::text a

Re: [html-formfu] RFC: i18n key changes

2007-08-16 Thread Brian Cassidy
Carl Franks wrote: I propose changing the key to the format: "form_${processor}_${type}" +1 That seems like a sane default. -Brian ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-for

Re: [html-formfu] CPAN releases (again)

2007-08-15 Thread Brian Cassidy
Carl Franks wrote: There's 1 thing I don't like that I've not brought up before - it's the mismatch between the Catalyst controller being called 'HTML::FormFu' and the DBIx::Class plugin being called 'FormFu'. I'd rather rename "DBIx::Class::FormFu" to "DBIx::Class::HTML::FormFu". Would this caus

[html-formfu] CPAN releases (again)

2007-08-15 Thread Brian Cassidy
Hi Carl, Not to be a total pain in the posterior, but I was just wondering about the status of some pending CPAN releases. Most importantly, a non-dev release of HTML-FormFu. Another dev release is fine, though it's been dev for one and a half months now :). Further to that, the Catalyst con

Re: [html-formfu] Re: Required and Email constraint doesn't give error message

2007-08-02 Thread Brian Cassidy
Carl Franks wrote: On 20/07/07, kewei xiao <[EMAIL PROTECTED]> wrote: I was at the version before you did change on "legend_loc()", after you did changes, I checked out the latest version and updated. That's when I couldn't see any error message. Did you get anywhere with this? I took a loo

Re: [html-formfu] dev release pushed to CPAN

2007-06-29 Thread Brian Cassidy
Carl Franks wrote: Yup, there's been several calls for that in the past week or two, so I've just uploaded a dev release to pause - version 0.01000_01 (adopting the dbix-class numbering scheme) - so it should be on cpan very soon. Thanks! fireartist++ -Brian __

[html-formfu] DB-driven select boxes, checkbox groups and radio groups

2007-06-29 Thread Brian Cassidy
Hey All, A common theme we're running into is providing select boxes, and (radio|checkbox) groups with data stored in the database. Select boxes seem to be pretty easy package MyApp::Form::Element::Thingy; use base qw( HTML::FormFu::Element::select ); sub new { my $self = shift->SUPER::

[html-formfu] Some notes from YAPC::NA

2007-06-29 Thread Brian Cassidy
Hey All, I was lucky enough to be able to get to YAPC::NA this year. One of my favorite questions to ask people was "What do you use for form handling?" Naturally, there we are variety of responses: FormBuilder, HTML::Widget, FillInForm, "none of the above" :) I mentioned FormFu to everyone

[html-formfu] CPAN Release?

2007-06-14 Thread Brian Cassidy
Hey Carl, I know this was asked last month, but I'd like to throw the question out there again: Any chance we could get a CPAN release of FormFu? Even a dev release would be much appreciated. Cheers, -Brian ___ HTML-FormFu mailing list HTML-FormFu

Re: [html-formfu] Submit button with a value and no name

2007-06-08 Thread Brian Cassidy
Brian Cassidy wrote: Worked like a charm. Thanks Carl! Sorry, that's not entirely true -- it seems to put an empty name attribute in there instead. Any way to disable that? -Brian ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk

Re: [html-formfu] Submit button with a value and no name

2007-06-08 Thread Brian Cassidy
Carl Franks wrote: - type: submit default: Search retain_default: 1 Worked like a charm. Thanks Carl! -Brian ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

[html-formfu] Submit button with a value and no name

2007-06-07 Thread Brian Cassidy
Hey Gang, I must be doing something incorrect, but here's what I'm trying to accomplish: Typically i make submit buttons like this: in the YAML config that gets translated to - type: submit value: Search However, if something is incorrect in the rest of the form, when it gets regenerat

Re: [html-formfu] Re: RFC: automatic constraints from DBIx::Class column_info

2007-05-17 Thread Brian Cassidy
Carl Franks wrote: I've been getting the column info via: MyApp::Schema->resultset('Table')->result_source->column_info; I may be missing something, but I can't see any way of getting it starting with 'MyApp::Schema::Table'. MyApp::Schema::Table->result_source; gives a fatal error. MyApp::Schem

Re: [html-formfu] RFC: automatic constraints from DBIx::Class column_info

2007-05-17 Thread Brian Cassidy
Carl Franks wrote: I've added an experimental new method - constraints_from_dbic() - which I'd like feedback on. Is this the right way to approach getting auto-constraints for database columns, and is the interface any good? Just off the top of my head, could you not also provide this sort of