field-list doesn't generate label tags
Reported by Betelgeuse | July 15th, 2010 @ 12:18 PM | in Hobo 1.4
Currently you can't use cucumber and field labels because hobo only generates td tags without label tags. Here's a quick fix I came up with for my application:
<extend tag="field-list">
<old-field-list merge>
<label: param>
<%=
if can_edit?
label_tag(param_name_for_this,this_field_name)
else
this_field_name
end
%>
</label:>
</old-field-list>
</extend>
It should be quite easy to create a proper patch with tests from this to Hobo.
Comments and changes to this ticket
-
Matt Jones September 14th, 2011 @ 11:02 PM
- State changed from new to open
- Milestone set to Hobo 1.4
- Milestone order changed from 197852 to 0
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
People watching this ticket
Tags
Referenced by
- 770 select-one does not generate an id for the select tag The code generated for the select tag by select-one does ...