66 lines
3.3 KiB
Plaintext
66 lines
3.3 KiB
Plaintext
<!--<div class="resourceUploadPopup">-->
|
|
<span class="uploadDialogText">更新资源版本</span>
|
|
<!--<div class="resourcePopupClose"> <a href="javascript:void(0);" class="resourceClose" onclick="closeModal();"></a></div>-->
|
|
<div>
|
|
<div>
|
|
<div>当前版本
|
|
<span class="attachment" >
|
|
<input readonly="readonly" name="attachments[1][filename]" value="<%=@attachment.filename%>" class="upload_filename readonly" type="text">
|
|
</span>
|
|
</div>
|
|
<% unless @attachment_histories.empty? %>
|
|
|
|
<div >历史版本</div>
|
|
<div style="max-height: 95px;overflow-y:auto; background-color: #e3e3e3;" class="mb10 p10">
|
|
<% @attachment_histories.each do |history| %>
|
|
<span class="attachment">
|
|
<%= link_to truncate(history.filename,length: 35, omission: '...'),
|
|
download_history_attachment_path(history.id, history.filename),
|
|
:title => history.filename+"\n"+history.description.to_s, :style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis; max-width:300px;",:class => "linkBlue f_14 f_b upload_filename fl" %>
|
|
<span class="fr">版本号:<%= history.version %></span>
|
|
<div class="cl"></div>
|
|
</span>
|
|
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
|
|
</div>
|
|
<%= form_tag(upload_attachment_version_path, :multipart => true,:remote => !ie8?,:name=>"upload_form",:id=>'upload_form') do %>
|
|
<%= hidden_field_tag :old_attachment_id,@attachment.id %>
|
|
<div>
|
|
<span id="attachments_fields" xmlns="http://www.w3.org/1999/html">
|
|
</span>
|
|
</div>
|
|
<div class="uploadBox">
|
|
<input type="hidden" name="attachment_type" value="1">
|
|
<%= render :partial => 'attachments/upload_attachment_new_version' %>
|
|
<div class="cl"></div>
|
|
<!--<a href="javascript:void(0);" class=" fr grey_btn mr40" onclick="closeModal();"><%#= l(:button_cancel)%></a>-->
|
|
<!--<a id="submit_resource" href="javascript:void(0);" class="blue_btn fr" onclick="submit_resource();"><%#= l(:button_confirm)%></a>-->
|
|
</div>
|
|
<div class="W300 uploadResourceIntr fontGrey2">
|
|
<span id="upload_file_count" class="mr15">(未选择文件)</span>
|
|
<span>您可以上传小于<span class="c_red">50MB</span>的文件</span>
|
|
</div>
|
|
<div class="cl"></div>
|
|
<div class="mb5 mt5">
|
|
<p class="c_dark f14" style="line-height:30px;">描述:</p>
|
|
<div class="fl">
|
|
<textarea style="resize:none" type="text" placeholder="请编辑资源描述" name="description" class="InputBox fl H60 W420" ><%= @attachment.description %></textarea>
|
|
</div>
|
|
<div class="cl"></div>
|
|
</div>
|
|
<div class="cl"></div>
|
|
</div>
|
|
<div class="cl"></div>
|
|
<div style="margin-top: 10px" >
|
|
<div class="courseSendSubmit">
|
|
<!--<a href="javascript:void(0);" class="sendSourceText" onclick="">确定</a>-->
|
|
<%= submit_tag '确定',:onclick=>'upload_attachment_version(event);',:onfocus=>'this.blur()',:id=>'upload_files_submit_btn',:class=>'sendSourceText' %>
|
|
</div>
|
|
<div class="courseSendCancel"><a href="javascript:void(0);" id="upload_files_cancle_btn" class="sendSourceText" onclick="hideModal();">取消</a></div>
|
|
</div>
|
|
<% end %>
|
|
<div class="cl"></div>
|
|
<!--</div>--> |