-
Notifications
You must be signed in to change notification settings - Fork 2
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
68fd1f9
commit 828551f
Showing
17 changed files
with
178 additions
and
28 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
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
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
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
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
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
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,58 @@ | ||
/* | ||
* Copyright (c) 2018 Exam Consortium | ||
* | ||
* Licensed under the EUPL, Version 1.1 or - as soon they will be approved by the European Commission - subsequent | ||
* versions of the EUPL (the "Licence"); | ||
* You may not use this work except in compliance with the Licence. | ||
* You may obtain a copy of the Licence at: | ||
* | ||
* https://joinup.ec.europa.eu/software/page/eupl/licence-eupl | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed | ||
* on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the Licence for the specific language governing permissions and limitations under the Licence. | ||
* | ||
*/ | ||
import { Component, Input } from '@angular/core'; | ||
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; | ||
import { ExaminationQuestion } from '../../examination/examination.model'; | ||
|
||
@Component({ | ||
selector: 'xm-publication-delete-dialog', | ||
template: `<div id="sitnet-dialog" role="dialog" aria-modal="true"> | ||
<div class="student-message-dialog-wrapper-padding" *ngIf="runme()"> | ||
<div class="student-enroll-dialog-wrap"> | ||
<div class="student-enroll-title">{{ 'sitnet_preview_question' | translate }}</div> | ||
</div> | ||
<xm-examination-question | ||
*ngIf="question" | ||
[question]="question" | ||
[isPreview]="true" | ||
[isCollaborative]="false" | ||
></xm-examination-question> | ||
<div class="modal-footer"> | ||
<div class="student-message-dialog-button-save float-end"> | ||
<button class="btn btn-sm btn-primary" (click)="activeModal.close()" autofocus> | ||
{{ 'sitnet_save' | translate }} | ||
</button> | ||
</div> | ||
<div class="student-message-dialog-button-cancel"> | ||
<button class="btn btn-sm btn-danger" (click)="activeModal.dismiss()"> | ||
{{ 'sitnet_go_back' | translate }} | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> `, | ||
}) | ||
export class QuestionPreviewDialogComponent { | ||
@Input() question?: ExaminationQuestion; | ||
|
||
constructor(public activeModal: NgbActiveModal) {} | ||
runme = () => { | ||
console.log('test question:'); | ||
console.log(this.question); //TODO DELETEME | ||
console.log(this.question?.question.question); | ||
return true; | ||
}; | ||
} |
Oops, something went wrong.