修改提交问卷后提示框样式
This commit is contained in:
parent
30a058133d
commit
933ad22cd2
|
@ -1,36 +1,12 @@
|
||||||
<div id="popbox" style="text-align: center;margin-top: 25px">
|
<div id="popbox" style="text-align: center;margin-top: 25px">
|
||||||
<% if status == 0 %>
|
<% if status == 0 %>
|
||||||
<h2>提交成功!</h2>
|
<h3 style="font-weight: normal;color: green">提交成功!</h3>
|
||||||
<%= link_to "确定", poll_index_path(:polls_group_id => @course.id,:polls_type => 'Course'),:style => 'height: 28px;
|
<%= link_to "确定", poll_index_path(:polls_group_id => @course.id,:polls_type => 'Course'),:class => 'commit'%>
|
||||||
display: block;
|
|
||||||
width: 80px;
|
|
||||||
color: #fff;
|
|
||||||
background: #15bccf;
|
|
||||||
text-align: center;
|
|
||||||
padding-top: 4px;
|
|
||||||
float: left;
|
|
||||||
margin-right: 10px;'%>
|
|
||||||
<% elsif status == 1 %>
|
<% elsif status == 1 %>
|
||||||
<h2 style="font-weight: normal">您还有尚未作答的题目请完成后在提交!</h2>
|
<h3 style="font-weight: normal;color: red">您还有尚未作答的题目请完成后在提交!</h3>
|
||||||
<%= link_to "确定", "javascript:void(0)",:onclick => 'hidden_atert_form();',:style => 'height: 28px;
|
<%= link_to "确定", "javascript:void(0)",:onclick => 'hidden_atert_form();',:class => 'commit'%>
|
||||||
display: block;
|
|
||||||
width: 80px;
|
|
||||||
color: #fff;
|
|
||||||
background: #15bccf;
|
|
||||||
text-align: center;
|
|
||||||
padding-top: 4px;
|
|
||||||
float: left;
|
|
||||||
margin-right: 10px;'%>
|
|
||||||
<% else %>
|
<% else %>
|
||||||
<h2 style="color: #0000ff">发生未知错误,请检查您的网络。</h2>
|
<h3 style="font-weight: normal;color: red">发生未知错误,请检查您的网络。</h3>
|
||||||
<%= link_to "确定", "javascript:void(0)",:onclick => 'hidden_atert_form();',:style => 'height: 28px;
|
<%= link_to "确定", "javascript:void(0)",:onclick => 'hidden_atert_form();',:class => 'commit'%>
|
||||||
display: block;
|
|
||||||
width: 80px;
|
|
||||||
color: #fff;
|
|
||||||
background: #15bccf;
|
|
||||||
text-align: center;
|
|
||||||
padding-top: 4px;
|
|
||||||
float: left;
|
|
||||||
margin-right: 10px;'%>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'commit_alert',:locals => {:status => @status}) %>');
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'commit_alert',:locals => {:status => @status}) %>');
|
||||||
showModal('ajax-modal', '513px');
|
showModal('ajax-modal', '400px');
|
||||||
$('#ajax-modal').css('height','200px');
|
$('#ajax-modal').css('height','100px');
|
||||||
$('#ajax-modal').siblings().remove();
|
$('#ajax-modal').siblings().remove();
|
||||||
$('#ajax-modal').before("<span style='float: right;cursor:pointer;'>" +
|
$('#ajax-modal').before("<span style='float: right;cursor:pointer;'>" +
|
||||||
"<a href='#' onclick='hidden_atert_form();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
|
"<a href='#' onclick='hidden_atert_form();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
|
||||||
|
|
|
@ -5,7 +5,19 @@
|
||||||
<title>问卷调查_问卷页面</title>
|
<title>问卷调查_问卷页面</title>
|
||||||
<%= stylesheet_link_tag 'polls', :media => 'all' %>
|
<%= stylesheet_link_tag 'polls', :media => 'all' %>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
.alert_box{width:480px;height:180px;position:fixed;z-index:100;left:50%;top:50%;margin:-215px 0 0 -300px; background:#fff; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; box-shadow:0px 0px 8px #194a81; overflow:auto;}
|
.alert_box{width:480px;height:180px;position:fixed;z-index:100;left:55%;top:50%;margin:-215px 0 0 -300px; background:#fff; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; box-shadow:0px 0px 8px #194a81; overflow:auto;}
|
||||||
|
.commit{
|
||||||
|
height: 28px;
|
||||||
|
display: block;
|
||||||
|
width: 80px;
|
||||||
|
color: #fff !important;
|
||||||
|
background: #15bccf;
|
||||||
|
text-align: center;
|
||||||
|
padding-top: 4px;
|
||||||
|
margin-left: 130px;
|
||||||
|
margin-top: 4px;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function hidden_atert_form(cur_page,cur_type)
|
function hidden_atert_form(cur_page,cur_type)
|
||||||
|
|
Loading…
Reference in New Issue