导入问卷的弹框用新版样式
This commit is contained in:
parent
356fbfe792
commit
2bb018b0fe
|
@ -1,19 +1,26 @@
|
|||
<div id="popbox_upload" style="margin-top: -30px;margin-left: -20px;margin-right: -10px;">
|
||||
<div class="upload_con">
|
||||
<h2>选择问卷导入本班级</h2>
|
||||
<div class="upload_box">
|
||||
<div id="error_show" style="color: red;"></div>
|
||||
<%= form_tag import_other_poll_poll_index_path,
|
||||
method: :post,
|
||||
id: "relation_file_form" do %>
|
||||
<input type="hidden" name="course_id" value="<%= polls_group_id%>" />
|
||||
<%= content_tag('div', poll_check_box_tags('polls[]', polls,polls_group_id), :id => 'courses',:style=> 'width: 300px;')%>
|
||||
<a id="submit_quote" href="javascript:void(0)" class="blue_btn fl c_white" style="margin-left: 0px !important;" onclick="submit_quote();">导 入</a>
|
||||
<a href="javascript:void(0)" class="grey_btn fl c_white ml10" onclick="closeModal();">取 消</a>
|
||||
<% end -%>
|
||||
<div id="muban_popup_box" style="width:500px;">
|
||||
<div class="muban_popup_top">
|
||||
<h3 class="fl">选择问卷导入本班级</h3>
|
||||
<a href="javascript:void(0);" class="muban_icons_close fr"></a>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<div class="muban_popup_con clear">
|
||||
<%= form_tag import_other_poll_poll_index_path,
|
||||
method: :post,
|
||||
id: "relation_file_form" do %>
|
||||
<input type="hidden" name="course_id" value="<%= polls_group_id%>" />
|
||||
<div class="import_poll_div">
|
||||
<% polls.each do |poll| %>
|
||||
<li>
|
||||
<input style="vertical-align:middle" type="checkbox" name="polls[]" id="poll_check_box_<%=poll.id %>" value="<%=poll.id %>"/>
|
||||
<label style="vertical-align:middle" for="poll_check_box_<%=poll.id %>" class="break_word"><%=h poll.polls_name.blank? ? l(:label_poll_new) : poll.polls_name %> [<%=h Course.find(poll.polls_group_id).name %>]</label>
|
||||
</li>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="cl"></div>
|
||||
<a href="javascript:void(0);" class="fr sy_btn_blue mr35" onclick="submit_quote();">导 入</a>
|
||||
<a href="javascript:void(0);" class="fr sy_btn_grey mr5" onclick="hideModal();">取 消</a>
|
||||
<% end -%>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
|
||||
<% if @polls.empty? %>
|
||||
alert('您的其它班级下没有问卷可供导入');
|
||||
<% else %>
|
||||
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'other_poll',:locals => {:polls => @polls,:polls_group_id=>@polls_group_id}) %>');
|
||||
|
||||
|
||||
showModal('ajax-modal', '513px');
|
||||
$('#ajax-modal').siblings().remove();
|
||||
$('#ajax-modal').before("<a href='javascript:void(0)' onclick='closeModal()' style='margin-left: 480px;'><img src='/images/bid/close.png' width='26px' height='26px' /></a>");
|
||||
$('#ajax-modal').parent().css("top","").css("left","").css("border","3px solid #269ac9");
|
||||
$('#ajax-modal').parent().addClass("popbox_polls");
|
||||
var html_value = '<%= escape_javascript(render :partial => 'other_poll',:locals => {:polls => @polls,:polls_group_id=>@polls_group_id}) %>';
|
||||
pop_box_new(html_value, 510, 550);
|
||||
// $('#ajax-modal').html('<%= escape_javascript(render :partial => 'other_poll',:locals => {:polls => @polls,:polls_group_id=>@polls_group_id}) %>');
|
||||
//
|
||||
//
|
||||
// showModal('ajax-modal', '513px');
|
||||
// $('#ajax-modal').siblings().remove();
|
||||
// $('#ajax-modal').before("<a href='javascript:void(0)' onclick='closeModal()' style='margin-left: 480px;'><img src='/images/bid/close.png' width='26px' height='26px' /></a>");
|
||||
// $('#ajax-modal').parent().css("top","").css("left","").css("border","3px solid #269ac9");
|
||||
// $('#ajax-modal').parent().addClass("popbox_polls");
|
||||
<% end %>
|
|
@ -158,6 +158,7 @@ h4{ font-size:14px;}/*color:#3b3b3b;*/
|
|||
.mr25 {margin-right:25px;}
|
||||
.mr27 {margin-right:27px;}
|
||||
.mr30{ margin-right:30px !important;}
|
||||
.mr35{ margin-right:35px;}
|
||||
.mr40{ margin-right:40px !important;}
|
||||
.mr45{margin-right: 45px;}
|
||||
.mr50{margin-right: 50px;}
|
||||
|
|
|
@ -151,4 +151,6 @@ a:hover.btn_pu{ background:#3cb761;}
|
|||
.polls_alert_upload_box{ width:120px; margin:15px auto;}
|
||||
.polls_alert_box_p{ font-size:14px; padding-left: 45px;padding-top: 10px;}
|
||||
|
||||
.import_poll_div{width: 430px; max-height: 550px; overflow-x:hidden; overflow-y: auto; margin: 10px auto;}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue