|
|
|
@ -2,7 +2,8 @@
|
|
|
|
|
<%= image_tag(url_to_avatar(source), id: "avatar_image", :width =>"60", :height =>"60",:alt=>"上传图片")%>
|
|
|
|
|
</a>
|
|
|
|
|
<%#= link_to l(:button_delete_file),{:controller => :avatar,:action => :delete_image,:remote=>true,:source_type=> source.class,:source_id=>source.id},:confirm => l(:text_are_you_sure), :method => :post, :class => "upbtn fl" %>
|
|
|
|
|
<a href="javascript:void(0)" class="upbtn fl">上传图片</a>
|
|
|
|
|
<a href="javascript:void(0)" class="upbtn fl"><%= l(:button_upload_photo) %></a>
|
|
|
|
|
<span class="c_orange ml25 mt43 f12 fl ">(个人头像建议90*90大小,课程和项目logo建议60*60大小,或者等比图像)</span>
|
|
|
|
|
<%= file_field_tag 'avatar[image]',
|
|
|
|
|
:id => nil,
|
|
|
|
|
:class => 'upload_file ',
|
|
|
|
|