%thead

%tr

<% for field in displayable_fields(:table_item) -%>

%th= <%= field.label.text %>

<% end -%>