3380 Specify information URL about the review process for reviewers
Administrators want to inform the reviewers what dates are important during the thesis writing process. They can now configure an information URL for each type of project under "Admin / System / Type settings" that is shown to the reviewers as they review projects.
This commit is contained in:
parent
663b92eb3b
commit
eccf6937a3
view/src/main
java/se/su/dsv/scipro/reviewer
resources/se/su/dsv/scipro/reviewer
@ -11,6 +11,7 @@ import org.apache.wicket.markup.html.form.Button;
|
||||
import org.apache.wicket.markup.html.form.Form;
|
||||
import org.apache.wicket.markup.html.form.TextArea;
|
||||
import org.apache.wicket.markup.html.form.upload.FileUploadField;
|
||||
import org.apache.wicket.markup.html.link.ExternalLink;
|
||||
import org.apache.wicket.markup.html.list.ListItem;
|
||||
import org.apache.wicket.markup.html.list.ListView;
|
||||
import org.apache.wicket.model.IModel;
|
||||
@ -36,6 +37,8 @@ import se.su.dsv.scipro.reviewing.ReviewerDecisionService;
|
||||
import se.su.dsv.scipro.reviewing.ReviewerInteractionService;
|
||||
import se.su.dsv.scipro.reviewing.RoughDraftApprovalService;
|
||||
import se.su.dsv.scipro.supervisor.panels.FinalSeminarApprovalProcessPanel;
|
||||
import se.su.dsv.scipro.system.ProjectType;
|
||||
import se.su.dsv.scipro.system.ProjectTypeSettings;
|
||||
import se.su.dsv.scipro.system.User;
|
||||
import se.su.dsv.scipro.util.Either;
|
||||
|
||||
@ -92,6 +95,17 @@ public class RoughDraftApprovalDecisionPage extends ReviewerPage {
|
||||
add(new EnumLabel<>("title", approval.map(ReviewerApproval::getStep)));
|
||||
add(new TimelinePanel("timeline", project));
|
||||
add(new FencedFeedbackPanel("feedback", this));
|
||||
IModel<String> moreInformationUrl = project
|
||||
.map(Project::getProjectType)
|
||||
.map(ProjectType::getProjectTypeSettings)
|
||||
.map(ProjectTypeSettings::getReviewProcessInformationUrl);
|
||||
add(new ExternalLink("review_process_information", moreInformationUrl) {
|
||||
@Override
|
||||
protected void onConfigure() {
|
||||
super.onConfigure();
|
||||
setVisible(moreInformationUrl.getObject() != null);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -16,6 +16,13 @@
|
||||
<div class="row">
|
||||
<div class="col-12 col-xl-6 mb-3">
|
||||
<h4><span wicket:id="title"></span></h4>
|
||||
<wicket:enclosure>
|
||||
<p>
|
||||
<a href="https://example.com" wicket:id="review_process_information">
|
||||
See more information about the review process and any important dates.
|
||||
</a>
|
||||
</p>
|
||||
</wicket:enclosure>
|
||||
<div wicket:id="details"></div>
|
||||
<div wicket:id="feedback"></div>
|
||||
<form wicket:id="decision">
|
||||
|
Loading…
x
Reference in New Issue
Block a user