当天发布的资源显示未发布、日期选择器用中文

This commit is contained in:
cxt 2016-02-23 11:35:07 +08:00
parent a2e60944be
commit b6bf78a5df
3 changed files with 4 additions and 0 deletions

View File

@ -114,6 +114,8 @@ class FilesController < ApplicationController
end end
if @file.publish_time > Date.today if @file.publish_time > Date.today
@file.is_publish = 0 @file.is_publish = 0
else
@file.is_publish = 1
end end
@file.save @file.save
respond_to do |format| respond_to do |format|

View File

@ -1,3 +1,4 @@
<script src="/javascripts/i18n/jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
<span class="uploadText mb10" style="margin-top: -20px;">发布设置</span> <span class="uploadText mb10" style="margin-top: -20px;">发布设置</span>
<!--<div class="resourcePopupClose"> <a href="javascript:void(0);" class="resourceClose"></a></div>--> <!--<div class="resourcePopupClose"> <a href="javascript:void(0);" class="resourceClose"></a></div>-->
<%= form_tag(republish_file_course_file_path(@course,@file), :multipart => true,:remote => !ie8?,:name=>"upload_form") do %> <%= form_tag(republish_file_course_file_path(@course,@file), :multipart => true,:remote => !ie8?,:name=>"upload_form") do %>

View File

@ -1,3 +1,4 @@
<script src="/javascripts/i18n/jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
<div id="popbox_upload" class="mb10" style="margin-top: -30px;color:#15bccf; font-size:16px;"> <div id="popbox_upload" class="mb10" style="margin-top: -30px;color:#15bccf; font-size:16px;">
<div class="upload_con"> <div class="upload_con">
<h2 style="text-align: center"><%= l(:label_upload_files)%></h2> <h2 style="text-align: center"><%= l(:label_upload_files)%></h2>