|
|
@ -64,11 +64,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="clearfix lineheight35">
|
|
|
|
<div class="clearfix lineheight35">
|
|
|
|
<% cover_exists = @library.cover_id.present? %>
|
|
|
|
<% cover_exists = @library.cover_id.present? %>
|
|
|
|
<span class="upload_Titles">封面图</span> <span class="color-grey-c">(上传尺寸:120*90 px)</span>
|
|
|
|
<div><span class="upload_Titles">封面图</span> <span class="color-grey-c">(上传尺寸:120*90 px)</span></div>
|
|
|
|
|
|
|
|
<div class="surfacePlot ml25">
|
|
|
|
|
|
|
|
<img src="/images/educoder/unite.png" class="marginuploading"/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<% if cover_exists %>
|
|
|
|
<% if cover_exists %>
|
|
|
|
<%= image_tag(named_attachment_path(@library.cover.id, @library.cover.filename), :class => "w120 h90 ml5 shixun_image_show") %>
|
|
|
|
<%= image_tag(named_attachment_path(@library.cover.id, @library.cover.filename), :class => "w120 h90 ml5 shixun_image_show") %>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<img src="" class="w80 h80 ml5 shixun_image_show none" id="shixun_image_show_<%= @library.id %>"/>
|
|
|
|
<img src="" class="ml5 shixun_image_show ml50 none" width="150px" height="150px" id="shixun_image_show_<%= @library.id %>"/>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<%= file_field_tag 'library[cover_id]',
|
|
|
|
<%= file_field_tag 'library[cover_id]',
|
|
|
|
:id => "upload_img_#{@library.id}",
|
|
|
|
:id => "upload_img_#{@library.id}",
|
|
|
@ -85,10 +88,11 @@
|
|
|
|
:upload_path => uploads_path(:format => 'js',:project =>nil),
|
|
|
|
:upload_path => uploads_path(:format => 'js',:project =>nil),
|
|
|
|
:description_placeholder => nil ,# l(:label_optional_description)
|
|
|
|
:description_placeholder => nil ,# l(:label_optional_description)
|
|
|
|
} %>
|
|
|
|
} %>
|
|
|
|
<a href="javascript:void(0);" id="object_upload_img_<%= @library.id %>" class="mr10" onclick="$('#upload_img_<%= @library.id %>').click();">
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<a href="javascript:void(0);" id="object_upload_img_<%= @library.id %>" class="<%= cover_exists ? "mr10 ml60" : "mr10 ml60 decoration4CACFF" %>" onclick="$('#upload_img_<%= @library.id %>').click();">
|
|
|
|
<%= cover_exists ? "重新上传" : "上传图片" %>
|
|
|
|
<%= cover_exists ? "重新上传" : "上传图片" %>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="padding30 bor-top-greyE">
|
|
|
|
<div class="padding30 bor-top-greyE">
|
|
|
|