部分界面优化
This commit is contained in:
parent
f4aa817f42
commit
b4af75f289
|
@ -34,7 +34,7 @@ class Course < ActiveRecord::Base
|
||||||
:delete_permission => :manage_files
|
:delete_permission => :manage_files
|
||||||
|
|
||||||
validates_presence_of :password, :term
|
validates_presence_of :password, :term
|
||||||
validates_format_of :class_period, :message => l(:error_class_period_only_num), :with =>/^[1-9]\d*$/
|
validates_format_of :class_period, :with =>/^[1-9]\d*$/
|
||||||
|
|
||||||
after_save :create_board_sync
|
after_save :create_board_sync
|
||||||
before_destroy :delete_all_members
|
before_destroy :delete_all_members
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
<%= stylesheet_link_tag 'scm' %>
|
<%= stylesheet_link_tag 'scm' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% html_title(l(:label_news_plural)) -%>
|
<% html_title(l(:label_course_news)) -%>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type='text/javascript'>
|
<script type='text/javascript'>
|
||||||
|
|
|
@ -282,6 +282,7 @@ zh:
|
||||||
field_role: 角色
|
field_role: 角色
|
||||||
field_homepage: 主页
|
field_homepage: 主页
|
||||||
field_time: 课时
|
field_time: 课时
|
||||||
|
field_class_period: 学时
|
||||||
field_code: 学分
|
field_code: 学分
|
||||||
field_is_public: 公开
|
field_is_public: 公开
|
||||||
field_parent: 上级项目
|
field_parent: 上级项目
|
||||||
|
|
Loading…
Reference in New Issue