111 lines
6.9 KiB
Plaintext
111 lines
6.9 KiB
Plaintext
<div class="panel-user-right-con clearfix">
|
|
<% if !@user.authentication && (@apply_user_auth.nil? || @apply_user_auth && @apply_user_auth.status == 2) %>
|
|
<div class="alert alert-orange mb15 mt15">
|
|
<% if !@user.authentication && @apply_user_auth.nil? %>
|
|
<span class="cir-orange mr10">未认证</span>请及时提交认证申请,体验更全面、智能的资源和题库服务
|
|
<% elsif !@user.authentication && @apply_user_auth.status == 2 %>
|
|
<span class="cir-red mr10">未通过</span>抱歉,您提交的认证资料里“职业证明”、“身份证明”于<%= format_time @apply_user_auth.deal_time %>未通过认证审核!请您重新申请认证。
|
|
<% end %>
|
|
</div>
|
|
<div class="mr15 ml50">
|
|
<div class="clearfix ml50 mb30 mt30">
|
|
<div class="user-liucheng fl">1.上传图片</div>
|
|
<div class="task-arrow-right task-arrow-right02 fl"></div>
|
|
<div class="user-liucheng fl user-liucheng-grey">2.审核并完成认证</div>
|
|
</div>
|
|
|
|
<div class="ml50 clearfix mb30">
|
|
<span class="fl font-16 font-bd">职业证明:</span>
|
|
<div class="fl font-12">
|
|
<p class="mb10 mt5">
|
|
如:教师证、学生证、工作证<br/>
|
|
<span class="color-red" style="color:red;">请根据你基本资料中填写的职业、职称和单位名称,上传匹配的证件照片</span>
|
|
</p>
|
|
<ul class="user-renzheng-box color-grey">
|
|
<li>
|
|
<%= file_field_tag 'avatar[image]',
|
|
:id => "upload_img_pro",
|
|
:style => 'display:none;',#added by young
|
|
:size => "1",
|
|
:multiple => false,
|
|
:onchange => 'addInputAvatar(this);',
|
|
:data => {
|
|
:max_file_size => Setting.authentication_img_max_size.to_i.kilobytes,
|
|
:max_file_size_message => l(:error_user_auth_too_big, :max_size => number_to_human_size(Setting.authentication_img_max_size.to_i.kilobytes)),
|
|
:max_concurrent_uploads => Redmine::Configuration['max_concurrent_ajax_uploads'].to_i,
|
|
:file_type => Redmine::Configuration['pic_types'].to_s,
|
|
:type_support_message => l(:error_pic_type),
|
|
:upload_path => upload_avatar_path(:format => 'js'),
|
|
:description_placeholder => nil ,# l(:label_optional_description)
|
|
:source_type => 'UserAuthentication',
|
|
:source_id => @user.id.to_s,
|
|
:auth_type => 'PRO',
|
|
:is_direct => 1
|
|
} %>
|
|
<input type="hidden" value="0" id="upload_img_pro_sign" />
|
|
<a href="javascript:void(0);" onclick="$('#upload_img_pro').click();" class="user-renzheng-upload"><i class="fa fa-plus font-28"></i><br/><span class="">点击上传图片</span></a>
|
|
</li>
|
|
<li>
|
|
<%= image_tag(url_to_auth_img(@user.id, 'PRO'), :width => 200, :height => 150, :class => 'user-renzheng-img', :id => 'nh_source_pro') %>
|
|
</li>
|
|
<li>
|
|
<p>1.请提交有效期内的资格证照片,需确保头像和文字清晰<br/>
|
|
2.支持JPG / PNG / BMP等格式图片<br/>
|
|
3.图片最大不要超过2M<br/>
|
|
</p>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class=" ml50 clearfix mb30 ">
|
|
<span class="fl font-16 font-bd">身份证明:</span>
|
|
<div class="fl font-12" >
|
|
<p class="mb10 mt5">
|
|
手持身份证的半身照
|
|
</p>
|
|
<ul class=" user-renzheng-box color-grey">
|
|
<li>
|
|
<%= file_field_tag 'avatar[image]',
|
|
:id => "upload_img_id",
|
|
:style => 'display:none;',#added by young
|
|
:size => "1",
|
|
:multiple => false,
|
|
:onchange => 'addInputAvatar(this);',
|
|
:data => {
|
|
:max_file_size => Setting.authentication_img_max_size.to_i.kilobytes,
|
|
:max_file_size_message => l(:error_user_auth_too_big, :max_size => number_to_human_size(Setting.authentication_img_max_size.to_i.kilobytes)),
|
|
:max_concurrent_uploads => Redmine::Configuration['max_concurrent_ajax_uploads'].to_i,
|
|
:file_type => Redmine::Configuration['pic_types'].to_s,
|
|
:type_support_message => l(:error_pic_type),
|
|
:upload_path => upload_avatar_path(:format => 'js'),
|
|
:description_placeholder => nil ,# l(:label_optional_description)
|
|
:source_type => 'UserAuthentication',
|
|
:source_id => @user.id.to_s,
|
|
:auth_type => 'ID',
|
|
:is_direct => 1
|
|
} %>
|
|
<input type="hidden" value="0" id="upload_img_id_sign" />
|
|
<a href="javascript:void(0);" onclick="$('#upload_img_id').click();" class="user-renzheng-upload"><i class="fa fa-plus font-28"></i><br/><span class="">点击上传图片</span></a>
|
|
</li>
|
|
<li>
|
|
<%= image_tag(url_to_auth_img(@user.id, 'ID'), :width => 200, :height => 150,:class => 'user-renzheng-img', :id => 'nh_source_id') %>
|
|
</li>
|
|
<li>
|
|
<p>1.照片内所持身份证件必须在有效期内,没有作假痕迹。<br/>
|
|
2.照片内所持身份证件,信息清晰可见,无遮挡。<br/>
|
|
3.照片内持证人五官清晰可见,且五官须与身份证件上的照片一致。<br/>
|
|
4.支持JPG / PNG / BMP等格式图片<br/>
|
|
5.图片最大不要超过2M
|
|
</p>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<a href="javascript:void(0);" onclick="user_auth_submit(<%= @apply_user_auth.nil? ? '0' : '1' %>, '<%= user_auth_account_path() %>');" class="task-btn task-btn-blue fr" style="margin-right:100px;">提交认证申请</a>
|
|
<div class="cl"></div>
|
|
</div>
|
|
<% else %>
|
|
<%= render :partial => 'has_authentication' %>
|
|
<% end %>
|
|
</div>
|