Thanks for looking into this and sharing your thoughts.

On Aug 13, 2009, at 4:25 PM, eighty4 wrote:

>
> Just adding thoughts/bugs for formui. Seems like this can grow and
> felt like it be discussed here before added as tickets.
>
> *$form->aboutyou->id = 'about-you'; Doesn't change the id of the
> fieldset.
> But $form->content->id = 'commentContent'; does change the id of the
> input.

Sounds like a bug worthy of a ticket.

>
> *Doesn't seem to be any way to remove a label without creating a new
> form and that's way to complicated.

I disagree. Why would you need to have an input with *no* label?

That's most definitely an edge case. As such, it should be dealt with  
using the template system.

>
> *Rights now formui outputs both a div and a <input> with the same id.
> It was suggested to do something like #control-whatever for the div
> and then #whatever for the input.
> But is that really necessary? The only reason for giving the inputs
> ids would be for simpler styling and accessing using javascript.
> But is doing #whatever input {} harder then doing #whatever? The same
> goes for javascript. Imo it would be ok to just add an id to the outer
> div.

Agreed.

>
> * Adding the choice to use div, p or ul/li would be nice.

That is added complexity with very little demonstrable benefit.

For the rare cases where you need to, there is a powerful templating  
system available.

> * It wouldn't hurt to use somewhat less common ids, #content, #name,
> #url, #email might already be used. Why not add a prefix to them all?
> #formui-name, #formui-url and so on.

I would suggest #formname_id as an alternative.

> * The submit <input> doesn't have an id. Not a big deal but either all
> inputs should have ids or no.

Agreed.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to