mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-325] added attach folder widget (#2831)
[ADF-325] added new attach folder widget
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<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 class="button-row" *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>
|
Reference in New Issue
Block a user