<% th_name_list = ['sign_up_start_time','sign_up_end_time','school_number','enrollment','status','action']%> <% time = ['year','month','day'] %>

<%=t('olympiamanagement.history_contest')%>

<% th_name_list.each do |th_name| %> <% end %> <% @sign_up_settings.each do |sign_up_setting| %> <% end %>
<%=t('olympiamanagement.'+th_name) %>
<%= time.map{|td| sign_up_setting["start_#{td}"]}.join('-') %> <%= time.map{|td| sign_up_setting["end_#{td}"]}.join('-') %> <%= @school_number = OlympiaSchoolDataFields.where(:sign_up_setting_id=>sign_up_setting.id).length %> <%= @student_number = OlympiaStudentDataField.where(:sign_up_setting_id=>sign_up_setting.id).length %> <% if sign_up_setting.active%> <%=t('olympiamanagement.active')%> <%=t('olympiamanagement.active')%> <% else %> <%=t('olympiamanagement.inactive')%> <%=t('olympiamanagement.inactive')%> <% end %> <%=t('olympiamanagement.active_all_school')%> <%=t('olympiamanagement.disable_all_school')%> <% if !sign_up_setting.active%> <%=t('olympiamanagement.active')%> <% end %> <%=t('olympiamanagement.view')%> '; }" onkeypress="if( window.confirm('<%=t('olympiamanagement.please_confirm_delete')%>') ) { window.location='<%=admin_olympiamanagements_update_sign_up_data_path + "?type=delete_sign_up_setting&id=#{sign_up_setting.id}"%>'; }"><%=t('olympiamanagement.delete')%>
<%=create_pagination(params[:page].to_i,SignUpSetting.all).html_safe%>