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.html

25 lines
1.3 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') }}
</h3>
</div>
</div>
<div data-ngf-drop data-ng-model="files" data-ngf-select class="work-package--attachments--drop-box"
data-ngf-multiple="true" data-ngf-allow-dir="true" data-ng-keep-distinct>
<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-pacakge--attachments-files" data-ng-show="files.length > 0">
<ul>
<li data-ng-repeat="file in files | filter:{type:'!directory'}">
<attachment-icon type="file.type"></attachment-icon>
<input type="text" data-ng-model="file.description" placeholder="{{::file.name}}" title="{{::I18n.t('js.label_add_description', {file: file.name})}}">
<a data-ng-click="remove(file)" class="button -with-icon icon-delete -tiny" title="{{::I18n.t('js.label_remove_file')}}">{{::I18n.t('js.label_remove_file')}}</a>
</li>
</ul>
<a data-ng-click="removeAll()">{{::I18n.t('js.label_remove_all_files')}}</a>
</div>
</div>