-
Notifications
You must be signed in to change notification settings - Fork 257
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
ace8b73
commit 6d27690
Showing
5 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
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
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
52 changes: 52 additions & 0 deletions
52
...ctives/task-dashboard/directives/task-submission-card/task-submission-card.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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<mat-card [hidden]="!(submission.isUploaded || submission.isProcessing)"> | ||
<mat-card-title>Submission <span [hidden]="!submission.isProcessing">Processing</span></mat-card-title> | ||
<mat-card-content> | ||
<p [hidden]="!submission.isProcessing"> | ||
Your submission is being processed and will be avaliable to view soon. You will also be able to download your most | ||
recently submitted files. | ||
</p> | ||
<p [hidden]="!submission.isUploaded"> | ||
You can choose to download your <em [hidden]="!submission.isProcessing">previous</em> | ||
submission or the files you uploaded below. | ||
</p> | ||
<p [hidden]="!submission.isUploaded"> | ||
You uploaded this submission <strong>{{ task.submissionDate | humanizedDate }}</strong | ||
>. | ||
</p> | ||
<p [hidden]="!canRegeneratePdf"> | ||
If you feel there has been an error in your submission, you can request Doubtfire to regenerate your submission | ||
under the "Actions" dropdown menu. | ||
</p> | ||
<p [hidden]="!canReuploadEvidence"> | ||
If you would like to submit alternate evidence for use in your portfolio, you can upload alternate files under the | ||
"Actions" dropdown menu. | ||
</p></mat-card-content | ||
> | ||
<mat-card-actions [hidden]="!(submission.isUploaded || canReuploadEvidence || canRegeneratePdf)"> | ||
<button mat-stroked-button [hidden]="!submission.isUploaded" (click)="downloadSubmission()"> | ||
Download submission | ||
</button> | ||
<button | ||
mat-icon-button | ||
aria-label="More download options" | ||
[matMenuTriggerFor]="menu" | ||
[hidden]="!submission.isUploaded" | ||
> | ||
<mat-icon>more_vert</mat-icon> | ||
</button> | ||
<div fxFlex></div> | ||
<mat-menu #menu="matMenu"> | ||
<button mat-menu-item (click)="downloadSubmissionFiles()">Download original files</button> | ||
</mat-menu> | ||
|
||
<button mat-stroked-button [matMenuTriggerFor]="menu2"> | ||
Actions <mat-icon aria-hidden="false" aria-label="dropdown icon" fontIcon="arrow_drop_down"></mat-icon> | ||
</button> | ||
<mat-menu #menu2="matMenu"> | ||
<button [hidden]="!canReuploadEvidence" mat-menu-item (click)="uploadAlternateFiles()"> | ||
Upload alternate files | ||
</button> | ||
<button [hidden]="!canRegeneratePdf" mat-menu-item (click)="regeneratePdf()">Regenerate PDFs</button> | ||
</mat-menu> | ||
</mat-card-actions> | ||
</mat-card> |
Empty file.
23 changes: 23 additions & 0 deletions
23
...ves/task-dashboard/directives/task-submission-card/task-submission-card.component.spec.ts
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { TaskSubmissionCardComponent } from './task-submission-card.component'; | ||
|
||
describe('TaskSubmissionCardComponent', () => { | ||
let component: TaskSubmissionCardComponent; | ||
let fixture: ComponentFixture<TaskSubmissionCardComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ TaskSubmissionCardComponent ] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(TaskSubmissionCardComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |