changed limit of watson fields to 4000. db changes needed and is included in current.sql
This commit is contained in:
parent
0e0e56a9b8
commit
75f03fe031
resources/db_update_scripts
src/main/java/se/su/dsv/scipro/project/panels
@ -1,3 +1,10 @@
|
||||
ALTER TABLE projectIdea
|
||||
ADD suggestedReviewer_id bigint(20),
|
||||
ADD FOREIGN KEY (suggestedReviewer_id) REFERENCES role(id)
|
||||
ADD FOREIGN KEY (suggestedReviewer_id) REFERENCES role(id)
|
||||
|
||||
|
||||
-- Increase limit on Watson fields
|
||||
ALTER TABLE `projectIdea` CHANGE `practicalHow` `practicalHow` VARCHAR( 4000 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL;
|
||||
ALTER TABLE `projectIdea` CHANGE `theoryHow` `theoryHow` VARCHAR( 4000 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL;
|
||||
ALTER TABLE `projectIdea` CHANGE `what` `what` VARCHAR( 4000 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL;
|
||||
ALTER TABLE `projectIdea` CHANGE `why` `why` VARCHAR( 4000 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL;
|
@ -37,7 +37,7 @@
|
||||
<div class="info-box rounded-box last span-14">
|
||||
<p>
|
||||
To make the project idea structured and easy to communicate, we use the "Watson box".
|
||||
Enter your project idea into it. The maximum number of characters to use for each of the Watson fields is 1024.
|
||||
Enter your project idea into it. The maximum number of characters to use for each of the Watson fields is <span wicket:id="maxCharLabel"></span>.
|
||||
</p>
|
||||
</div>
|
||||
<div class="span-16">
|
||||
|
@ -128,7 +128,7 @@ public class ProjectIdeaSubmissionPanel extends Panel {
|
||||
private WebMarkupContainer partnerContainer;
|
||||
private int remainingWhatChars,remainingWhyChars, remainingTheoryChars, remainingPracChars;
|
||||
private Label whatCounterLabel,whyCounterLabel,pracHowCounterLabel,theoryHowCounterLabel;
|
||||
private int MAX_CHARS = 1024;
|
||||
private int MAX_CHARS = 4000;
|
||||
|
||||
|
||||
public ProjectIdeaForm(String id, final User loggedInUser, final IModel<ProjectIdea> ideaModel) {
|
||||
@ -170,6 +170,9 @@ public class ProjectIdeaSubmissionPanel extends Panel {
|
||||
});
|
||||
container.add(projectClassSelection);
|
||||
|
||||
//Label for number of max characters, used in info box.
|
||||
Label maxCharLabel = new Label("maxCharLabel", ""+getMaximumCharacters());
|
||||
container.add(maxCharLabel);
|
||||
//Project Idea Title
|
||||
title = new RequiredTextField<String>("projectIdeaTitle", new PropertyModel<String>(ideaModel, "title"));
|
||||
container.add(title);
|
||||
|
Loading…
x
Reference in New Issue
Block a user