|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function get_options(value){
|
|
|
|
|
$.ajax({
|
|
|
|
|
type :"POST",
|
|
|
|
@ -12,7 +12,7 @@
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -23,56 +23,56 @@
|
|
|
|
|
|
|
|
|
|
<!--[form:course]-->
|
|
|
|
|
<% unless @course.new_record? %>
|
|
|
|
|
<p><%= render :partial=>"avatar/avatar_form",:locals=> {source:@course} %></p>
|
|
|
|
|
<p><%= render :partial=>"avatar/avatar_form",:locals=> {source:@course} %></p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<!-- <p><%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;" %></p> -->
|
|
|
|
|
<!-- <p><%#= f.text_field :name, :required => true, :size => 60, :style => "width:490px;" %></p> -->
|
|
|
|
|
<p><label for="course_name" style="font-size: 13px;" ><%=l(:label_tags_course_name)%><span class="required" > * </span></label><input id="course_name" type="text" value="<%=@course.name%>" style="width:490px;" size="60" name="course[name]"></p>
|
|
|
|
|
|
|
|
|
|
<!-- <p><%= f.text_field :extra, :required => true, :size => 60, :style => "width:488px;", :disabled => @course.extra_frozen?, :maxlength => Project::IDENTIFIER_MAX_LENGTH %>
|
|
|
|
|
<% unless @course.extra_frozen? %>
|
|
|
|
|
<em class="info"><%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_course_identifier_info).html_safe %></em>
|
|
|
|
|
<% end %></p> -->
|
|
|
|
|
<!-- <p><%#= f.text_field :extra, :required => true, :size => 60, :style => "width:488px;", :disabled => @course.extra_frozen?, :maxlength => Project::IDENTIFIER_MAX_LENGTH %>
|
|
|
|
|
<%# unless @course.extra_frozen? %>
|
|
|
|
|
<em class="info"><%#= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%#= l(:text_course_identifier_info).html_safe %></em>
|
|
|
|
|
<%# end %></p> -->
|
|
|
|
|
|
|
|
|
|
<!-- added by bai 新增开课时间、结课时间、课时 -->
|
|
|
|
|
<!-- added by bai 新增开课时间、结课时间、课时 -->
|
|
|
|
|
|
|
|
|
|
<%= f.fields_for @course do |m| %>
|
|
|
|
|
<%= f.fields_for @course do |m| %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- added by bai 新增开课时间、结课时间、课时 -->
|
|
|
|
|
<!--
|
|
|
|
|
<% unless @course.nil?%>
|
|
|
|
|
<p><table><tr><td><span class="info" align="right" style="width: 90px; font-weight: bold ;margin-left:20px"><%= l(:label_setup_time) %><span class="required"> * </span></span>
|
|
|
|
|
<span class="info" style="width: 10px"><%= text_field_tag :setup_time, @course.setup_time, :placeholder => "在此选择开课日期" %></span>
|
|
|
|
|
<span><%= calendar_for('setup_time')%></span>
|
|
|
|
|
<%# unless @course.nil?%>
|
|
|
|
|
<p><table><tr><td><span class="info" align="right" style="width: 90px; font-weight: bold ;margin-left:20px"><%#= l(:label_setup_time) %><span class="required"> * </span></span>
|
|
|
|
|
<span class="info" style="width: 10px"><%#= text_field_tag :setup_time, @course.setup_time, :placeholder => "在此选择开课日期" %></span>
|
|
|
|
|
<span><%#= calendar_for('setup_time')%></span>
|
|
|
|
|
</td></tr></table></p>
|
|
|
|
|
<% else %>
|
|
|
|
|
<p><table><tr><td><span class="info" align="right" style="width: 90px; font-weight: bold ;margin-left:20px"><%= l(:label_setup_time) %><span class="required"> * </span></span>
|
|
|
|
|
<span class="info" style="width: 10px"><%= text_field_tag :setup_time, nil, :placeholder => "在此选择开课日期" %></span>
|
|
|
|
|
<span><%= calendar_for('setup_time')%></span>
|
|
|
|
|
<%# else %>
|
|
|
|
|
<p><table><tr><td><span class="info" align="right" style="width: 90px; font-weight: bold ;margin-left:20px"><%#= l(:label_setup_time) %><span class="required"> * </span></span>
|
|
|
|
|
<span class="info" style="width: 10px"><%#= text_field_tag :setup_time, nil, :placeholder => "在此选择开课日期" %></span>
|
|
|
|
|
<span><%#= calendar_for('setup_time')%></span>
|
|
|
|
|
</td></tr></table></p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%# end %>
|
|
|
|
|
|
|
|
|
|
<% unless @course.nil?%>
|
|
|
|
|
<p><table><tr><td><span class="info" align="right" style="width: 90px; font-weight: bold ;margin-left:20px"><%= l(:label_endup_time) %><span class="required"> * </span></span>
|
|
|
|
|
<span class="info" style="width: 10px"><%= text_field_tag :endup_time, @course.endup_time, :placeholder => "在此选择结课日期" %></span>
|
|
|
|
|
<span><%= calendar_for('endup_time')%></span>
|
|
|
|
|
<%# unless @course.nil?%>
|
|
|
|
|
<p><table><tr><td><span class="info" align="right" style="width: 90px; font-weight: bold ;margin-left:20px"><%#= l(:label_endup_time) %><span class="required"> * </span></span>
|
|
|
|
|
<span class="info" style="width: 10px"><%#= text_field_tag :endup_time, @course.endup_time, :placeholder => "在此选择结课日期" %></span>
|
|
|
|
|
<span><%#= calendar_for('endup_time')%></span>
|
|
|
|
|
</td></tr></table></p>
|
|
|
|
|
<% else %>
|
|
|
|
|
<p><table><tr><td><span class="info" align="right" style="width: 90px; font-weight: bold ;margin-left:20px"><%= l(:label_endup_time) %><span class="required"> * </span></span>
|
|
|
|
|
<span class="info" style="width: 10px"><%= text_field_tag :endup_time, nil, :placeholder => "在此选择结课日期" %></span>
|
|
|
|
|
<span><%= calendar_for('endup_time')%></span>
|
|
|
|
|
<%# else %>
|
|
|
|
|
<p><table><tr><td><span class="info" align="right" style="width: 90px; font-weight: bold ;margin-left:20px"><%#= l(:label_endup_time) %><span class="required"> * </span></span>
|
|
|
|
|
<span class="info" style="width: 10px"><%#= text_field_tag :endup_time, nil, :placeholder => "在此选择结课日期" %></span>
|
|
|
|
|
<span><%#= calendar_for('endup_time')%></span>
|
|
|
|
|
</td></tr></table></p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%# end %>
|
|
|
|
|
-->
|
|
|
|
|
<% unless @course.nil?%>
|
|
|
|
|
<p><table><tr><td><span class="info" align="right" style="width: 90px; font-weight: bold ;margin-left:22px"><%= l(:label_class_period) %><span class="required"> * </span></span>
|
|
|
|
|
<span class="info" style="width: 10px"><%= text_field_tag :class_period, @course.class_period, :placeholder => "在此输入课时" %></span> <span> <strong><%= l(:label_class_hour)%></strong></span>
|
|
|
|
|
</td></tr></table></p>
|
|
|
|
|
</td></tr></table></p>
|
|
|
|
|
<% else %>
|
|
|
|
|
<p><table><tr><td><span class="info" align="right" style="width: 90px; font-weight: bold ;margin-left:22px"><%= l(:label_class_period) %><span class="required"> * </span></span>
|
|
|
|
|
<span class="info" style="width: 10px"><%= text_field_tag :class_period, nil, :placeholder => "在此输入课时" %></span><strong><%= l(:label_class_hour)%></strong>
|
|
|
|
|
</td></tr></table></p>
|
|
|
|
|
</td></tr></table></p>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<!-- end -->
|
|
|
|
@ -297,10 +297,19 @@
|
|
|
|
|
<!-- <p style="margin-left:-10px;"><%#= m.text_field :password, :required => true, :size => 60, :style => "width:488px;margin-left: 10px;" %></p> -->
|
|
|
|
|
<p style="margin-left:-10px;"><label for="course[course]_password" style="font-size: 13px;" ><%=l(:label_new_course_password)%><span class="required"> *</span></label><input id="course_course_password" type="text" style="width:488px;margin-left: 10px;" value="<%=@course.password %>" size="60" name="course[password]"></p>
|
|
|
|
|
<em class="info" style="margin-left:95px;"><%= l(:text_command) %></em>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<!-- <p style="margin-left:-10px;padding-right: 20px;"><%#= f.text_area :description, :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;" %></p> -->
|
|
|
|
|
<p style="margin-left:-20px;padding-right: 20px;"><label for="course_description" style="font-size: 13px;"><%=l(:label_new_course_description)%></label><span class="jstEditor"><textarea id="course_description" class="wiki-edit" style="font-size:small;width:490px;margin-left:10px;" rows="8" name="course[description]" cols="40" ><%=@course.description%></textarea></span></p>
|
|
|
|
|
<p style="padding-right: 20px;">
|
|
|
|
|
<label for="course_description" style="font-size: 13px;">
|
|
|
|
|
<%=l(:label_new_course_description)%>
|
|
|
|
|
</label>
|
|
|
|
|
<span class="jstEditor">
|
|
|
|
|
<textarea id="course_description" class="wiki-edit" style="font-size:small;width:490px;margin-left:10px;" rows="8" name="course[description]" cols="40" >
|
|
|
|
|
<%=@course.description%>
|
|
|
|
|
</textarea>
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p style="margin-left:-10px;"><em style ="color: #888888;display: block;font-size: 90%;font-style: normal;"><%= f.check_box :is_public, :style => "margin-left:10px;" %><%= l(:label_course_public_info) %></em></p><!-- modified by bai -->
|
|
|
|
|