change table in tool.
This commit is contained in:
parent
a1aeeb008a
commit
70b66409dd
|
@ -66,9 +66,10 @@ class CancerpredictsController < ApplicationController
|
||||||
result['years'] = @years
|
result['years'] = @years
|
||||||
@years.each{|year| result['table'] += ('<button class="cancer_years cancer_table_btn btn btn-default btn-sm">'+year.to_s+'</button>')}
|
@years.each{|year| result['table'] += ('<button class="cancer_years cancer_table_btn btn btn-default btn-sm">'+year.to_s+'</button>')}
|
||||||
result['table'] += ('</a><a style="display: inline-block;">'+(locale == 'zh_tw' ? '年' : '')+'</a>')
|
result['table'] += ('</a><a style="display: inline-block;">'+(locale == 'zh_tw' ? '年' : '')+'</a>')
|
||||||
@table_head = (locale == "zh_tw") ? ['治療','額外治療效益','總生存率(%)'] :['Treatment','Additional Benefit','Overall Survival(%)']
|
#@head_name = ['Treatment','Additional_Benefit','Overall_Survival']
|
||||||
@head_name = ['Treatment','Additional_Benefit','Overall_Survival']
|
@head_name = ['Treatment','Overall_Survival']
|
||||||
@therapy_choices = (locale == "zh_tw") ? ['純手術'] :['Surgery only']
|
@table_head = @head_name.map{|name| I18n.t('cancerpredict.table.'+name)}
|
||||||
|
@therapy_choices = [I18n.t('cancerpredict.table.Surgeryonly')]
|
||||||
@form_to_show.form_show_in_result.values.each{|choice| @therapy_choices.push choice["name"][locale]}
|
@form_to_show.form_show_in_result.values.each{|choice| @therapy_choices.push choice["name"][locale]}
|
||||||
@therapy_names = ['Surgery_only']
|
@therapy_names = ['Surgery_only']
|
||||||
@form_to_show.form_show_in_result.values.each{|choice| @therapy_names.push choice["variable"]}
|
@form_to_show.form_show_in_result.values.each{|choice| @therapy_names.push choice["variable"]}
|
||||||
|
|
|
@ -46,9 +46,10 @@ en:
|
||||||
no: no
|
no: no
|
||||||
unknown: unknown
|
unknown: unknown
|
||||||
Results: Results
|
Results: Results
|
||||||
AdditionalBenefit: Additional Benefit
|
Treatment: Event
|
||||||
OverallSurvival: Overall Survival(%)
|
Additional_Benefit: Additional Benefit
|
||||||
Surgeryonly: Surgery only
|
Overall_Survival: Probability(%)
|
||||||
|
Surgeryonly: Readmission or death
|
||||||
Hormonetherapy: Hormone therapy
|
Hormonetherapy: Hormone therapy
|
||||||
Chemotherapy: Chemotherapy
|
Chemotherapy: Chemotherapy
|
||||||
years: years
|
years: years
|
||||||
|
|
|
@ -46,10 +46,10 @@ zh_tw:
|
||||||
no: 否
|
no: 否
|
||||||
unknown: 未知
|
unknown: 未知
|
||||||
Results: 結果
|
Results: 結果
|
||||||
Treatment: 治療
|
Treatment: Event(事件)
|
||||||
AdditionalBenefit: 額外治療效益
|
Additional_Benefit: 額外治療效益
|
||||||
OverallSurvival: 總生存率(%)
|
Overall_Survival: Probability機率(%)
|
||||||
Surgeryonly: 純手術
|
Surgeryonly: 再住院或死亡
|
||||||
Hormonetherapy: 賀爾蒙治療
|
Hormonetherapy: 賀爾蒙治療
|
||||||
Chemotherapy: 化學治療
|
Chemotherapy: 化學治療
|
||||||
years: 年
|
years: 年
|
||||||
|
|
Loading…
Reference in New Issue