<%%= form_for(@transcription) do |f| %> <%% if @transcription.errors.any? %>

<%%= pluralize(@transcription.errors.count, "error") %> prohibited this transcription from being saved:

<%% end %> <% transcribable_attrs.each do |col, type| %>
<% if [:string, :integer, :float, :decimal].include?(type) %>

<%= col.titleize %>

<%%= label_tag :<%= col %>, "Your attribute description here" %>
<%%= f.text_field :<%= col %>, {:class => "wwwinput", :tabindex => 3} %> <% end %> <% if [:text].include?(type) %>

<%= col.titleize %>

<%%= f.label :<%= col %>, "Your attribute description here" %>
<%%= f.text_area :<%= col %>, :size => "26x8", :class => "wwwinput", :style => "padding:5px;width:98%", :tabindex => 6 %>
<% end %>
<% end %> <%%= hidden_field_tag "<%= @table.singularize %>_id", @<%= @table.singularize %>.id %> <%%= submit_tag "Submit", :class => "fancy_btn full_width_btn green-btn", :id => "transcriptionsubmit" %> <%% end %>