Good spot
This commit is contained in:
@@ -126,15 +126,15 @@ public class ShopQuestion extends Question {
|
|||||||
form.endHorizontalFlow();
|
form.endHorizontalFlow();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Items list (one row per item)
|
// Items table
|
||||||
|
form.beginTable(items.size(), new String[] { "Item", "Description", "Price", "Buy" });
|
||||||
for (ShopItem item : items) {
|
for (ShopItem item : items) {
|
||||||
form.beginHorizontalFlow();
|
|
||||||
form.addLabel(escape(item.getName()));
|
form.addLabel(escape(item.getName()));
|
||||||
form.addLabel(escape(item.getDescription()));
|
form.addLabel(escape(item.getDescription()));
|
||||||
form.addLabel(escape(item.getPriceDisplay()));
|
form.addLabel(escape(item.getPriceDisplay()));
|
||||||
form.addButton("+1", "buy_" + item.getId());
|
form.addButton("+1", "buy_" + item.getId());
|
||||||
form.endHorizontalFlow();
|
|
||||||
}
|
}
|
||||||
|
form.endTable();
|
||||||
|
|
||||||
form.beginHorizontalFlow();
|
form.beginHorizontalFlow();
|
||||||
form.addButton("Close", "close");
|
form.addButton("Close", "close");
|
||||||
|
|||||||
Reference in New Issue
Block a user