fix download_school_code
This commit is contained in:
parent
98ce075537
commit
bb3d390fe6
|
@ -1,6 +1,7 @@
|
||||||
class OlympiamanagementsController < ApplicationController
|
class OlympiamanagementsController < ApplicationController
|
||||||
include ActionView::Context #vary important (only add this can access @@session from view)
|
include ActionView::Context #vary important (only add this can access @@session from view)
|
||||||
before_action :set_sign_up_setting,:create_first_fields,:check_time
|
before_action :set_sign_up_setting,:create_first_fields
|
||||||
|
before_action :check_time , except=>[:index,:download_school_code]
|
||||||
prepend_view_path "app/templates" #for_render_pages
|
prepend_view_path "app/templates" #for_render_pages
|
||||||
layout :get_layout #for_render_pages
|
layout :get_layout #for_render_pages
|
||||||
helper Admin::OlympiamanagementsHelper
|
helper Admin::OlympiamanagementsHelper
|
||||||
|
|
|
@ -22,6 +22,6 @@ wb.add_worksheet(name: "school_class") do |sheet|
|
||||||
#export data end
|
#export data end
|
||||||
sheet.add_row row , :style=> title,:widths => row.map{|cell| (cell.length* 11/ 2).round}
|
sheet.add_row row , :style=> title,:widths => row.map{|cell| (cell.length* 11/ 2).round}
|
||||||
export_data_rows.each do |infos_row|
|
export_data_rows.each do |infos_row|
|
||||||
sheet.add_row infos_row , :style=> column
|
sheet.add_row infos_row , :style=> column , :types => :string
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in New Issue