Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* REST resource and service method for build plan cleanup * added button for build plan cleanup * started work on the build plan delete modal * solved error with no default controllerAs value; created translation files for instructor dashboard * created call to REST resource to delete build plans * changed how id is passed to GET request to get exercise; minor cleanup * added translations for inactive participation state * create REST request and service method to resume participation * changed order of ParticipationState elements * unified service calls to find initialized and inactive participations into one * added button to resume participation * added resource method for resuming participation * removed explicit return of internal server error in ParticipationResource * added alert * removed plain javascript alert on build plans cleanup * removed plain javascript alert * request for changes addressed * fixed error with logging message not in proper place
- Loading branch information
Showing
19 changed files
with
271 additions
and
21 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
30 changes: 30 additions & 0 deletions
30
...bapp/app/instructor-dashboard/instructor-dashboard-buildplans-delete-dialog.controller.js
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,30 @@ | ||
(function () { | ||
'use strict'; | ||
|
||
angular | ||
.module('artemisApp') | ||
.controller('BuildPlansDeleteController', BuildPlansDeleteController); | ||
|
||
BuildPlansDeleteController.$inject = ['$uibModalInstance', 'entity', 'Exercise']; | ||
|
||
function BuildPlansDeleteController($uibModalInstance, entity, Exercise) { | ||
var vm = this; | ||
|
||
vm.exercise = entity; | ||
vm.clear = clear; | ||
vm.confirmDelete = confirmDelete; | ||
|
||
function clear () { | ||
$uibModalInstance.dismiss('cancel'); | ||
} | ||
|
||
function confirmDelete(id) { | ||
Exercise.deleteBuildPlans({ | ||
id: id | ||
}, | ||
function () { | ||
$uibModalInstance.close(true); | ||
}); | ||
} | ||
} | ||
})(); |
22 changes: 22 additions & 0 deletions
22
src/main/webapp/app/instructor-dashboard/instructor-dashboard-buildplans-delete-dialog.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<form name="deleteForm" ng-submit="$ctrl.confirmDelete($ctrl.exercise.id)"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" | ||
ng-click="$ctrl.clear()">×</button> | ||
<h4 class="modal-title" data-translate="entity.delete.title">Confirm delete operation</h4> | ||
</div> | ||
<div class="modal-body"> | ||
<jhi-alert-error></jhi-alert-error> | ||
<p data-translate="artemisApp.instructorDashboard.buildPlans.delete.question" | ||
translate-values="{exerciseTitle: '{{$ctrl.exercise.title}}', courseTitle: '{{$ctrl.exercise.course.title}}'}">CONFIRM_DELETE | ||
</p> | ||
<p></p> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-default" data-dismiss="modal" ng-click="$ctrl.clear()"> | ||
<span class="glyphicon glyphicon-ban-circle"></span> <span data-translate="entity.action.cancel">CANCEL</span> | ||
</button> | ||
<button class="btn btn-danger"> | ||
<span class="glyphicon glyphicon-remove-circle"></span> <span data-translate="entity.action.delete">DELETE</span> | ||
</button> | ||
</div> | ||
</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
8 changes: 6 additions & 2 deletions
8
src/main/webapp/app/instructor-dashboard/instructor-dashboard.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
Oops, something went wrong.