added new peer sub page in supervisor - project details and used the old SupervisorPeerStatsDetailsPanel with some modifications to display peer info for each project
This commit is contained in:
parent
dedfb3af46
commit
092d3635e8
src/main/java/se/su/dsv/scipro
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html
|
||||||
|
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
|
||||||
|
<body>
|
||||||
|
<wicket:extend>
|
||||||
|
<div class="span-24 last append-bottom">
|
||||||
|
<div wicket:id="peer"></div>
|
||||||
|
</div>
|
||||||
|
</wicket:extend>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,29 @@
|
|||||||
|
package se.su.dsv.scipro.peer.pages;
|
||||||
|
|
||||||
|
|
||||||
|
import org.apache.wicket.PageParameters;
|
||||||
|
import org.apache.wicket.markup.html.basic.Label;
|
||||||
|
|
||||||
|
import se.su.dsv.scipro.components.menuhighlighting.MenuHighlightSupervisorMyProjects;
|
||||||
|
import se.su.dsv.scipro.peer.panels.SupervisorPeerStatsDetailsPanel;
|
||||||
|
import se.su.dsv.scipro.supervisor.pages.AbstractSupervisorProjectDetailsPage;
|
||||||
|
|
||||||
|
|
||||||
|
public class SupervisorPeerDetailsPage extends AbstractSupervisorProjectDetailsPage implements MenuHighlightSupervisorMyProjects {
|
||||||
|
|
||||||
|
|
||||||
|
public SupervisorPeerDetailsPage(PageParameters pp) {
|
||||||
|
super(pp);
|
||||||
|
if(projectModel.getObject() == null)
|
||||||
|
add(new Label("peer","No project selected"));
|
||||||
|
else
|
||||||
|
add(new SupervisorPeerStatsDetailsPanel("peer", projectModel.getObject()));
|
||||||
|
|
||||||
|
//add(new SupervisorPeerStatsPanel("peerStatsPanel", loggedInUser));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -14,6 +14,7 @@ import se.su.dsv.scipro.commentthread.panels.CommentThreadPanel;
|
|||||||
import se.su.dsv.scipro.data.dao.interfaces.ProjectDao;
|
import se.su.dsv.scipro.data.dao.interfaces.ProjectDao;
|
||||||
import se.su.dsv.scipro.peer.data.dataobjects.PeerReview;
|
import se.su.dsv.scipro.peer.data.dataobjects.PeerReview;
|
||||||
import se.su.dsv.scipro.peer.pages.ProjectPeerStatsPage;
|
import se.su.dsv.scipro.peer.pages.ProjectPeerStatsPage;
|
||||||
|
import se.su.dsv.scipro.peer.pages.SupervisorPeerPortalPage;
|
||||||
import se.su.dsv.scipro.peer.pages.SupervisorPeerStatsPage;
|
import se.su.dsv.scipro.peer.pages.SupervisorPeerStatsPage;
|
||||||
|
|
||||||
public class PeerReviewPanel extends Panel {
|
public class PeerReviewPanel extends Panel {
|
||||||
@ -30,8 +31,8 @@ public class PeerReviewPanel extends Panel {
|
|||||||
|
|
||||||
BookmarkablePageLink<Void> backToMyRR;
|
BookmarkablePageLink<Void> backToMyRR;
|
||||||
if (isSupervisorView){
|
if (isSupervisorView){
|
||||||
backToMyRR = new BookmarkablePageLink<Void>("backToMy", SupervisorPeerStatsPage.class);
|
backToMyRR = new BookmarkablePageLink<Void>("backToMy", SupervisorPeerPortalPage.class);
|
||||||
backToMyRR.add(new Label("backLinkLabel", "Go back to My projects"));
|
backToMyRR.add(new Label("backLinkLabel", "Go back to Supervisor peer portal"));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
backToMyRR = new BookmarkablePageLink<Void>("backToMy", ProjectPeerStatsPage.class);
|
backToMyRR = new BookmarkablePageLink<Void>("backToMy", ProjectPeerStatsPage.class);
|
||||||
|
@ -5,10 +5,9 @@
|
|||||||
>
|
>
|
||||||
<body>
|
<body>
|
||||||
<wicket:panel>
|
<wicket:panel>
|
||||||
<div class="rounded-box">
|
<div>
|
||||||
<span class="box-title" wicket:id="titleLabel"></span>
|
<div class="span-10">
|
||||||
<div class="prepend-top">
|
<h5 class="peer-title">Reviews by authors in this project</h5>
|
||||||
<b>Reviews by authors in this project</b>
|
|
||||||
<div class="append-bottom" wicket:id="authorList">
|
<div class="append-bottom" wicket:id="authorList">
|
||||||
<b><span wicket:id="authorName"></span>:</b><br />
|
<b><span wicket:id="authorName"></span>:</b><br />
|
||||||
Completed:
|
Completed:
|
||||||
@ -29,8 +28,8 @@ In progress:
|
|||||||
Aborted: <span wicket:id="abortedReviews"></span>
|
Aborted: <span wicket:id="abortedReviews"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="prepend-top">
|
<div class="span-10">
|
||||||
<b>Requests by authors in this project:</b><br />
|
<h5 class="peer-title">Requests by authors in this project:</h5>
|
||||||
Completed:
|
Completed:
|
||||||
<div wicket:id="completedReceivedList">
|
<div wicket:id="completedReceivedList">
|
||||||
<a href="#" wicket:id="completedReviewLink">
|
<a href="#" wicket:id="completedReviewLink">
|
||||||
|
@ -31,16 +31,9 @@ public class SupervisorPeerStatsDetailsPanel extends Panel {
|
|||||||
|
|
||||||
public SupervisorPeerStatsDetailsPanel(final String id, final Project project) {
|
public SupervisorPeerStatsDetailsPanel(final String id, final Project project) {
|
||||||
super(id);
|
super(id);
|
||||||
addTitle(project);
|
|
||||||
addAuthorReviewStats(project);
|
addAuthorReviewStats(project);
|
||||||
addAuthorRequestStats(project);
|
addAuthorRequestStats(project);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addTitle(final Project project) {
|
|
||||||
String titleString = project.getTitle();
|
|
||||||
titleString += " ("+project.getProjectClass().getName()+")";
|
|
||||||
add(new Label("titleLabel", titleString));
|
|
||||||
}
|
|
||||||
|
|
||||||
private void addAuthorReviewStats(final Project project) {
|
private void addAuthorReviewStats(final Project project) {
|
||||||
final ListView<Student> authorList = new ListView<Student>("authorList", new ArrayList<Student>(project.getProjectParticipants())) {
|
final ListView<Student> authorList = new ListView<Student>("authorList", new ArrayList<Student>(project.getProjectParticipants())) {
|
||||||
|
@ -9,7 +9,9 @@ import org.apache.wicket.PageParameters;
|
|||||||
import se.su.dsv.scipro.activityplan.pages.SupervisorActivityPlanPage;
|
import se.su.dsv.scipro.activityplan.pages.SupervisorActivityPlanPage;
|
||||||
import se.su.dsv.scipro.components.AbstractMenuPanel;
|
import se.su.dsv.scipro.components.AbstractMenuPanel;
|
||||||
import se.su.dsv.scipro.components.menuhighlighting.MenuHighlightSupervisorChecklist;
|
import se.su.dsv.scipro.components.menuhighlighting.MenuHighlightSupervisorChecklist;
|
||||||
|
import se.su.dsv.scipro.components.menuhighlighting.MenuHighlightSupervisorPeer;
|
||||||
import se.su.dsv.scipro.conference.pages.SupervisorConferencePage;
|
import se.su.dsv.scipro.conference.pages.SupervisorConferencePage;
|
||||||
|
import se.su.dsv.scipro.peer.pages.SupervisorPeerDetailsPage;
|
||||||
import se.su.dsv.scipro.supervisor.pages.AbstractSupervisorProjectDetailsPage;
|
import se.su.dsv.scipro.supervisor.pages.AbstractSupervisorProjectDetailsPage;
|
||||||
import se.su.dsv.scipro.supervisor.pages.SupervisorChecklistPage;
|
import se.su.dsv.scipro.supervisor.pages.SupervisorChecklistPage;
|
||||||
import se.su.dsv.scipro.supervisor.pages.SupervisorFilePage;
|
import se.su.dsv.scipro.supervisor.pages.SupervisorFilePage;
|
||||||
@ -39,6 +41,7 @@ public class SupervisorSubTabMenuPanel extends AbstractMenuPanel{
|
|||||||
items.add(new MenuItem("Files", SupervisorFilePage.class,projectParams));
|
items.add(new MenuItem("Files", SupervisorFilePage.class,projectParams));
|
||||||
items.add(new MenuItem("Conference", SupervisorConferencePage.class, projectParams));
|
items.add(new MenuItem("Conference", SupervisorConferencePage.class, projectParams));
|
||||||
items.add(new MenuItem("Checklist", SupervisorChecklistPage.class, MenuHighlightSupervisorChecklist.class,projectParams));
|
items.add(new MenuItem("Checklist", SupervisorChecklistPage.class, MenuHighlightSupervisorChecklist.class,projectParams));
|
||||||
|
items.add(new MenuItem("Peer", SupervisorPeerDetailsPage.class));
|
||||||
//items.add(new MenuItem("Add checklist", SupervisorAddCheckListToProjectPage.class,projectParams));
|
//items.add(new MenuItem("Add checklist", SupervisorAddCheckListToProjectPage.class,projectParams));
|
||||||
// items.add(new MenuItem("Notes", SupervisorLogPage.class)); notes is redundant, removing it for now
|
// items.add(new MenuItem("Notes", SupervisorLogPage.class)); notes is redundant, removing it for now
|
||||||
return items;
|
return items;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user