You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
336 B
20 lines
336 B
@import com.example.user.Car
|
|
@(cars: Seq[Car])
|
|
|
|
|
|
@main("Cars Page") {
|
|
<h2>Cars</h2>
|
|
|
|
<table>
|
|
<tr>
|
|
<th>Id</th>
|
|
<th>Model</th>
|
|
</tr>
|
|
@for(car <- cars){
|
|
<tr>
|
|
<td>@car.id</td>
|
|
<td>@car.model</td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
}
|