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