parent
859e3e9a62
commit
05cd6b874b
@ -0,0 +1,95 @@
|
|||||||
|
<div class="modal reject-auth-modal" style="position: fixed;left: 0;top: 0;width: 100%;height: 100%;z-index: 100;display: none;">
|
||||||
|
<div class="mask" style="position: absolute;width: 100%;height: 100%;background:rgba(0,0,0,1);opacity:0.5;"></div>
|
||||||
|
<div class="task-popup" style="width:600px;position: relative;margin: 100px auto 0;border-radius:10px;">
|
||||||
|
<div class=" task-popup-title clearfix task-popup-bggrey">
|
||||||
|
<%= title %>
|
||||||
|
</div>
|
||||||
|
<div class="mt15 ml30 pb20">
|
||||||
|
<div class="mr15">
|
||||||
|
<%= form_tag(path, remote: true, method: :post, id: 'reject-auth-form') do %>
|
||||||
|
<%= hidden_field_tag :reject_type, reject_type %>
|
||||||
|
<%= hidden_field_tag :type, 1 %>
|
||||||
|
<%= hidden_field_tag :apply_id, '' %>
|
||||||
|
<%= hidden_field_tag :status, params[:status] %>
|
||||||
|
<%= hidden_field_tag :search, params[:search] %>
|
||||||
|
<%= hidden_field_tag :page, params[:search] %>
|
||||||
|
<ul>
|
||||||
|
<li class="clearfix">
|
||||||
|
<label class="panel-form-label fl">撤销原因:</label>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="ml20">
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<input type="checkbox" name="reasons[]" value="请如实填写您的个人资料" id="reject-reason-1" class="ml-3 mr5 magic-checkbox" style="float:left; margin-top: 8px;"/>
|
||||||
|
<label for="reject-reason-1" class="color4C4C4C">请如实填写您的个人资料</label>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<input type="checkbox" name="reasons[]" value="请如实填写您的学校/单位信息" id="reject-reason-2" class="ml5 mr5 magic-checkbox" style="float:left; margin-top: 8px;"/>
|
||||||
|
<label for="reject-reason-2" class="color4C4C4C">请如实填写您的学校/单位信息</label>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<input type="checkbox" name="reasons[]" value="请在职业栏中修改正确的身份信息" id="reject-reason-3" class="ml5 mr5 magic-checkbox" style="float:left; margin-top: 8px;"/>
|
||||||
|
<label for="reject-reason-3" class="color4C4C4C">请在职业栏中修改正确的身份信息</label>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<input type="checkbox" name="reasons[]" value="请填写您的推荐人信息" id="reject-reason-4" class="ml5 mr5 magic-checkbox" style="float:left; margin-top: 8px;"/>
|
||||||
|
<label for="reject-reason-4" class="color4C4C4C">请填写您的推荐人信息</label>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<input type="checkbox" name="reasons[]" value="请告知获取平台资源的渠道,以及您的手机号,我们将主动联系您并授权使用" id="reject-reason-5" class="ml5 mr5 magic-checkbox" style="float:left; margin-top: 8px;"/>
|
||||||
|
<label for="reject-reason-5" class="color4C4C4C">请告知获取平台资源的渠道,以及您的手机号,我们将主动联系您并授权使用</label>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<input type="checkbox" name="reasons[]" value="您好,您的账号试用期限已过" id="reject-reason-6" class="ml5 mr5 magic-checkbox" style="float:left; margin-top: 8px;"/>
|
||||||
|
<label for="reject-reason-6" class="color4C4C4C">您好,您的账号试用期限已过</label>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<input type="checkbox" name="reasons[]" value="其他" id="reject-reason-7" class="ml5 mr5 magic-checkbox" style="float:left; margin-top: 8px;"/>
|
||||||
|
<label for="reject-reason-7" class="color4C4C4C">其他</label>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="clearfix mt10">
|
||||||
|
<label class="panel-form-label fl">备注说明:</label>
|
||||||
|
<textarea class="remarktextarea fl panel-box-sizing candiate_answer" name="reject_description" placeholder="为选择的撤销原因补充备注说明...."></textarea>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="clearfix mt20 edu-txt-center mb20">
|
||||||
|
<a href="javascript:void(0);" class="task-btn mr10 cancel-btn">取消</a>
|
||||||
|
<a href="javascript:void(0);" class="task-btn task-btn-orange ml20 submit-btn">确定</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(function(){
|
||||||
|
var modal = $(".modal.reject-auth-modal");
|
||||||
|
var form = modal.find("#reject-auth-form");
|
||||||
|
var applyIdInput = form.find("input[name='apply_id']");
|
||||||
|
|
||||||
|
modal.on('click', '.submit-btn', function(){
|
||||||
|
form.submit();
|
||||||
|
});
|
||||||
|
|
||||||
|
var hideRejectModalFunc = function(){
|
||||||
|
applyIdInput.val('');
|
||||||
|
form.find("textarea[name='reject_description']").val('');
|
||||||
|
form.find("input[name='reasons[]']").each(function(){this.checked=false;})
|
||||||
|
modal.hide();
|
||||||
|
};
|
||||||
|
// 隐藏弹窗
|
||||||
|
modal.on("click", '.mask', hideRejectModalFunc);
|
||||||
|
modal.on("click", '.cancel-btn', hideRejectModalFunc);
|
||||||
|
})
|
||||||
|
</script>
|
@ -1,69 +0,0 @@
|
|||||||
<div class="task-popup" style="width:600px;">
|
|
||||||
<div class=" task-popup-title clearfix task-popup-bggrey">
|
|
||||||
撤销授权
|
|
||||||
</div>
|
|
||||||
<div class="mt15 ml30 pb20">
|
|
||||||
<div class="mr15">
|
|
||||||
<%= form_tag({:controller => 'courses', :action => 'join_course_multi_role'}, :remote => true, :method => :post, :id => 'new-watcher-form') do %>
|
|
||||||
<ul>
|
|
||||||
<li class="clearfix">
|
|
||||||
<label class="panel-form-label fl">撤销原因:</label>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="ml20">
|
|
||||||
|
|
||||||
<span>
|
|
||||||
<input type="checkbox" name="role[]" value="1" id="join_course_role_1" class="ml-3 mr5 magic-checkbox" style="float:left; margin-top: 8px;"/>
|
|
||||||
<label for="join_course_role_1" class="color4C4C4C">请如实填写您的个人资料</label>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<span>
|
|
||||||
<input type="checkbox" name="role[]" value="2" id="join_course_role_2" class="ml5 mr5 magic-checkbox" style="float:left; margin-top: 8px;"/>
|
|
||||||
<label for="join_course_role_2" class="color4C4C4C">请如实填写您的学校/单位信息</label>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<span>
|
|
||||||
<input type="checkbox" name="role[]" value="3" id="join_course_role_3" class="ml5 mr5 magic-checkbox" style="float:left; margin-top: 8px;"/>
|
|
||||||
<label for="join_course_role_3" class="color4C4C4C">请在职业栏中修改正确的身份信息</label>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<span>
|
|
||||||
<input type="checkbox" name="role[]" value="4" id="join_course_role_4" class="ml5 mr5 magic-checkbox" style="float:left; margin-top: 8px;"/>
|
|
||||||
<label for="join_course_role_4" class="color4C4C4C">请填写您的推荐人信息</label>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<span>
|
|
||||||
<input type="checkbox" name="role[]" value="5" id="join_course_role_5" class="ml5 mr5 magic-checkbox" style="float:left; margin-top: 8px;"/>
|
|
||||||
<label for="join_course_role_5" class="color4C4C4C">请告知获取平台资源的渠道,以及您的手机号,我们将主动联系您并授权使用</label>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<span>
|
|
||||||
<input type="checkbox" name="role[]" value="6" id="join_course_role_6" class="ml5 mr5 magic-checkbox" style="float:left; margin-top: 8px;"/>
|
|
||||||
<label for="join_course_role_6" class="color4C4C4C">您好,您的账号试用期限已过</label>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<span>
|
|
||||||
<input type="checkbox" name="role[]" value="7" id="join_course_role_7" class="ml5 mr5 magic-checkbox" style="float:left; margin-top: 8px;"/>
|
|
||||||
<label for="join_course_role_7" class="color4C4C4C">其他</label>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="clearfix mt10">
|
|
||||||
<label class="panel-form-label fl">备注说明:</label>
|
|
||||||
<textarea class="remarktextarea fl panel-box-sizing candiate_answer" name="question_answer[]" placeholder="为选择的撤销原因补充备注说明...."></textarea>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="clearfix mt20 edu-txt-center mb20">
|
|
||||||
<a href="javascript:void(0);" class="task-btn mr10" onclick="hideModal()">取消</a>
|
|
||||||
<a href="javascript:void(0);" class="task-btn task-btn-orange ml20" onclick="submit_join_course();">确定</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
|
|
||||||
</script>
|
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddRejectDescriptionToApplyActions < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :apply_actions, :reject_description, :string
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue