forked from doubtfire-lms/doubtfire-web
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3549dba
commit c23cf32
Showing
2 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
26 changes: 21 additions & 5 deletions
26
...task-definition-editor/task-definition-resources/task-definition-resources.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,32 @@ | ||
<div class="flex flex-row gap-4"> | ||
<div class="basis-1/2 flex flex-col"> | ||
<f-file-drop mode="event" (filesDropped)="uploadTaskSheet($event)" accept="application/pdf" [desiredFileName]="'Task ' + taskDefinition.abbreviation + ' pdf'" /> | ||
<f-file-drop | ||
mode="event" | ||
(filesDropped)="uploadTaskSheet($event)" | ||
accept="application/pdf" | ||
[desiredFileName]="'Task ' + taskDefinition.abbreviation + ' pdf'" | ||
/> | ||
<div *ngIf="taskDefinition.hasTaskSheet" class="flex flex-row gap-4 pt-4"> | ||
<button mat-flat-button color="accent" (click)="downloadTaskSheet()" class="flex-grow ms-4">Download Task Sheet</button> | ||
<button mat-flat-button color="warn" (click)="removeTaskSheet()" class="flex-grow me-4">Delete Task Sheet</button> | ||
<button mat-flat-button color="accent" (click)="downloadTaskSheet()" class="flex-grow ms-4"> | ||
Download Task Sheet | ||
</button> | ||
</div> | ||
</div> | ||
<div class="basis-1/2 flex flex-col"> | ||
<f-file-drop mode="event" (filesDropped)="uploadTaskResources($event)" accept="application/pdf" [desiredFileName]="'Task ' + taskDefinition.abbreviation + ' zip'" /> | ||
<f-file-drop | ||
mode="event" | ||
(filesDropped)="uploadTaskResources($event)" | ||
accept="application/pdf" | ||
[desiredFileName]="'Task ' + taskDefinition.abbreviation + ' zip'" | ||
/> | ||
<div *ngIf="taskDefinition.hasTaskResources" class="flex flex-row gap-4 pt-4"> | ||
<button mat-flat-button color="accent" (click)="downloadTaskResources()" class="flex-grow ms-4">Download Task Zip</button> | ||
<button mat-flat-button color="warn" (click)="removeTaskResources()" class="flex-grow me-4">Delete Task Zip</button> | ||
<button mat-flat-button color="warn" (click)="removeTaskResources()" class="flex-grow me-4"> | ||
Delete Task Zip | ||
</button> | ||
<button mat-flat-button color="accent" (click)="downloadTaskResources()" class="flex-grow ms-4"> | ||
Download Task Zip | ||
</button> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters