<% attribute_field.af_count ? @af_counter = attribute_field_counter + attribute_field.af_count : @af_counter = attribute_field_counter %>
<%= hidden_field "#{@field_name}[venue_management_signup_fields][#{@af_counter}]","disabled",:value=>attribute_field.disabled,:class=>"toggle-check", :data=>{:deploy=>"right"} %>
<%= t(:delete_)%> <%= hidden_field "#{@field_name}[venue_management_signup_fields][#{@af_counter}]","to_delete",:value=>false,:class=>"attribute_field_to_delete"%> Reset

Field <%= @af_counter + 1 %>

<%= text_field "#{@field_name}[venue_management_signup_fields][#{@af_counter}]","key",:value=>attribute_field.key, :data=>{:type=>"key"} %>
<%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:values=>attribute_field.title_translations,:class_ext=>"pull-left",:label_ext=>t(:name),:field_name=>"#{@field_name}[venue_management_signup_fields][#{@af_counter}][title_translations]"}%>
<%= content_tag :div,:class=>"field-type default fade in #{show_type_panel(attribute_field,"typeA")}" do%>
<%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:values=>attribute_field["typeA"]["placeholder"],:field_name=>"#{@field_name}[venue_management_signup_fields][#{@af_counter}][typeA][placeholder]"}%> <% end if show_type_panel(attribute_field,"typeA") != 'typeA hide' %> <%= content_tag :div,:class=>"field-type default fade in #{show_type_panel(attribute_field,"typeB")}" do %> <%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:label_ext=>t(:initial),:values=>attribute_field["typeB"]["initial"],:field_name=>"#{@field_name}[venue_management_signup_fields][#{@af_counter}][typeB][initial]"}%> <% if attribute_field.self_defined_markup_options?%> <%= render :partial=>"shared/attribute_field/list_block",:locals=>{:values=>attribute_field["option_list"],:field_name=> "#{@field_name}[venue_management_signup_fields][#{@af_counter}][attribute][venue_management][statuses]"} %> <%else #normal list%> <%= render :partial=>"shared/attribute_field/list_block",:locals=>{:values=>attribute_field["option_list"],:field_name=> "#{@field_name}[venue_management_signup_fields][#{@af_counter}][typeB][option_list]"} %> <% end #of self_defined_markup_options?%> <% end if show_type_panel(attribute_field,"typeB") != 'typeB hide' %> <%= content_tag :div,:class=>"field-type default fade in #{show_type_panel(attribute_field,"typeC")}" do %>
<%= select "#{@field_name}[venue_management_signup_fields][#{@af_counter}][typeC]","format",Admin::AttributeValuesViewHelper::OPT,:class=>"dataType",:selected=>attribute_field["typeC"]["format"] %>
<% end if show_type_panel(attribute_field,"typeC") != 'typeC hide' %> <%= content_tag :div,:class=>"field-type default fade in #{show_type_panel(attribute_field,"typeD")}" do%>
<%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:field_name=>"#{@field_name}[venue_management_signup_fields][#{@af_counter}][typeD][placeholder]",:values=>attribute_field["typeD"]["placeholder"]} %> <% end if show_type_panel(attribute_field,"typeD") != 'typeD hide' %> <%= content_tag :div,:class=>"field-type default fade in #{show_type_panel(attribute_field,"typeE")}" do%> <%= render :partial=>"shared/attribute_field/list_block",:locals=>{:field_name=>"#{@field_name}[venue_management_signup_fields][#{@af_counter}][typeE][option_list]",:values=>attribute_field["typeE"]["option_list"]}%> <% end if show_type_panel(attribute_field,"typeE") != 'typeE hide' %> <%= hidden_field "#{@field_name}[venue_management_signup_fields][#{@af_counter}]","id",:value=>attribute_field.id%>