课程、项目、个人头像上传

This commit is contained in:
whimlex 2015-04-22 15:49:38 +08:00
parent 86bd708c5d
commit 4cb22f2437
2 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,6 @@
<a href="javascript:void(0);" class="btn_addPic" style="text-decoration:none;">
<span><%= l(:button_upload_photo) %></span>
</a>
<span class="c_orange ml25 f12">(个人头像建议90*90大小课程和项目logo建议60*60大小或者等比图像)</span>
<!-- :accept => 'image/png,image/gif,image/jpeg', -->
<span class="add_avatar" style="margin-left: -55px;width: 70px">
<%= file_field_tag 'avatar[image]',
@ -69,6 +68,8 @@
:source_id => source.id.to_s
} %>
</span>
<span class="c_orange ml25 f12">(个人头像建议90*90大小或者等比图像)</span>
</div>
<% content_for :header_tags do %>
<%= javascript_include_tag 'avatars' %>

View File

@ -3,7 +3,6 @@
</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"><%= 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 ',
@ -22,6 +21,7 @@
:source_id => source.id.to_s
} %>
<!--</span>-->
<span class="c_orange ml25 mt43 f12 fl ">(课程和项目logo建议60*60大小或者等比图像)</span>
<% content_for :header_tags do %>
<%= javascript_include_tag 'avatars' %>
<% end %>