This commit is contained in:
BoHung Chiu 2022-02-08 15:43:27 +08:00
parent 3c97c85649
commit 8b10901dae
3 changed files with 10 additions and 5 deletions

View File

@ -157,6 +157,11 @@ class CancerpredictsController < ApplicationController
uid = OrbitHelper.params[:uid] rescue ""
tags = OrbitHelper.widget_tags
categories = OrbitHelper.widget_categories || []
@table_str = File.read('public/cancer_tool_table_tmp_'+I18n.locale.to_s+'.txt')
{
"cancerpredict" => [],
"extras"=>{"table"=> @table_str}
}
end
def create_first_field
if Cancerpredictfields.where("title"=>(@app_title + "_back")).count == 0

View File

@ -2,6 +2,6 @@
<script type="text/javascript" src="/assets/jquery.smartmenus.bootstrap.min.js"></script>
<script type="text/javascript" src="/assets/cancer_predict.js"></script>
{{table}}
<link href="/assets/cancer_predict.scss" media="screen" rel="stylesheet">
<link href="/assets/bootstrap.min.print.css" media="print" rel="stylesheet">
<link href="/assets/cancer_predict_print.scss" media="print" rel="stylesheet">
<%= stylesheet_link_tag "cancer_predict", media: "screen" %>
<%= stylesheet_link_tag "bootstrap.min.print", media: "print" %>
<%= stylesheet_link_tag "cancer_predict_print", media: "print" %>

View File

@ -2,6 +2,6 @@
<script type="text/javascript" src="/assets/jquery.smartmenus.bootstrap.min.js"></script>
<script type="text/javascript" src="/assets/cancer_predict.js"></script>
{{table}}
<link href="/assets/cancer_predict.scss" media="screen" rel="stylesheet">
<%= stylesheet_link_tag "cancer_predict", media: "screen" %>
<%= stylesheet_link_tag "bootstrap.min.print", media: "print" %>
<%= stylesheet_link_tag "cancer_predict_print", media: "print" %>