Add transclusion to wpAttachmentsUpload

pull/4768/head
Alex Dik 8 years ago
parent 7a7041ec14
commit 284c4edfa0
  1. 10
      frontend/app/components/work-packages/wp-single-view/wp-single-view.directive.html
  2. 10
      frontend/app/components/wp-attachments/wp-attachments-upload/wp-attachments-upload.directive.html
  3. 1
      frontend/app/components/wp-attachments/wp-attachments-upload/wp-attachments-upload.directive.ts

@ -115,6 +115,14 @@
</div>
<wp-attachment-list work-package="$ctrl.workPackage"></wp-attachment-list>
<wp-attachments-upload work-package="$ctrl.workPackage"></wp-attachments-upload>
<wp-attachments-upload work-package="$ctrl.workPackage">
<div class="work-package--attachments--label">
<i class="icon-attachment"></i>
<p>
{{ ::$ctrl.text.dropFiles }} <br>
{{ ::$ctrl.text.dropFilesHint }}
</p>
</div>
</wp-attachments-upload>
</div>
</div>

@ -8,12 +8,6 @@
ngf-multiple="true"
ngf-change="$ctrl.workPackage.uploadPendingAttachments()"
ngf-max-size="{{ ::$ctrl.maxFileSize }}"
click-on-keypress="[13, 32]">
<div class="work-package--attachments--label">
<i class="icon-attachment"></i>
<p>
{{ ::$ctrl.text.dropFiles }} <br>
{{ ::$ctrl.text.dropFilesHint }}
</p>
</div>
click-on-keypress="[13, 32]"
ng-transclude>
</div>

@ -52,6 +52,7 @@ function wpUploadDirective(): IDirective {
return {
restrict: 'E',
templateUrl: '/components/wp-attachments/wp-attachments-upload/wp-attachments-upload.directive.html',
transclude: true,
scope: {
workPackage: '='

Loading…
Cancel
Save