In computer-database project -> app -> views -> createForm.scala.html
I CHANGE THE FOLLOWING CODING WITH HTML 5 TAG. BUT I DON'T KNOW HOW TO
CHANGE THE Combo Box TO USE THE Company INFORMATION.
@(computerForm: Form[Computer])
@import helper._
@implicitFieldConstructor =
@{ FieldConstructor(twitterBootstrapInput.render) }
@main {
<h1>Add a computer</h1>
<form action="@routes.Application.save()" method="POST">
<table>
<tr><td>Computer name <input type="text" name="name" id="name"
required="required" /></td></tr>
<tr><td>Introduced date <input type="text" name="introduced"
id="introduced" required="required" /></td></tr>
<tr><td>Discontinued date <input type="text" name="discontinued"
id="discontinued" required="required" /></td></tr>
<tr>
<td>
@select(
computerForm("
company.id"),
options(Company.options),
'_label -> "Company", '_default -> "-- Choose a
company --",
'_showConstraints -> false
)
</td>
</tr>
<tr><td><input type="submit" value="Create this computer"
class="btn primary"> </td></tr>
<tr><td><a href="@routes.Application.list()" class="btn">Cancel</
a></td></tr>
</table>
</form>
}