#759 open
Betelgeuse

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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Tags

Referenced by

Pages