Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add conditional tooltip for edit button in exam exercise row #9917

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,16 @@
[ngbTooltip]="'artemisApp.quizExercise.edit.testRunSubmissionsExist' | artemisTranslate"
/>
}
<a
[class.disabled]="hasExamStarted()"
[routerLink]="['/course-management', course.id, 'exams', exam.id, 'exercise-groups', exerciseGroupId, exercise.type + '-exercises', exercise.id, 'edit']"
class="btn btn-warning btn-sm me-1"
>
<fa-icon [icon]="faWrench" />
<span class="d-none d-md-inline" jhiTranslate="entity.action.edit"></span>
</a>
<span [ngbTooltip]="hasExamStarted() ? ('artemisApp.quizExercise.edit.examStartedNoEdit' | artemisTranslate) : undefined">
<a
[class.disabled]="hasExamStarted()"
[routerLink]="['/course-management', course.id, 'exams', exam.id, 'exercise-groups', exerciseGroupId, exercise.type + '-exercises', exercise.id, 'edit']"
class="btn btn-warning btn-sm me-1"
>
<fa-icon [icon]="faWrench" />
<span class="d-none d-md-inline" jhiTranslate="entity.action.edit"></span>
</a>
</span>
</div>
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/webapp/i18n/de/quizExercise.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"saving": "Speichern...",
"saved": "Gespeichert!",
"quizHasStarted": "Das Quiz hat angefangen. Es sind keine Änderungen mehr möglich.<br><br>Nachträgliche Korrekturen können vorgenommen werden, sobald das Quiz beendet wurde. Gehe zurück zur Übersicht und klicke auf \"Re-evaluate\", sobald das Quiz beendet wurde. (\"Re-evaluate\" ist nicht für TAs verfügbar.)",
"testRunSubmissionsExist": "Dieses Quiz enthält Abgaben für einen der Testläufe der Klausur. Lösche den Testlauf, um die Antwortoptionen zu bearbeiten."
"testRunSubmissionsExist": "Dieses Quiz enthält Abgaben für einen der Testläufe der Klausur. Lösche den Testlauf, um die Antwortoptionen zu bearbeiten.",
"examStartedNoEdit": "Die Prüfung hat begonnen. Das Quiz kann für die Dauer der Prüfung nicht bearbeitet werden."
},
"saveError": "Beim Speichern ist ein Fehler ist aufgetreten. Bitte überprüfe deine Eingabe und versuche es später noch einmal.",
"export": {
Expand Down
3 changes: 2 additions & 1 deletion src/main/webapp/i18n/en/quizExercise.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"saving": "Saving...",
"saved": "Saved!",
"quizHasStarted": "The quiz has started. No more changes allowed.<br><br>Retroactive corrections can be made once the quiz has ended. To do so, go back to the overview and click on \"Re-evaluate\" once the quiz has ended. (\"Re-evaluate\" is not available to TAs.)",
"testRunSubmissionsExist": "This quiz contains submissions in one of the test runs for this exam. Delete the test run to edit the answer options."
"testRunSubmissionsExist": "This quiz contains submissions in one of the test runs for this exam. Delete the test run to edit the answer options.",
"examStartedNoEdit": "The exam has started. The quiz cannot be edited for the duration of the exam."
},
"saveError": "An error occurred while saving. Please review your input data and try again later.",
"export": {
Expand Down
Loading