<%=f.label field.name,:class => "control-label"%>
<%=case field.field_type
when '0'
f.text_field field.name,:value => field.default_value
when '1'
f.check_box field.name,:value => field.default_value
when '2'
f.text_area field.name,:value => field.default_value,:rows=>5,:cols => 70
when '3'
f.select field.name,field.options_list.collect {|opt| [opt,opt]},:include_blank => true
end%>
<%end%>