2016-02-20 17:00:21 +08:00
|
|
|
<!--<div class="resourceUploadPopup">-->
|
|
|
|
<span class="uploadDialogText">更新资源版本</span>
|
|
|
|
<!--<div class="resourcePopupClose"> <a href="javascript:void(0);" class="resourceClose" onclick="closeModal();"></a></div>-->
|
2016-06-20 17:13:14 +08:00
|
|
|
<div>
|
2016-02-20 17:00:21 +08:00
|
|
|
<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),
|
2016-07-20 16:21:58 +08:00
|
|
|
: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" %>
|
2016-02-20 17:00:21 +08:00
|
|
|
<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>
|
2016-06-20 16:35:16 +08:00
|
|
|
<div class="W300 uploadResourceIntr fontGrey2">
|
|
|
|
<span id="upload_file_count" class="mr15">(未选择文件)</span>
|
|
|
|
<span>您可以上传小于<span class="c_red">50MB</span>的文件</span>
|
|
|
|
</div>
|
2016-06-15 14:02:09 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="mb5 mt5">
|
2016-06-20 16:35:16 +08:00
|
|
|
<p class="c_dark f14" style="line-height:30px;">描述:</p>
|
2016-06-14 14:47:02 +08:00
|
|
|
<div class="fl">
|
2016-06-20 17:34:35 +08:00
|
|
|
<textarea style="resize:none" type="text" placeholder="请编辑资源描述" name="description" class="InputBox fl H60 W420" ><%= @attachment.description %></textarea>
|
2016-06-14 14:47:02 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
2016-02-20 17:00:21 +08:00
|
|
|
</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>
|
2015-12-30 17:27:44 +08:00
|
|
|
<!--</div>-->
|