|
|
|
@ -43,6 +43,7 @@
|
|
|
|
|
<span class="info" style="width: 10px;">
|
|
|
|
|
<%= text_field_tag :class_period, @course.class_period, :placeholder => "#{l(:lable_input_class)}", :maxlength => 5 %>
|
|
|
|
|
</span>
|
|
|
|
|
<span> <strong><%= l(:label_class_hour) %></strong></span>
|
|
|
|
|
<span>
|
|
|
|
|
<strong>
|
|
|
|
|
<%= l(:label_class_hour) %>
|
|
|
|
@ -57,6 +58,9 @@
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<span class="info" align="right" style="width: 90px; font-weight: bold ;margin-left:22px"><%= l(:label_class_period) %>
|
|
|
|
|
<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" align="right" style="width: 90px; font-weight: bold ;margin-left:22px">
|
|
|
|
|
<%= l(:label_class_period) %>
|
|
|
|
|
<span class="required"> * </span>
|
|
|
|
@ -64,6 +68,8 @@
|
|
|
|
|
<span class="info" style="width: 10px;">
|
|
|
|
|
<%= text_field_tag :class_period, nil, :placeholder => "#{l(:lable_input_class)}", :maxlength => 5 %>
|
|
|
|
|
</span>
|
|
|
|
|
<strong><%= l(:label_class_hour) %></strong>
|
|
|
|
|
<strong><%= l(:label_class_hour) %></strong>
|
|
|
|
|
<strong>
|
|
|
|
|
<%= l(:label_class_hour) %>
|
|
|
|
|
</strong>
|
|
|
|
@ -80,6 +86,7 @@
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="info" align="right" style="width: 86px">
|
|
|
|
|
<strong><%= l(:label_term) %><span class="required"> * </span></strong>
|
|
|
|
|
<strong>
|
|
|
|
|
<%= l(:label_term) %>
|
|
|
|
|
<span class="required"> * </span>
|
|
|
|
@ -89,6 +96,7 @@
|
|
|
|
|
<%= select_tag :time,options_for_select(course_time_option,@course.time), {} %>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="info" style="width: 10px">
|
|
|
|
|
<%= select_tag :term,options_for_select(course_term_option,@course.term),{} %>
|
|
|
|
|
<%= select_tag :term,options_for_select(course_term_option,@course.term || cur_course_term),{} %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
@ -99,12 +107,14 @@
|
|
|
|
|
</table>
|
|
|
|
|
</p>
|
|
|
|
|
<p style="margin-left:-10px;">
|
|
|
|
|
<label for="course[course]_password" style="font-size: 13px;"><%= l(:label_new_course_password) %>
|
|
|
|
|
<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>
|
|
|
|
|
<em class="info" style="margin-left:95px;">
|
|
|
|
|
<%= l(:text_command) %>
|
|
|
|
|
</em>
|
|
|
|
@ -124,12 +134,19 @@
|
|
|
|
|
<%= f.check_box :is_public, :style => "margin-left:10px;" %>
|
|
|
|
|
<%= l(:label_course_public_info) %>
|
|
|
|
|
</em>
|
|
|
|
|
</p><!-- modified by bai -->
|
|
|
|
|
</p>
|
|
|
|
|
<p style="margin-left:-10px;">
|
|
|
|
|
<em style="color: #888888;display: block;font-size: 90%;font-style: normal;">
|
|
|
|
|
<%= f.check_box :open_student, :style => "margin-left:10px;" %>
|
|
|
|
|
<%= l(:label_course_open_student_info) %>
|
|
|
|
|
</em>
|
|
|
|
|
</p>
|
|
|
|
|
<p style="display:none;">
|
|
|
|
|
<%= f.text_field :course_type, :value => 1 %>
|
|
|
|
|
</p>
|
|
|
|
|
<%= wikitoolbar_for 'course_description' %>
|
|
|
|
|
<% @course.custom_field_values.each do |value| %>
|
|
|
|
|
<p><%= custom_field_tag_with_label :course, value %></p>
|
|
|
|
|
<p>
|
|
|
|
|
<%= custom_field_tag_with_label :course, value %>
|
|
|
|
|
</p>
|
|
|
|
|