Remove instruction page will disapeared when the time not in the registation setting time.

This commit is contained in:
BOHUNG 2020-03-10 18:37:49 +08:00
parent 2cad391fa7
commit 98ce075537
1 changed files with 3 additions and 3 deletions

View File

@ -161,9 +161,9 @@ class OlympiamanagementsController < ApplicationController
@page_content += render_to_string(:formats=> [:html] ,:partial=>'edit_school_data_for_index.html',:locals=>{:@school_data_fields=>@school_data_fields,:@olympia_school_data_field=>@olympia_school_data_field,:@@session=>@@session}) #form_for not work for rendering in Pagescontroller => edit to form
end
else
if !@instructions_pages.empty?
@instructions_pages.each{|page| page.destroy}
end
# if !@instructions_pages.empty?
# @instructions_pages.each{|page| page.destroy}
# end
data_arr = @page.child_page.map{|page| {:url=>"/#{I18n.locale}#{page.url}",:name=>page.name}}
@breadcumb = render_to_string(:formats=> [:html] ,:partial=>'breadcumb',:locals=>{:data_arr=>data_arr,:@title=>I18n.t('olympiamanagement.sign_up_title')})
@page_content = '<h3 style="margin: 20px 0px 10px; padding: 0px; color: rgb(0, 153, 153); font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: bold; font-stretch: normal; font-size: 0.9375em; line-height: 20px; font-family: 微軟正黑體, sans-serif;">'+t('olympiamanagement.sign_up_hint')+'</h3>'