2019-11-15 00:44:28 +00:00
|
|
|
# encoding: utf-8
|
|
|
|
require 'rubyXL'
|
|
|
|
class Admin::CancerpredictsController < OrbitAdminController
|
2019-11-15 09:02:17 +00:00
|
|
|
#include Admin::CancerpredictsHelper
|
2019-11-15 00:44:28 +00:00
|
|
|
before_action ->(module_app = @app_title) { set_variables module_app }
|
|
|
|
#before_action :load_access_levels
|
|
|
|
def initialize
|
|
|
|
super
|
|
|
|
@app_title = "cancerpredict"
|
|
|
|
end
|
|
|
|
|
|
|
|
def index
|
|
|
|
@tags = @module_app.tags
|
|
|
|
@categories = @module_app.categories.enabled
|
|
|
|
@filter_fields = filter_fields(@categories, @tags)
|
|
|
|
@table_fields = [:status, :category, :title, :start_date, :end_date, :last_modified]
|
|
|
|
if request.xhr?
|
|
|
|
render :partial => "index"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|