课程、项目、个人头像上传
This commit is contained in:
parent
86bd708c5d
commit
4cb22f2437
|
@ -47,7 +47,6 @@
|
||||||
<a href="javascript:void(0);" class="btn_addPic" style="text-decoration:none;">
|
<a href="javascript:void(0);" class="btn_addPic" style="text-decoration:none;">
|
||||||
<span><%= l(:button_upload_photo) %></span>
|
<span><%= l(:button_upload_photo) %></span>
|
||||||
</a>
|
</a>
|
||||||
<span class="c_orange ml25 f12">(个人头像建议90*90大小,课程和项目logo建议60*60大小,或者等比图像)</span>
|
|
||||||
<!-- :accept => 'image/png,image/gif,image/jpeg', -->
|
<!-- :accept => 'image/png,image/gif,image/jpeg', -->
|
||||||
<span class="add_avatar" style="margin-left: -55px;width: 70px">
|
<span class="add_avatar" style="margin-left: -55px;width: 70px">
|
||||||
<%= file_field_tag 'avatar[image]',
|
<%= file_field_tag 'avatar[image]',
|
||||||
|
@ -69,6 +68,8 @@
|
||||||
:source_id => source.id.to_s
|
:source_id => source.id.to_s
|
||||||
} %>
|
} %>
|
||||||
</span>
|
</span>
|
||||||
|
<span class="c_orange ml25 f12">(个人头像建议90*90大小,或者等比图像)</span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<% content_for :header_tags do %>
|
<% content_for :header_tags do %>
|
||||||
<%= javascript_include_tag 'avatars' %>
|
<%= javascript_include_tag 'avatars' %>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
</a>
|
</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" %>
|
<%#= 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>
|
<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]',
|
<%= file_field_tag 'avatar[image]',
|
||||||
:id => nil,
|
:id => nil,
|
||||||
:class => 'upload_file ',
|
:class => 'upload_file ',
|
||||||
|
@ -22,6 +21,7 @@
|
||||||
:source_id => source.id.to_s
|
:source_id => source.id.to_s
|
||||||
} %>
|
} %>
|
||||||
<!--</span>-->
|
<!--</span>-->
|
||||||
|
<span class="c_orange ml25 mt43 f12 fl ">(课程和项目logo建议60*60大小,或者等比图像)</span>
|
||||||
<% content_for :header_tags do %>
|
<% content_for :header_tags do %>
|
||||||
<%= javascript_include_tag 'avatars' %>
|
<%= javascript_include_tag 'avatars' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue