<%=@breadcumb%>
<%=@record_form_title%> | |||
---|---|---|---|
><%=t('olympiamanagement.'+record_item.to_s)%> | <% if record_item == "enrollment_limited"%> <% @olympia_school_data_field = OlympiaSchoolDataFields.find(@olympia_school_data_fields_id)%> <% if(@olympia_school_data_field.enrollment_limited.to_i == 0) %><%= ClassSettingFields.all.select{|class_setting_field| class_setting_field.class_number_range[0] <= @olympia_school_data_field.class_number && class_setting_field.class_number_range[1] >= @olympia_school_data_field.class_number}.first.enrollment_available.to_s %> | <% else %><%= @olympia_school_data_field.enrollment_limited %> | <% end %> <% else %><%=((i==@record_fields.count-1) ? "style=line-height:80px;" : "")%>><%=(@school_data[record_item.to_s].nil? ? ' '.html_safe : @school_data[record_item.to_s]) %> | <% end %> <% end %>
<%=@remark_texts%> |
<%=t('olympiamanagement.'+field_name.to_s)%> | <% end %>||
<%= "#{i+1}" %> | <%elsif th_name != 'birth_date'%> <% @value = field[th_name] %> <% @index = @field_infos.map{|hash| hash.keys[0]}.index(th_name) rescue nil%> <% if !@index.nil? %> <% @value = @field_infos.map{|hash| hash.values[0]}[@index]['choices'].index(@value) if @field_infos.map{|hash| hash.values[0]}[@index]['type'] == 'radio' %> <% (['String','Year','select_num','File'].include?(@field_infos.map{|hash| hash.values[0]}[@index]['type'])) ? (nil) : (@value=(@field_infos.map{|hash| hash.values[0]}[@index]['values'][I18n.locale.to_s][@value.to_i].to_s rescue @value))%> <% end %><%= @value %> | <% else %><%= "#{field.StudentBirthYear}-#{field.StudentBirthMonth}-#{field.StudentBirthDay}" %> | <% end %> <% end %>