forked from sakaiproject/sakai
-
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.
SAK-34013 add course grade chart to course grade dropdown (sakaiproje…
…ct#5396) * SAK-34013 add chart as a modal window to the course grade dropdown
- Loading branch information
1 parent
0044d48
commit aac97dd
Showing
14 changed files
with
200 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
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
48 changes: 48 additions & 0 deletions
48
...l/src/java/org/sakaiproject/gradebookng/tool/actions/ViewCourseGradeStatisticsAction.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,48 @@ | ||
/** | ||
* Copyright (c) 2003-2018 The Apereo Foundation | ||
* | ||
* Licensed under the Educational Community License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://opensource.org/licenses/ecl2 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.sakaiproject.gradebookng.tool.actions; | ||
|
||
import java.io.Serializable; | ||
|
||
import org.apache.wicket.ajax.AjaxRequestTarget; | ||
import org.apache.wicket.model.Model; | ||
import org.sakaiproject.gradebookng.tool.model.GbModalWindow; | ||
import org.sakaiproject.gradebookng.tool.pages.GradebookPage; | ||
import org.sakaiproject.gradebookng.tool.panels.CourseGradeStatisticsPanel; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
|
||
public class ViewCourseGradeStatisticsAction extends InjectableAction implements Serializable { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public ViewCourseGradeStatisticsAction() { | ||
} | ||
|
||
@Override | ||
public ActionResponse handleEvent(final JsonNode params, final AjaxRequestTarget target) { | ||
|
||
final String siteId = params.get("siteId").asText(); | ||
|
||
final GradebookPage gradebookPage = (GradebookPage) target.getPage(); | ||
final GbModalWindow window = gradebookPage.getGradeLogWindow(); | ||
|
||
window.setContent(new CourseGradeStatisticsPanel(window.getContentId(), Model.of(siteId), window)); | ||
window.show(target); | ||
|
||
return new EmptyOkResponse(); | ||
} | ||
} |
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
File renamed without changes.
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
14 changes: 14 additions & 0 deletions
14
...ng/tool/src/java/org/sakaiproject/gradebookng/tool/panels/CourseGradeStatisticsPanel.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,14 @@ | ||
<!DOCTYPE html> | ||
<html xmlns:wicket="http://wicket.apache.org"> | ||
|
||
<body> | ||
<wicket:panel> | ||
|
||
<canvas id="gradingSchemaChart"></canvas> | ||
|
||
<div> | ||
<input type="button" class="button_color" wicket:id="done" wicket:message="value:button.done" /> | ||
</div> | ||
</wicket:panel> | ||
</body> | ||
</html> |
Oops, something went wrong.