Skip to content

Commit

Permalink
style: minor task editor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jakerenzella committed Aug 30, 2023
1 parent 3549dba commit c23cf32
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
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>
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,17 @@ <h3>Task List</h3>
></tr>
</table>
<span class="flex items-center">
<button mat-raised-button color="primary" (click)="createTaskDefinition()">Add Task</button>
<mat-paginator class="mat-elevation-z0" [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>
<span class="flex-grow"></span>
<label>Definitions CSV</label>
<button mat-mini-fab (click)="unit.downloadTaskDefinitionsCsv()"><mat-icon>download</mat-icon></button>
<button mat-mini-fab (click)="uploadTaskDefinitionsCsv()"><mat-icon>upload_file</mat-icon></button>
<button mat-icon-button (click)="unit.downloadTaskDefinitionsCsv()"><mat-icon>download</mat-icon></button>
<button mat-icon-button (click)="uploadTaskDefinitionsCsv()"><mat-icon>upload_file</mat-icon></button>
<span class="flex-grow"></span>
<label>Resources as Zip</label>
<button mat-mini-fab (click)="unit.downloadAllTaskResourcesZip()"><mat-icon>download</mat-icon></button>
<button mat-mini-fab (click)="uploadTaskResourcesZip()"><mat-icon>upload_file</mat-icon></button>
<button mat-icon-button (click)="unit.downloadAllTaskResourcesZip()"><mat-icon>download</mat-icon></button>
<button mat-icon-button (click)="uploadTaskResourcesZip()"><mat-icon>upload_file</mat-icon></button>
<span class="flex-grow"></span>
<mat-paginator class="mat-elevation-z0" [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>
<button mat-raised-button color="primary" (click)="createTaskDefinition()">Add Task</button>
</span>
<f-task-definition-editor
*ngIf="selectedTaskDefinition"
Expand Down

0 comments on commit c23cf32

Please sign in to comment.