|
|
|
@ -70,11 +70,11 @@
|
|
|
|
|
<%= hidden_field_tag 'cover_file_name', '', class: 'cover-file-name' %>
|
|
|
|
|
<input type="file" name="cover_file" accept="image/*" id="library-cover-file" style="display: none"/>
|
|
|
|
|
|
|
|
|
|
<div class="surfacePlot ml25 library-cover-select" data-tip-down="上传图片" onclick="$('#library-cover-file').click();">
|
|
|
|
|
<div class="surfacePlot ml60 library-cover-select" data-tip-down="上传图片" onclick="$('#library-cover-file').click();">
|
|
|
|
|
<img src="/images/educoder/unite.png" class="marginuploading <%= cover_exists ? 'hidden' : '' %>" style="<%= cover_exists ? 'display:none' : '' %>"/>
|
|
|
|
|
<div class="library-cover-perview" style="<%= cover_exists ? '' : 'display:none' %>">
|
|
|
|
|
<% cover_url = cover_exists ? download_attachment_path(@library.cover_id) : '' %>
|
|
|
|
|
<img src="<%= cover_url %>" width="120px" height="90px"/>
|
|
|
|
|
<img src="<%= cover_url %>" width="122px" height="93px"/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <p style="height:20px;line-height:20px;"><span class="color-red ml20 none" id="cover_file_notice">请上传封面</span></p>-->
|
|
|
|
|