Compare commits
No commits in common. "master" and "master" have entirely different histories.
|
|
@ -2,12 +2,7 @@
|
||||||
|
|
||||||
wb = xlsx_package.workbook
|
wb = xlsx_package.workbook
|
||||||
|
|
||||||
illegal_chars = /[:\\\/\[\]\*\?]/
|
wb.add_worksheet(name: (@seminar.title.to_s[0..27]+'...')) do |sheet|
|
||||||
|
|
||||||
sanitized_title = @seminar.title.to_s.gsub(illegal_chars, ' ').strip
|
|
||||||
sheet_name = (sanitized_title[0..27] + '...').gsub(/\.{4,}/, '...')
|
|
||||||
|
|
||||||
wb.add_worksheet(name: sheet_name) do |sheet|
|
|
||||||
|
|
||||||
row = [t('seminar_signup.signup_time')]
|
row = [t('seminar_signup.signup_time')]
|
||||||
|
|
||||||
|
|
@ -40,7 +35,6 @@ wb.add_worksheet(name: sheet_name) do |sheet|
|
||||||
row << rf.title
|
row << rf.title
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
highlight_style = wb.styles.add_style(
|
highlight_style = wb.styles.add_style(
|
||||||
:bg_color => 'ffeb3b',
|
:bg_color => 'ffeb3b',
|
||||||
:b => true,
|
:b => true,
|
||||||
|
|
@ -58,7 +52,7 @@ wb.add_worksheet(name: sheet_name) do |sheet|
|
||||||
row2 << "#{signup.display_serial_number}"
|
row2 << "#{signup.display_serial_number}"
|
||||||
row2 << "#{signup[:name]} "
|
row2 << "#{signup[:name]} "
|
||||||
row2 << "#{signup.unit} "
|
row2 << "#{signup.unit} "
|
||||||
row2 << "#{signup.tel} "
|
row2 << "#{signup[:tel]} "
|
||||||
row2 << "#{signup[:phone]} "
|
row2 << "#{signup[:phone]} "
|
||||||
row2 << "#{signup[:fax]} "
|
row2 << "#{signup[:fax]} "
|
||||||
row2 << "#{signup.address} "
|
row2 << "#{signup.address} "
|
||||||
|
|
@ -83,3 +77,4 @@ wb.add_worksheet(name: sheet_name) do |sheet|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -207,7 +207,7 @@ en:
|
||||||
email_address: Email address
|
email_address: Email address
|
||||||
_password: Password
|
_password: Password
|
||||||
login: Login
|
login: Login
|
||||||
new_: 'UpLoad'
|
new_: 'Load abstract'
|
||||||
load_file: load file
|
load_file: load file
|
||||||
enable_summary_choice: Enable summary choice
|
enable_summary_choice: Enable summary choice
|
||||||
summary_choice_type: Summary choice type
|
summary_choice_type: Summary choice type
|
||||||
|
|
|
||||||
|
|
@ -207,7 +207,7 @@ zh_tw:
|
||||||
email_address: Email address
|
email_address: Email address
|
||||||
_password: Password
|
_password: Password
|
||||||
login: Login
|
login: Login
|
||||||
new_: '新增(Upload)'
|
new_: '新增(load abstract)'
|
||||||
load_file: load file
|
load_file: load file
|
||||||
enable_summary_choice: 開啟摘要選項
|
enable_summary_choice: 開啟摘要選項
|
||||||
summary_choice_type: 摘要選項類型
|
summary_choice_type: 摘要選項類型
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue