parent
00e62ec8f7
commit
3dbe7c5896
|
@ -392,7 +392,8 @@ class ProjectsController < ApplicationController
|
||||||
# added by bai
|
# added by bai
|
||||||
@course.term = params[:term]
|
@course.term = params[:term]
|
||||||
@course.time = params[:time]
|
@course.time = params[:time]
|
||||||
@course.school_id = params[:occupation]
|
#@course.school_id = params[:occupation]
|
||||||
|
@course.school_id = User.current.user_extensions.school_id
|
||||||
@course.setup_time = params[:setup_time]
|
@course.setup_time = params[:setup_time]
|
||||||
@course.endup_time = params[:endup_time]
|
@course.endup_time = params[:endup_time]
|
||||||
@course.class_period = params[:class_period]
|
@course.class_period = params[:class_period]
|
||||||
|
|
|
@ -285,12 +285,6 @@
|
||||||
|
|
||||||
<!--added by Wen -->
|
<!--added by Wen -->
|
||||||
|
|
||||||
<p style="margin-left:-76px;">
|
|
||||||
<strong><%=l(:label_new_course_school)%></strong><span class="required">*</span>
|
|
||||||
<%= select_tag "province", options_from_collection_for_select(School.find_by_sql("select distinct province from schools"), :province, :province), :onclick => "get_options(this.value)" %>
|
|
||||||
|
|
||||||
<%= select_tag "occupation" %>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<!-- end -->
|
<!-- end -->
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue