OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/frontend/app/templates/work_packages/attachments-edit.html

32 lines
1.6 KiB

<div class="work-packages--attachments">
<div class="attributes-group--header">
<div class="attributes-group--header-container">
<h3 class="attributes-group--header-text">
{{ ::I18n.t('js.label_attachments') }}
<span class="loading" data-ng-show="loading">loading</span>
</h3>
</div>
</div>
<div data-ngf-drop data-ng-model="files" data-ng-model-rejected="rejectedFiles" data-ngf-select class="work-package--attachments--drop-box"
data-ngf-multiple="true" data-ngf-change="instantUpload()" data-ngf-max-size="{{::maximumFileSize}}">
<p class="work-package--attachments--label">{{ ::I18n.t('js.label_drop_files') }}</p>
<p class="work-package--attachments--hint">{{ ::I18n.t('js.label_drop_files_hint') }}</p>
</div>
<div class="work-package--attachments--files" data-ng-show="attachments.length > 0">
<ul>
<li data-ng-repeat="attachment in attachments">
<attachment-icon type="attachment.contentType"></attachment-icon> <a data-ng-href="{{attachment._links.downloadLocation.href}}" download>{{attachment.fileName}}</a><span class="filesize">({{::kilobytes(attachment.fileSize)}})</span>
<a data-ng-click="remove(attachment)" class="button -with-icon icon-delete -tiny" title="{{::I18n.t('js.label_remove_file')}}">{{::I18n.t('js.label_remove_file')}}</a>
</li>
</ul>
</div>
<div class="work-package--attachments--files -rejected" data-ng-show="rejectedFiles.length > 0">
<h4>{{::I18n.t('js.label_rejected_files')}}</h4>
<ul>
<li data-ng-repeat="file in rejectedFiles">
{{file.name}}
</li>
</ul>
</div>
</div>