delete school adress in download school code xlsx

This commit is contained in:
chiu 2020-03-12 12:59:44 +08:00
parent b69e0df320
commit 0ef80b8848
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ wb.add_worksheet(name: "school_class") do |sheet|
row = [] row = []
title = sheet.styles.add_style(:bg_color => "FFFF00",:border=>{ :style => :thin, :color => "666666" },:alignment=>{ :horizontal => :center,:vertical => :center ,:wrap_text => true}) title = sheet.styles.add_style(:bg_color => "FFFF00",:border=>{ :style => :thin, :color => "666666" },:alignment=>{ :horizontal => :center,:vertical => :center ,:wrap_text => true})
column = sheet.styles.add_style(:alignment=>{ :horizontal => :center,:vertical => :center ,:wrap_text => true},:border=>{ :style => :thin, :color => "666666" }) column = sheet.styles.add_style(:alignment=>{ :horizontal => :center,:vertical => :center ,:wrap_text => true},:border=>{ :style => :thin, :color => "666666" })
@fields = [ "school_code", "school_name" ,"school_address" ] @fields = [ "school_code", "school_name" ]
@fields.each do |field| @fields.each do |field|
row << t('olympiamanagement.'+field) row << t('olympiamanagement.'+field)
end end