mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* [ADF-4467] Fix Upload File Widget layout * [ADF-4467] Refactor content services upload button
31 lines
1.5 KiB
HTML
31 lines
1.5 KiB
HTML
<div class="adf-attach-folder-widget {{field.className}}"
|
|
[class.adf-invalid]="!field.isValid"
|
|
[class.adf-readonly]="field.readOnly">
|
|
<label class="adf-label" [attr.for]="field.id">{{field.name}}<span *ngIf="isRequired()">*</span></label>
|
|
<div class="adf-attach-folder-widget-container">
|
|
<div *ngIf="hasFolder" class="adf-attach-folder-result">
|
|
<mat-icon>folder</mat-icon>
|
|
<div class="adf-attach-folder-files-row">
|
|
<span matLine id="{{'folder-'+field?.id}}"
|
|
role="button" tabindex="0" class="adf-folder">{{selectedFolderName}}</span>
|
|
<button *ngIf="!field.readOnly" mat-icon-button [id]="'folder-'+field?.id+'-remove'"
|
|
(click)="removeFolder();">
|
|
<mat-icon class="mat-24">highlight_off</mat-icon>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div *ngIf="!hasFolder && !field.readOnly">
|
|
<button mat-raised-button
|
|
color="primary"
|
|
(click)="openSelectDialogFromFileSource()"
|
|
[id]="'folder-'+field?.id+'-button'">
|
|
{{ 'FORM.FIELD.UPLOAD' | translate }}
|
|
<mat-icon>cloud_upload</mat-icon>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<error-widget [error]="field.validationSummary"></error-widget>
|
|
<error-widget *ngIf="isInvalidFieldRequired()" required="{{ 'FORM.FIELD.REQUIRED' | translate }}"></error-widget>
|
|
</div>
|