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.
Merge pull request sakaiproject#1709 from steveswinsburg/bug/1369_cou…
…rse_grade_override Bug/1369 course grade override
- Loading branch information
Showing
16 changed files
with
560 additions
and
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
import lombok.Getter; | ||
|
||
/** | ||
* DTO for the grade log | ||
* DTO for grade log events. | ||
* | ||
* @author Steve Swinsburg ([email protected]) | ||
* | ||
|
48 changes: 48 additions & 0 deletions
48
gradebookng/tool/src/java/org/sakaiproject/gradebookng/tool/component/GbFeedbackPanel.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) Orchestral Developments Ltd and the Orion Health group of companies (2001 - 2016). | ||
* | ||
* This document is copyright. Except for the purpose of fair reviewing, no part | ||
* of this publication may be reproduced or transmitted in any form or by any | ||
* means, electronic or mechanical, including photocopying, recording, or any | ||
* information storage and retrieval system, without permission in writing from | ||
* the publisher. Infringers of copyright render themselves liable for | ||
* prosecution. | ||
*/ | ||
package org.sakaiproject.gradebookng.tool.component; | ||
|
||
import org.apache.wicket.AttributeModifier; | ||
import org.apache.wicket.Component; | ||
import org.apache.wicket.feedback.FeedbackMessage; | ||
import org.apache.wicket.markup.html.panel.FeedbackPanel; | ||
|
||
/** | ||
* Feedback panel used and reused by GradebookNG so that the messages are styled consistently. Markup ID is automatically output. | ||
*/ | ||
public class GbFeedbackPanel extends FeedbackPanel { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public GbFeedbackPanel(final String id) { | ||
super(id); | ||
|
||
setOutputMarkupId(true); | ||
} | ||
|
||
@Override | ||
protected Component newMessageDisplayComponent(final String id, final FeedbackMessage message) { | ||
final Component newMessageDisplayComponent = super.newMessageDisplayComponent(id, message); | ||
|
||
if (message.getLevel() == FeedbackMessage.ERROR || | ||
message.getLevel() == FeedbackMessage.DEBUG || | ||
message.getLevel() == FeedbackMessage.FATAL || | ||
message.getLevel() == FeedbackMessage.WARNING) { | ||
add(AttributeModifier.replace("class", "messageError")); | ||
add(AttributeModifier.append("class", "feedback")); | ||
} else if (message.getLevel() == FeedbackMessage.INFO) { | ||
add(AttributeModifier.replace("class", "messageSuccess")); | ||
add(AttributeModifier.append("class", "feedback")); | ||
} | ||
|
||
return newMessageDisplayComponent; | ||
} | ||
} |
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.