正文的“历史版本”旁新增按钮“上传新版本”,用于上传正文的新版文件 #2596

This commit is contained in:
Byran 2021-12-27 20:05:21 +08:00
parent b887251209
commit c890245028

View File

@ -74,17 +74,19 @@
<a data-downloadurl="{{getUrl this._id}}" class="mouse-hover" name="ins_attach_office_online_preview" id="{{this._id}}" data-name="{{this.name}}">{{_ "workflow_attachment_office_online_preview"}}</a>
{{/if}}
<a name="ins_attach_version" class="mouse-hover" data-parent="{{this.metadata.parent}}">{{_ "workflow_attachment_versions"}}</a>
{{#if enabled_add_attachment this}}
<a class="mouse-hover">
<div class="ins-upload">
{{#if this.metadata.main}}
<input type="file" name="file" class="ins-file-version-input" id="ins_upload_main_attach_version">
{{else}}
<input type="file" name="file" class="ins-file-version-input" id="ins_upload_normal_attach_version">
{{/if}}
<span>上传新版本</span>
</div>
</a>
{{#if this.metadata.main}}
{{#if enabled_add_attachment this}}
<a class="mouse-hover">
<div class="ins-upload">
{{#if this.metadata.main}}
<input type="file" name="file" class="ins-file-version-input" id="ins_upload_main_attach_version">
{{else}}
<input type="file" name="file" class="ins-file-version-input" id="ins_upload_normal_attach_version">
{{/if}}
<span>{{_ "workflow_attachment_versions_upload"}}</span>
</div>
</a>
{{/if}}
{{/if}}
{{#if this.metadata.locked_by}}
<span style="margin-left: 10px;">{{locked_info this.metadata.locked_by_name}}</span>