forked from doubtfire-lms/doubtfire-web
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: show consecutive scorm comments together
- Loading branch information
Showing
5 changed files
with
44 additions
and
32 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
54 changes: 31 additions & 23 deletions
54
src/app/tasks/task-comments-viewer/scorm-comment/scorm-comment.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,24 +1,32 @@ | ||
<div class="flex-row justify-evenly items-center"> | ||
<div class="flex-column justify-around items-center"> | ||
<div> | ||
<hr class="hr-text" data-content="Knowledge Check Summary" /> | ||
<div class="markdown-to-html my-1.5" [innerHTML]="comment.text"></div> | ||
<div class="flex-row"> | ||
<button | ||
mat-button | ||
(click)="reviewScormTest()" | ||
[hidden]="!user.isStaff && !task.definition.scormAllowReview" | ||
> | ||
Review test | ||
</button> | ||
<button mat-button (click)="passScormAttempt()" [hidden]="!canOverridePass"> | ||
Pass attempt | ||
</button> | ||
<button mat-button (click)="deleteScormAttempt()" [hidden]="!user.isStaff"> | ||
Delete attempt | ||
</button> | ||
</div> | ||
<hr class="hr-fade" /> | ||
</div> | ||
</div> | ||
<hr class="hr-text" data-content="Knowledge Check Summary" [hidden]="!comment.firstInSeries" /> | ||
<div class="flex flex-row items-center"> | ||
<button | ||
mat-button | ||
class="mr-4 h-12 flex-shrink-0" | ||
(click)="reviewScormTest()" | ||
[hidden]="!user.isStaff && !task.definition.scormAllowReview" | ||
> | ||
Review | ||
</button> | ||
<div class="markdown-to-html flex-grow" [innerHTML]="comment.text"></div> | ||
<button | ||
#menuState="matMenuTrigger" | ||
mat-icon-button | ||
class="p-0 h-12 flex-shrink-0" | ||
[matMenuTriggerFor]="menu" | ||
[hidden]="!user.isStaff" | ||
> | ||
<mat-icon>more_vert</mat-icon> | ||
</button> | ||
<mat-menu #menu="matMenu"> | ||
<button | ||
mat-menu-item | ||
(click)="passScormAttempt()" | ||
[hidden]="this.comment.testAttempt.successStatus" | ||
> | ||
Pass attempt | ||
</button> | ||
<button mat-menu-item (click)="deleteScormAttempt()">Delete attempt</button> | ||
</mat-menu> | ||
</div> | ||
<hr class="hr-fade" [hidden]="!comment.lastInScormSeries" /> |
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