@@ -70,7 +70,7 @@ <h4 class="form-group" jhiTranslate="artemisApp.course.form.sections.general"></
70
70
</ div >
71
71
< div class ="form-group ">
72
72
< label class ="form-control-label " jhiTranslate ="artemisApp.course.description " for ="field_description "> </ label >
73
- < textarea id ="field_description " class ="form-control " rows ="2 " formControlName ="description " [(ngModel)] =" course.description " > </ textarea >
73
+ < textarea id ="field_description " class ="form-control " rows ="2 " formControlName ="description "> </ textarea >
74
74
</ div >
75
75
@if (isAdmin) {
76
76
< div class ="form-group ">
89
89
</ div >
90
90
}
91
91
</ div >
92
- < button id ="addOrganizationButton " type ="button " class ="btn btn-outline-primary " (click) ="openOrganizationsModal() "> Add</ button >
92
+ < button
93
+ id ="addOrganizationButton "
94
+ type ="button "
95
+ class ="btn btn-outline-primary "
96
+ (click) ="openOrganizationsModal() "
97
+ jhiTranslate ="entity.action.add "
98
+ > </ button >
93
99
</ div >
94
100
}
95
101
< div class ="row g-2 ">
98
104
id ="field_startDate "
99
105
labelName ="{{ 'artemisApp.course.startDate' | artemisTranslate }} "
100
106
formControlName ="startDate "
101
- [(ngModel)] ="course.startDate "
102
107
[error] ="!isValidDate "
103
108
/>
104
109
@if (!isValidDate) {
110
115
id ="field_endDate "
111
116
labelName ="{{ 'artemisApp.course.endDate' | artemisTranslate }} "
112
117
formControlName ="endDate "
113
- [(ngModel)] ="course.endDate "
114
118
[error] ="!isValidDate "
115
119
/>
116
120
@if (!isValidDate) {
@@ -165,12 +169,12 @@ <h5>
165
169
< hr />
166
170
< h4 class ="form-group " jhiTranslate ="artemisApp.course.form.sections.exercises "> </ h4 >
167
171
< div class ="row ">
168
- < div class ="form-group col-md ">
172
+ < div class ="form-group col-xl mb-2 mb-xl-3 ">
169
173
< label class ="form-control-label " for ="field_maxPoints " jhiTranslate ="artemisApp.course.maxPoints.title "> </ label >
170
174
< fa-icon [icon] ="faQuestionCircle " class ="text-secondary " ngbTooltip ="{{ 'artemisApp.course.maxPoints.info' | artemisTranslate }} " />
171
175
< input type ="number " class ="form-control " name ="maxPoints " id ="field_maxPoints " min ="1 " formControlName ="maxPoints " />
172
176
</ div >
173
- < div class ="form-group col-md ">
177
+ < div class ="form-group col-xl ">
174
178
< label class ="form-control-label " for ="field_accuracyOfScores " jhiTranslate ="artemisApp.course.accuracyOfScores.title "> </ label >
175
179
< fa-icon [icon] ="faQuestionCircle " class ="text-secondary " ngbTooltip ="{{ 'artemisApp.course.accuracyOfScores.info' | artemisTranslate }} " />
176
180
< input required type ="number " class ="form-control " name ="accuracyOfScores " id ="field_accuracyOfScores " min ="0 " max ="5 " formControlName ="accuracyOfScores " />
@@ -196,9 +200,7 @@ <h4 class="form-group" jhiTranslate="artemisApp.course.form.sections.exercises">
196
200
id ="field_customizeGroupNamesEnabled "
197
201
formControlName ="customizeGroupNames "
198
202
/>
199
- < label class ="form-control-label " jhiTranslate ="artemisApp.course.customizeGroupNames.title " for ="field_customizeGroupNamesEnabled "
200
- > Customize Group Names</ label
201
- >
203
+ < label class ="form-control-label " jhiTranslate ="artemisApp.course.customizeGroupNames.title " for ="field_customizeGroupNamesEnabled "> </ label >
202
204
< fa-icon [icon] ="faExclamationTriangle " class ="text-secondary " ngbTooltip ="{{ 'artemisApp.course.customizeGroupNames.description' | artemisTranslate }} " />
203
205
</ div >
204
206
@if (customizeGroupNames) {
@@ -208,9 +210,7 @@ <h4 class="form-group" jhiTranslate="artemisApp.course.form.sections.exercises">
208
210
< input type ="text " class ="form-control " name ="studentGroupName " id ="field_studentGroupName " formControlName ="studentGroupName " />
209
211
</ div >
210
212
< div class ="nested-form-group ">
211
- < label class ="form-control-label " jhiTranslate ="artemisApp.course.teachingAssistantGroupName " for ="field_teachingAssistantGroupName "
212
- > Teaching Assistant Group Name</ label
213
- >
213
+ < label class ="form-control-label " jhiTranslate ="artemisApp.course.teachingAssistantGroupName " for ="field_teachingAssistantGroupName "> </ label >
214
214
< input
215
215
type ="text "
216
216
class ="form-control "
@@ -263,7 +263,7 @@ <h4 class="form-group" jhiTranslate="artemisApp.course.form.sections.exercises">
263
263
< input required type ="number " class ="form-control " name ="maxComplaintTimeDays " id ="field_maxComplaintTimeDays " formControlName ="maxComplaintTimeDays " />
264
264
</ div >
265
265
< div class ="row nested-form-group last ">
266
- < div class ="col-md ">
266
+ < div class ="col-xl mb-2 mb-xl-3 ">
267
267
< label class ="form-control-label " jhiTranslate ="artemisApp.course.maxComplaintTextLimit.title " for ="field_maxComplaintTextLimit "> </ label >
268
268
< fa-icon
269
269
[icon] ="faQuestionCircle "
@@ -279,7 +279,7 @@ <h4 class="form-group" jhiTranslate="artemisApp.course.form.sections.exercises">
279
279
formControlName ="maxComplaintTextLimit "
280
280
/>
281
281
</ div >
282
- < div class ="col-md ">
282
+ < div class ="col-xl ">
283
283
< label
284
284
class ="form-control-label "
285
285
jhiTranslate ="artemisApp.course.maxComplaintResponseTextLimit.title "
@@ -312,14 +312,12 @@ <h4 class="form-group" jhiTranslate="artemisApp.course.form.sections.exercises">
312
312
(change) ="changeRequestMoreFeedbackEnabled() "
313
313
formControlName ="requestMoreFeedbackEnabled "
314
314
/>
315
- < label class ="form-control-label " jhiTranslate ="artemisApp.course.requestMoreFeedbackEnabled.title " for ="field_maxRequestMoreFeedbackSettingEnabled "
316
- > Enable More Feedback Requests</ label
317
- >
315
+ < label class ="form-control-label " jhiTranslate ="artemisApp.course.requestMoreFeedbackEnabled.title " for ="field_maxRequestMoreFeedbackSettingEnabled "> </ label >
318
316
< fa-icon [icon] ="faQuestionCircle " class ="text-secondary " ngbTooltip ="{{ 'artemisApp.course.requestMoreFeedbackEnabled.description' | artemisTranslate }} " />
319
317
</ div >
320
318
@if (requestMoreFeedbackEnabled) {
321
319
< div class ="nested-form-group last ">
322
- < label class ="form-control-label " jhiTranslate ="artemisApp.course.maxRequestMoreFeedbackTimeDays.title " for ="field_maxComplaintTimeDays "> </ label >
320
+ < label class ="form-control-label " jhiTranslate ="artemisApp.course.maxRequestMoreFeedbackTimeDays.title " for ="field_maxRequestMoreFeedbackTimeDays "> </ label >
323
321
< fa-icon
324
322
[icon] ="faQuestionCircle "
325
323
class ="text-secondary "
@@ -359,20 +357,13 @@ <h4 class="form-group" jhiTranslate="artemisApp.course.form.sections.additionalF
359
357
< jhi-feature-overlay [enabled] ="atlasEnabled ">
360
358
< div class ="form-group " [jhiFeatureToggleHide] ="FeatureToggle.LearningPaths ">
361
359
< div class ="form-check ">
362
- < input
363
- type ="checkbox "
364
- class ="form-check-input "
365
- name ="learningPathsEnabled "
366
- id ="field_learningPathsEnabled "
367
- formControlName ="learningPathsEnabled "
368
- [(ngModel)] ="course.learningPathsEnabled "
369
- />
360
+ < input type ="checkbox " class ="form-check-input " name ="learningPathsEnabled " id ="field_learningPathsEnabled " formControlName ="learningPathsEnabled " />
370
361
< label class ="form-control-label " jhiTranslate ="artemisApp.course.learningPaths.label " for ="field_learningPathsEnabled "> </ label >
371
362
< fa-icon [icon] ="faQuestionCircle " class ="text-secondary " ngbTooltip ="{{ 'artemisApp.course.learningPaths.tooltip' | artemisTranslate }} " />
372
363
</ div >
373
364
</ div >
374
365
</ jhi-feature-overlay >
375
- @if (this. isAdmin) {
366
+ @if (isAdmin) {
376
367
< div class ="form-group " [jhiFeatureToggleHide] ="FeatureToggle.StudentCourseAnalyticsDashboard ">
377
368
< div class ="form-check ">
378
369
< input
@@ -381,22 +372,21 @@ <h4 class="form-group" jhiTranslate="artemisApp.course.form.sections.additionalF
381
372
name ="studentCourseAnalyticsDashboardEnabled "
382
373
id ="field_studentCourseAnalyticsDashboardEnabled "
383
374
formControlName ="studentCourseAnalyticsDashboardEnabled "
384
- [(ngModel)] ="course.studentCourseAnalyticsDashboardEnabled "
385
375
/>
386
376
< label class ="form-control-label " jhiTranslate ="artemisApp.course.dashboard.label " for ="field_studentCourseAnalyticsDashboardEnabled "> </ label >
387
377
< fa-icon [icon] ="faQuestionCircle " class ="text-secondary " ngbTooltip ="{{ 'artemisApp.course.dashboard.tooltip' | artemisTranslate }} " />
388
378
</ div >
389
379
</ div >
390
380
}
391
- @if (this. isAdmin && this. isAthenaEnabled) {
381
+ @if (isAdmin && isAthenaEnabled) {
392
382
< div class ="form-group form-check ">
393
383
< input
394
384
type ="checkbox "
395
385
class ="form-check-input "
396
386
name ="restrictedAthenaModulesEnabled "
397
387
id ="field_restrictedAthenaModulesEnabled "
398
388
[checked] ="course.restrictedAthenaModulesAccess "
399
- (change) ="this. changeRestrictedAthenaModulesEnabled() "
389
+ (change) ="changeRestrictedAthenaModulesEnabled() "
400
390
/>
401
391
< label class ="form-control-label " jhiTranslate ="artemisApp.course.restrictedAthenaModulesAccess.label " for ="field_restrictedAthenaModulesEnabled "> </ label >
402
392
< fa-icon [icon] ="faQuestionCircle " class ="text-secondary " ngbTooltip ="{{ 'artemisApp.course.restrictedAthenaModulesAccess.tooltip' | artemisTranslate }} " />
@@ -445,7 +435,7 @@ <h4 class="form-group" jhiTranslate="artemisApp.course.form.sections.additionalF
445
435
<!-- Section: Enrollment -->
446
436
< hr />
447
437
< h4 jhiTranslate ="artemisApp.course.form.sections.enrollment "> </ h4 >
448
- @if (ltiEnabled && !this. course.enrollmentEnabled) {
438
+ @if (ltiEnabled && !course.enrollmentEnabled) {
449
439
< div class ="form-check ">
450
440
< input
451
441
type ="checkbox "
@@ -454,22 +444,22 @@ <h4 jhiTranslate="artemisApp.course.form.sections.enrollment"></h4>
454
444
id ="field_onlineCourse "
455
445
formControlName ="onlineCourse "
456
446
[checked] ="course.onlineCourse "
457
- (change) ="this. changeOnlineCourse() "
447
+ (change) ="changeOnlineCourse() "
458
448
/>
459
449
< label class ="form-control-label " jhiTranslate ="artemisApp.course.onlineCourse.title " for ="field_onlineCourse "> </ label >
460
450
< fa-icon [icon] ="faQuestionCircle " class ="text-secondary " ngbTooltip ="{{ 'artemisApp.course.onlineCourse.description' | artemisTranslate }} " />
461
451
</ div >
462
452
}
463
453
<!-- enrollment -->
464
- @if (!this. course.onlineCourse) {
454
+ @if (!course.onlineCourse) {
465
455
< div class ="nested-form-group-head form-check ">
466
456
< input
467
457
type ="checkbox "
468
458
class ="form-check-input "
469
459
name ="enrollmentEnabled "
470
460
id ="field_enrollmentEnabled "
471
461
[checked] ="course.enrollmentEnabled "
472
- (change) ="this. changeEnrollmentEnabled() "
462
+ (change) ="changeEnrollmentEnabled() "
473
463
/>
474
464
< label class ="form-control-label " jhiTranslate ="artemisApp.course.enrollmentEnabled.title " for ="field_enrollmentEnabled "> </ label >
475
465
< fa-icon [icon] ="faQuestionCircle " class ="text-secondary " ngbTooltip ="{{ 'artemisApp.course.enrollmentEnabled.description' | artemisTranslate }} " />
@@ -483,7 +473,6 @@ <h4 jhiTranslate="artemisApp.course.form.sections.enrollment"></h4>
483
473
id ="field_enrollmentStartDate "
484
474
labelName ="{{ 'artemisApp.course.enrollmentStartDate' | artemisTranslate }} "
485
475
formControlName ="enrollmentStartDate "
486
- [(ngModel)] ="course.enrollmentStartDate "
487
476
[error] ="!isValidEnrollmentPeriod "
488
477
/>
489
478
@if (!isValidEnrollmentPeriod) {
@@ -495,7 +484,6 @@ <h4 jhiTranslate="artemisApp.course.form.sections.enrollment"></h4>
495
484
id ="field_enrollmentEndDate "
496
485
labelName ="{{ 'artemisApp.course.enrollmentEndDate' | artemisTranslate }} "
497
486
formControlName ="enrollmentEndDate "
498
- [(ngModel)] ="course.enrollmentEndDate "
499
487
[error] ="!isValidEnrollmentPeriod "
500
488
/>
501
489
@if (!isValidEnrollmentPeriod) {
@@ -504,9 +492,7 @@ <h4 jhiTranslate="artemisApp.course.form.sections.enrollment"></h4>
504
492
</ div >
505
493
</ div >
506
494
< div class ="nested-form-group last " id ="field_enrollmentConfirmationMessage ">
507
- < label class ="form-control-label " jhiTranslate ="artemisApp.course.enrollmentConfirmationMessage " for ="field_enrollmentConfirmationMessage "
508
- > Enrollment Confirmation Message</ label
509
- >
495
+ < label class ="form-control-label " jhiTranslate ="artemisApp.course.enrollmentConfirmationMessage " for ="field_enrollmentConfirmationMessage "> </ label >
510
496
< jhi-markdown-editor-monaco
511
497
class ="markdown-editor "
512
498
[(markdown)] ="course.enrollmentConfirmationMessage "
@@ -522,7 +508,7 @@ <h4 jhiTranslate="artemisApp.course.form.sections.enrollment"></h4>
522
508
name ="unenrollmentEnabled "
523
509
id ="field_unenrollmentEnabled "
524
510
[checked] ="course.unenrollmentEnabled "
525
- (change) ="this. changeUnenrollmentEnabled() "
511
+ (change) ="changeUnenrollmentEnabled() "
526
512
/>
527
513
< label class ="form-control-label " jhiTranslate ="artemisApp.course.unenrollmentEnabled.title " for ="field_unenrollmentEnabled "> </ label >
528
514
< fa-icon
@@ -537,7 +523,6 @@ <h4 jhiTranslate="artemisApp.course.form.sections.enrollment"></h4>
537
523
id ="field_unenrollmentEndDate "
538
524
labelName ="{{ 'artemisApp.course.unenrollmentEndDate' | artemisTranslate }} "
539
525
formControlName ="unenrollmentEndDate "
540
- [(ngModel)] ="course.unenrollmentEndDate "
541
526
[error] ="!isValidUnenrollmentEndDate "
542
527
/>
543
528
@if (!isValidUnenrollmentEndDate) {
0 commit comments