课程中不能删除创建班级教室title模拟
This commit is contained in:
parent
912f70420a
commit
20bba5bfe5
|
@ -40,7 +40,10 @@
|
|||
<% elsif allow_delete %>
|
||||
<%= link_to('删除', {:controller => 'syllabus_member', :action => 'destroy', :id => member.id, :syllabus => @syllabus.id},:remote => true, :method => 'delete', :confirm => l(:text_are_you_sure), :class => "fr sy_btn_grey mr5", :title => l(:button_delete)) %>
|
||||
<% else %>
|
||||
<a href="javascript:void(0)" class="fr sy_btn_grey mr5" title="该老师已在本课程下创建了班级,不能删除">删除</a>
|
||||
<div class="pr">
|
||||
<a href="javascript:void(0)" class="fr sy_btn_grey mr5" id="removeTeacher">删除</a>
|
||||
<div class="simulation-title">该老师已在本课程下创建了班级,不能删除</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% if i == 0 && count == 1 %>
|
||||
|
||||
|
@ -57,4 +60,13 @@
|
|||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
$("#removeTeacher").mouseover(function(){
|
||||
$(".simulation-title").show();
|
||||
$(".simulation-title").css({"top":"35px","left":"90px"});
|
||||
}).mouseout(function(){
|
||||
$(".simulation-title").hide();
|
||||
});;
|
||||
</script>
|
|
@ -1518,3 +1518,6 @@ a.syllabusbox_a_blue{
|
|||
|
||||
.homepagePostContainer {width:718px; border:1px solid #dddddd; padding:15px; background-color:#ffffff;}
|
||||
.homepageMainContent {margin: 10px auto; width: 750px;}
|
||||
|
||||
/*模拟title*/
|
||||
.simulation-title {position:absolute; background-color:#fff; padding:5px 10px; z-index:99; white-space:nowrap; box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5); display:none; color:#666; border:1px solid #666; line-height:1;}
|
||||
|
|
Loading…
Reference in New Issue