Skip to content

Commit b54740d

Browse files
committed
#71 - Hardware description field - TextArea instead of TextField
1 parent 53f57b6 commit b54740d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/cz/zcu/kiv/eegdatabase/wui/ui/lists/form/HardwareFormPage.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h1 wicket:id="title"></h1>
5252

5353
<div class="itemBox">
5454
<label class="textFieldLabel"><wicket:message key="label.description" /></label>
55-
<input type="text" wicket:id="description" class="textField" maxlength="30"/>
55+
<textarea wicket:id="description" rows="3" cols="40"></textarea>
5656
</div>
5757

5858
<div class="itemBox">

src/main/java/cz/zcu/kiv/eegdatabase/wui/ui/lists/form/HardwareFormPage.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import org.apache.wicket.authroles.authorization.strategies.role.annotations.AuthorizeInstantiation;
3131
import org.apache.wicket.markup.html.basic.Label;
3232
import org.apache.wicket.markup.html.form.Form;
33+
import org.apache.wicket.markup.html.form.TextArea;
3334
import org.apache.wicket.markup.html.form.TextField;
3435
import org.apache.wicket.markup.html.panel.FeedbackPanel;
3536
import org.apache.wicket.model.CompoundPropertyModel;
@@ -136,7 +137,7 @@ public HardwareForm(String id, IModel<Hardware> model, final Model<ResearchGroup
136137
type.setLabel(ResourceUtils.getModel("label.type"));
137138
type.setRequired(true);
138139

139-
TextField<String> description = new TextField<String>("description");
140+
TextArea<String> description = new TextArea<String>("description");
140141
description.setLabel(ResourceUtils.getModel("label.description"));
141142
description.setRequired(true);
142143

0 commit comments

Comments
 (0)