Well, since you posted I took a look and combined with another comment about
how it'd be good to redo field-list to be a bit more flexible, I did this as
a start. Hopefully you or someone else that's interested can follow up and
polish it.
in application.dryml
<def tag="labelled-item-list">
<fieldset param>
<legend param />
<ol class="field-list" merge-attrs><do param="default"/></ol>
</fieldset>
</def>
<def tag="labelled-item">
<li merge-attrs><do param="default"/></li>
</def>
<def tag="item-label"><label merge-attrs><do param="default"/></label></def>
<def tag="item-value"><do merge-attrs param="default" /></def>
stylesheet after default hobo styles load
.field-list { list-style: none; overflow: auto; }
ol.field-list > li label { display: block; width: 25%; float: left;
padding-top:.2em; }
.field-list > li input.string,
.field-list > li input.password,
.field-list > li input.numeric,
.field-list > li input.email,
.field-list > li input.url,
.field-list > li input.phone,
.field-list > li textarea.text,
.field-list > li input.search { width: 72%; }
.field-list > li textarea[cols] { width:auto; max-width: 72% }
styles are obviously almost direct from formtastic with just the pathing
different as well as dropping the form requirement so that it should work
for regular lists as well (untested). I only tested with a small form with
a text box, textarea and dropdown select so there's still quite a lot of
places it can break.
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
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/hobousers?hl=en.