change table in tool.

This commit is contained in:
BOHUNG 2020-03-18 18:22:13 +08:00
parent a1aeeb008a
commit 70b66409dd
3 changed files with 12 additions and 10 deletions

View File

@ -66,9 +66,10 @@ class CancerpredictsController < ApplicationController
result['years'] = @years
@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>')
@table_head = (locale == "zh_tw") ? ['治療','額外治療效益','總生存率(%)'] :['Treatment','Additional Benefit','Overall Survival(%)']
@head_name = ['Treatment','Additional_Benefit','Overall_Survival']
@therapy_choices = (locale == "zh_tw") ? ['純手術'] :['Surgery only']
#@head_name = ['Treatment','Additional_Benefit','Overall_Survival']
@head_name = ['Treatment','Overall_Survival']
@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]}
@therapy_names = ['Surgery_only']
@form_to_show.form_show_in_result.values.each{|choice| @therapy_names.push choice["variable"]}

View File

@ -46,9 +46,10 @@ en:
no: no
unknown: unknown
Results: Results
AdditionalBenefit: Additional Benefit
OverallSurvival: Overall Survival(%)
Surgeryonly: Surgery only
Treatment: Event
Additional_Benefit: Additional Benefit
Overall_Survival: Probability(%)
Surgeryonly: Readmission or death
Hormonetherapy: Hormone therapy
Chemotherapy: Chemotherapy
years: years

View File

@ -46,10 +46,10 @@ zh_tw:
no:
unknown: 未知
Results: 結果
Treatment: 治療
AdditionalBenefit: 額外治療效益
OverallSurvival: 總生存率(%)
Surgeryonly: 純手術
Treatment: Event(事件)
Additional_Benefit: 額外治療效益
Overall_Survival: Probability機率(%)
Surgeryonly: 再住院或死亡
Hormonetherapy: 賀爾蒙治療
Chemotherapy: 化學治療
years: