New <%= @singular_name.capitalize %>

<%= @disabled_fields%> <% form_for @model , :html => { :id => 'create_form'}, :url => { :action => 'create' } do |form| %>
<% attribute_keys= @fields %> <% attribute_keys.length.times do |attribute_key_id| Rails.logger.debug("attribute_key_id:#{attribute_key_id}") %> <% end %> <% end %>
<% value=attribute_keys[attribute_key_id] Rails.logger.debug("@labels:#{@labels}") override_label_value= @labels[value.to_sym] unless @labels.nil? if(override_label_value!=nil) label_value=override_label_value else label_value= value.to_s.humanize end %> <%= label_value %>: <% Rails.logger.debug("attributekey:#{attribute_keys[attribute_key_id]}")%> <%if(@disabled_fields.include?(attribute_keys[attribute_key_id])) disabled_flag=true else disabled_flag=false end unless @disabled_fields.nil? %> <%= form.text_field attribute_keys[attribute_key_id], :disabled => disabled_flag %>
<%=active_ext_close_button%>