forked from ls1intum/Artemis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to work on complaints (ls1intum#1307)
- Loading branch information
Showing
10 changed files
with
105 additions
and
49 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
19 changes: 19 additions & 0 deletions
19
src/main/java/de/tum/in/www1/artemis/web/rest/dto/TextAssessmentUpdateDTO.java
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,19 @@ | ||
package de.tum.in.www1.artemis.web.rest.dto; | ||
|
||
import java.util.List; | ||
|
||
import de.tum.in.www1.artemis.domain.AssessmentUpdate; | ||
import de.tum.in.www1.artemis.domain.TextBlock; | ||
|
||
public class TextAssessmentUpdateDTO extends AssessmentUpdate { | ||
|
||
private List<TextBlock> textBlocks; | ||
|
||
public List<TextBlock> getTextBlocks() { | ||
return textBlocks; | ||
} | ||
|
||
public void setTextBlocks(List<TextBlock> textBlocks) { | ||
this.textBlocks = textBlocks; | ||
} | ||
} |
58 changes: 28 additions & 30 deletions
58
src/main/webapp/app/assessment/assessment-layout/assessment-layout.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,33 +1,31 @@ | ||
<div class="assessment-container"> | ||
<jhi-assessment-header | ||
[hideBackButton]="hideBackButton" | ||
(navigateBack)="navigateBack.emit()" | ||
[isLoading]="isLoading" | ||
[busy]="busy" | ||
[isAssessor]="isAssessor" | ||
[isAtLeastInstructor]="isAtLeastInstructor" | ||
[canOverride]="canOverride" | ||
[assessmentsAreValid]="assessmentsAreValid" | ||
[result]="result" | ||
(save)="save.emit()" | ||
(submit)="submit.emit()" | ||
(cancel)="cancel.emit()" | ||
(nextSubmission)="nextSubmission.emit()" | ||
[hasConflict]="conflicts && conflicts.length >= 0" | ||
(resolveConflict)="resolveConflict.emit()" | ||
[hasComplaint]="!!complaint" | ||
></jhi-assessment-header> | ||
<jhi-assessment-header | ||
[hideBackButton]="hideBackButton" | ||
(navigateBack)="navigateBack.emit()" | ||
[isLoading]="isLoading" | ||
[busy]="busy" | ||
[isAssessor]="isAssessor" | ||
[isAtLeastInstructor]="isAtLeastInstructor" | ||
[canOverride]="canOverride" | ||
[assessmentsAreValid]="assessmentsAreValid" | ||
[result]="result" | ||
(save)="save.emit()" | ||
(submit)="submit.emit()" | ||
(cancel)="cancel.emit()" | ||
(nextSubmission)="nextSubmission.emit()" | ||
[hasConflict]="conflicts && conflicts.length >= 0" | ||
(resolveConflict)="resolveConflict.emit()" | ||
[hasComplaint]="!!complaint" | ||
></jhi-assessment-header> | ||
|
||
<jhi-assessment-complaint-alert [complaint]="complaint"></jhi-assessment-complaint-alert> | ||
<jhi-assessment-complaint-alert [complaint]="complaint"></jhi-assessment-complaint-alert> | ||
|
||
<ng-content></ng-content> | ||
</div> | ||
<ng-content></ng-content> | ||
|
||
<div class="mt-3" *ngIf="complaint"> | ||
<jhi-complaints-for-tutor-form | ||
[complaint]="complaint" | ||
[isAllowedToRespond]="complaint.complaintType === ComplaintType.COMPLAINT ? !isAssessor : isAssessor" | ||
(updateAssessmentAfterComplaint)="updateAssessmentAfterComplaint.emit($event)" | ||
> | ||
</jhi-complaints-for-tutor-form> | ||
</div> | ||
<jhi-complaints-for-tutor-form | ||
class="row mt-4" | ||
*ngIf="complaint" | ||
[zeroIndent]="false" | ||
[complaint]="complaint" | ||
[isAllowedToRespond]="complaint.complaintType === ComplaintType.COMPLAINT ? !isAssessor : isAssessor" | ||
(updateAssessmentAfterComplaint)="updateAssessmentAfterComplaint.emit($event)" | ||
></jhi-complaints-for-tutor-form> |
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
2 changes: 1 addition & 1 deletion
2
src/main/webapp/app/complaints/complaints-for-tutor/complaints-for-tutor.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
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