页面修改
This commit is contained in:
parent
f1aa0c1570
commit
f477f45dec
|
@ -1,20 +1,16 @@
|
|||
<script type="text/javascript">
|
||||
function get_options(value) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: '/school/get_options/' + encodeURIComponent(value),
|
||||
data: 'text',
|
||||
success: function (data) {
|
||||
$("#occupation").html(data);
|
||||
type: "POST",
|
||||
url: '/school/get_options/' + encodeURIComponent(value),
|
||||
data: 'text',
|
||||
success: function (data) {
|
||||
$("#occupation").html(data);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function check() {
|
||||
var regex = /^\d*$/;
|
||||
if (!regex.test($("#class_period").val())) {
|
||||
|
@ -39,16 +35,17 @@
|
|||
<%= f.fields_for @course do |m| %>
|
||||
<% 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 => "在此输入课时", :maxlength => 5 %></span>
|
||||
<span> <strong><%= l(:label_class_hour) %></strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
</table></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 => "在此输入课时", :maxlength => 5 %></span>
|
||||
<span> <strong><%= l(:label_class_hour) %></strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</p>
|
||||
<% else %>
|
||||
<p>
|
||||
<table>
|
||||
|
@ -87,8 +84,9 @@
|
|||
</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]">
|
||||
<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 %>
|
||||
|
@ -103,7 +101,10 @@
|
|||
</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>
|
||||
<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 -->
|
||||
<p style="display:none;"><%= f.text_field :course_type, :value => 1 %></p>
|
||||
<%= wikitoolbar_for 'course_description' %>
|
||||
|
|
|
@ -2128,4 +2128,5 @@ zh:
|
|||
lable_hot_course: 活跃课程
|
||||
lable_hot_projects: 热门项目
|
||||
lable_user_active: 用户动态
|
||||
lable_bar_active: 贴吧动态
|
||||
lable_bar_active: 贴吧动态
|
||||
lable_student_list_visable: 学生列表是否公开
|
||||
|
|
Loading…
Reference in New Issue