Turnitin username, forname ands surname fields

Change-Id: I308ed7a8fab661c995a58b2b7a2bed1a92537797
This commit is contained in:
joha-asc 2011-07-14 15:47:34 +02:00
parent 5fd989f422
commit 351449ff7d
2 changed files with 22 additions and 3 deletions
src/main/java/se/su/dsv/scipro/admin/pages/settings

@ -19,8 +19,20 @@
<td><input name="3" wicket:id="daysBeforeFinalSeminarCanRegisterAsOpponent" type="text" /></td>
</tr>
<tr>
<td><label for="4">File format of uploaded theses and opposition-reports must be PDF:</label></td>
<td><input name="4" type="checkbox" wicket:id="finalSeminarThesisMustBeAPDF" /></td>
<td><label for="4">Turnitin username (should be an instructor with quick submit activated):</label></td>
<td><input name="4" wicket:id="turnItInUsername" type="text" /></td>
</tr>
<tr>
<td><label for="5">Forname for Turnitin user:</label></td>
<td><input name="5" wicket:id="turnItInForname" type="text" /></td>
</tr>
<tr>
<td><label for="6">Surname for Turnitin user:</label></td>
<td><input name="6" wicket:id=turnItInSurname type="text" /></td>
</tr>
<tr>
<td><label for="7">File format of uploaded theses and opposition-reports must be PDF:</label></td>
<td><input name="7" type="checkbox" wicket:id="finalSeminarThesisMustBeAPDF" /></td>
</tr>
</table>

@ -3,6 +3,7 @@ package se.su.dsv.scipro.admin.pages.settings;
import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.form.CheckBox;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.PasswordTextField;
import org.apache.wicket.markup.html.form.RequiredTextField;
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.model.CompoundPropertyModel;
@ -28,16 +29,22 @@ public class AdminFinalSeminarSettingsPage extends AbstractAdminSettingsPage {
private class FinalSeminarSettingsForm extends Form<GeneralSystemSettings> {
private static final long serialVersionUID = 1L;
public FinalSeminarSettingsForm(String id, IModel<GeneralSystemSettings> model) {
super(id, model );
TextField<Integer> activeParticipation = new RequiredTextField<Integer>("finalSeminarMaxActiveParticipants");
TextField<Integer> registerAsActive = new RequiredTextField<Integer>("daysBeforeFinalSeminarCanRegisterAsActiveParticipant");
TextField<Integer> registerAsOpponent = new RequiredTextField<Integer>("daysBeforeFinalSeminarCanRegisterAsOpponent");
TextField<String> turnitinUsername = new RequiredTextField<String>("turnItInUsername");
TextField<String> turnitinForname = new RequiredTextField<String>("turnItInForname");
TextField<String> turnitinSurname = new RequiredTextField<String>("turnItInSurname");
CheckBox pdfCheckBox = new CheckBox("finalSeminarThesisMustBeAPDF");
add(registerAsActive);
add(registerAsOpponent);
add(activeParticipation);
add(turnitinUsername);
add(turnitinForname);
add(turnitinSurname);
add(pdfCheckBox);
}