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
Showing
86 changed files
with
3,135 additions
and
402 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
123 changes: 0 additions & 123 deletions
123
src/main/webapp-backup/dev/js/common/instructorFeedbacks.js
This file was deleted.
Oops, something went wrong.
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
7 changes: 7 additions & 0 deletions
7
src/web/app/components/copy-session-modal/copy-session-modal-model.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,7 @@ | ||
/** | ||
* Result of {@link CopySessionModalComponent} | ||
*/ | ||
export interface CopySessionModalResult { | ||
newFeedbackSessionName: string; | ||
copyToCourseId: string; | ||
} |
36 changes: 36 additions & 0 deletions
36
src/web/app/components/copy-session-modal/copy-session-modal.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,36 @@ | ||
<div class="modal-header"> | ||
<h5 class="modal-title"> | ||
<div>Copy this feedback session to other courses</div> | ||
<small class="text-secondary">(Select the course(s) you want to copy this feedback session to)</small> | ||
</h5> | ||
<button type="button" class="close" (click)="activeModal.dismiss()"> | ||
<i class="fas fa-times"></i> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<div class="form-group"> | ||
<label><b>Name for copied session</b></label> | ||
<input type="text" class="form-control" [(ngModel)]="newFeedbackSessionName" maxlength="38"> | ||
<span>{{ 38 - newFeedbackSessionName.length }} characters left</span> | ||
</div> | ||
<div class="form-check" *ngFor="let course of courseCandidates"> | ||
<input type="radio" name="copySessionChooseCourse" class="form-check-input" | ||
[(ngModel)]="copyToCourseId" [value]="course.courseId"> | ||
<label class="form-check-label"> | ||
[<span [ngClass]="{ 'text-danger': sessionToCopyCourseId === course.courseId }">{{ course.courseId }}</span>] | ||
: {{ course.courseName }} | ||
</label> | ||
<div *ngIf="sessionToCopyCourseId === course.courseId" class="text-danger"> | ||
{{ "{Session currently in this course}" }} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-light" (click)="activeModal.dismiss()">Cancel</button> | ||
<button type="button" class="btn btn-primary" (click)="copy()" | ||
[disabled]="!newFeedbackSessionName || !copyToCourseId">Copy</button> | ||
</div> |
Empty file.
33 changes: 33 additions & 0 deletions
33
src/web/app/components/copy-session-modal/copy-session-modal.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,33 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { FormsModule } from '@angular/forms'; | ||
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; | ||
import { CopySessionModalComponent } from './copy-session-modal.component'; | ||
|
||
describe('CopySessionModalComponent', () => { | ||
let component: CopySessionModalComponent; | ||
let fixture: ComponentFixture<CopySessionModalComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [CopySessionModalComponent], | ||
imports: [ | ||
FormsModule, | ||
], | ||
providers: [ | ||
NgbActiveModal, | ||
], | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(CopySessionModalComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.